entries0=1453; valmin0=17; valmax0=112;pin0=[
4;	-3;	7;	7;	9;	9;	9;	9;	7;	9
9;	9;	8;	8;	7;	7;	7;	-2;	-5;	-5
-4;	-4;	-5;	-6;	-8;	-3;	4;	3;	5;	3
-3;	-8;	-7;	-9;	-10;	-9;	-10;	-10;	-10;	-11
-11;	-9;	-11;	-9;	-10;	-10;	-9;	-8;	-9;	-9
-9;	-12;	-10;	-10;	-12;	-13;	-11;	-12;	-12;	-8
-8;	-8;	-9;	-9;	-11;	-9;	-9;	-10;	-11;	-11
-12;	-12;	-12;	-13;	-12;	-11;	-10;	-10;	-10;	-11
-12;	-11;	-13;	-11;	-12;	-12;	-13;	-13;	-12;	-13
-11;	-12;	-12;	-12;	-12;	-14;	-14;	-13;	-13;	-12
-9;	-9;	-10;	-10;	-12;	-12;	-10;	-7;	-9;	-9
-9;	-10;	-10;	-11;	-12;	-13;	-12;	-12;	-12;	-13
-13;	-13;	-12;	-12;	-11;	-11;	-12;	-12;	-12;	-12
-13;	-11;	-11;	-11;	-12;	-12;	-12;	-12;	-11;	-10
-8;	-8;	-8;	-9;	-11;	-11;	-12;	-11;	-12;	-12
-13;	-14;	-14;	-13;	-13;	-11;	-9;	-9;	-10;	-11
-12;	-13;	-12;	-11;	-11;	-11;	-11;	-12;	-13;	-13
-13;	-12;	-11;	-10;	-11;	-13;	-13;	-13;	-14;	-12
-10;	-10;	-11;	-12;	-14;	-14;	-15;	-14;	-14;	-14
-14;	-15;	-15;	-15;	-14;	-13;	-10;	-10;	-11;	-13
-14;	-14;	-15;	-12;	-12;	-12;	-12;	-13;	-13;	-14
-12;	-12;	-10;	-10;	5;	20;	28;	37;	44;	50
55;	60;	62;	61;	58;	54;	51;	46;	41;	35
29;	24;	19;	17;	14;	13;	11;	8;	8;	7
4;	-6;	-8;	-7;	-4;	-4;	-8;	-12;	-14;	-14
-14;	-12;	-10;	-10;	-11;	-12;	-10;	-10;	-11;	-9
-9;	-9;	-10;	-12;	-14;	-14;	-14;	-13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-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13
-13;	-13;	-12;	-12;	-12;	-12;	-12;	-11;	-11;	-11
-12;	-12;	-12;	-12;	-12;	-13;	-13;	-13;	-13;	-13
-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13
-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13
-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13
-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13
-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13
-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13
-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13
-13;	-12;	-12;	-12;	-12;	-12;	-12;	-12;	-12;	-13
-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13
-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13
-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13
-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13
-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13
-13;	-13;	-13;	-13;	-5;	17;	27;	35;	42;	48
53;	58;	60;	60;	58;	55;	51;	47;	42;	35
30;	25;	23;	21;	18;	17;	15;	13;	12;	11
9;	8;	8;	8;	8;	8;	5;	1;	-5;	-7
-9;	-9;	-11;	-12;	-11;	-11;	-11;	-11;	-11;	-11
-11;	-11;	-11;	-11;	-11;	-11;	-11;	-11;	-9;	-9
-9;	-9;	-11;	-11;	-11;	-12;	-12;	-12;	-13;	-13
-12;	-12;	-11;	-11;	-12;	-11;	-10;	-9;	-8;	-8
-7;	-7;	-3;	-2;	-2;	-2;	-5;	-5;	-5;	2
-5;	-4;	-4;	-4;	3;	3;	3;	3;	6;	6
6;	6;	6;	6;	6;	6;	4;	4;	4;	3
3;	4;	4;	4;	4;	4;	4;	4;	4;	4
4;	4;	4;	4;	4;	4;	-3;	-3;	-3;	-3
4;	4;	4;	4;	4;	4;	4;	-3;	-6;	-6
-6;	-8;	-8;	-8;	-10;	-10;	-8;	-8;	-8;	-6
-6;	-6;	-3;	4;	-3;	-3;	-3;	-3;	-3;	-3
-3;	-6;	-6;	-6;	-6;	-6;	-6;	-6;	-6;	-3
-3;	-3;	-3;	-3;	-3;	-3;	-3;	-6;	-3;	-3
-3;	-3;	-3;	-3;	-3;	4;	-3;	-3;	-3;	-3
-3;	-3;	-3;	-6;	-6;	-6;	-6;	-6;	-6;	-6
-6;	-3;	4;	4;	4;	4;	4;	4;	4;	-3
-3;	-3;	-3;	-3;	4;	4;	4;	4;	4;	4
4;	-3;	-6;	-6;	-3;	4;	-3;	-3;	-3;	4
4;	4;	-3;	-6;	-6;	-8;	-8;	-8;	-8;	-8
-8;	-6;	-3;	4;	4;	4;	7;	7;	7;	7
7;	7;	7;	4;	-4;	-4;	-3;	-3;	-3;	4
4;	4;	4;	4;	-3;	-3;	-3;	-3;	-3;	-3
-3;	-3;	4;	4;	4;	4;	4;	4;	4;	4
-2;	-2;	];
close all;
 entries=[entries0,entries1]; dumpval=[pin0,pin1];
 for f=1:2
  cs=dumpval(:,f); cs=shift(cs,-mod(entries(f),length(cs)));
  cs=sign(cs).*cs.*cs;  [f,min(cs),max(cs)]
  figure(f); stairs(sintv*(1:length(cs)),cs);
  title(sprintf("pin %d",f-1)); grid on;
endfor
