entries0=1881; valmin0=64; valmax0=140;pin0=[
-6;	-7;	-9;	-10;	-10;	-10;	-10;	-9;	-9;	-9
-6;	6;	7;	5;	6;	7;	7;	8;	8;	7
10;	12;	13;	14;	15;	14;	15;	15;	15;	15
15;	16;	14;	15;	16;	15;	16;	16;	16;	17
17;	16;	17;	18;	18;	19;	19;	19;	19;	21
21;	21;	21;	22;	23;	23;	25;	24;	24;	25
26;	26;	26;	26;	26;	27;	26;	27;	27;	28
28;	28;	28;	28;	29;	28;	29;	29;	29;	29
29;	30;	30;	31;	31;	31;	31;	31;	31;	31
31;	31;	31;	32;	32;	33;	33;	33;	33;	34
34;	34;	34;	35;	35;	35;	35;	35;	35;	36
36;	36;	37;	37;	37;	38;	38;	38;	38;	39
39;	39;	39;	40;	40;	40;	40;	40;	40;	41
41;	41;	41;	41;	41;	41;	41;	41;	41;	41
42;	42;	42;	43;	43;	43;	43;	43;	43;	43
43;	43;	43;	44;	44;	45;	45;	45;	45;	45
45;	45;	45;	45;	45;	45;	45;	46;	46;	46
46;	47;	46;	47;	47;	46;	47;	47;	47;	47
47;	47;	48;	48;	47;	48;	47;	48;	48;	49
49;	49;	49;	49;	48;	45;	41;	38;	34;	30
24;	13;	-4;	-11;	-15;	-17;	-18;	-19;	-19;	-19
-20;	-20;	-20;	-20;	-20;	-20;	-20;	-21;	-20;	-18
-18;	-18;	-17;	-17;	-17;	-17;	-18;	-18;	-19;	-18
-18;	-17;	-16;	-15;	-14;	-14;	-13;	-14;	-13;	-13
-14;	-14;	-14;	-15;	-14;	-12;	-12;	-11;	-11;	-10
-10;	-7;	-6;	-7;	-6;	-5;	-4;	-2;	-5;	-3
5;	6;	7;	7;	7;	7;	9;	8;	6;	6
2;	2;	2;	3;	-4;	3;	3;	3;	4;	-3
-6;	-6;	-3;	-6;	-6;	-6;	-6;	-3;	-2;	-2
-6;	-6;	-6;	-5;	-5;	-8;	-8;	-8;	-5;	-5
-5;	-5;	-5;	-5;	0;	1;	-5;	-5;	-5;	2
2;	2;	-5;	-5;	2;	2;	2;	-4;	-4;	2
6;	6;	2;	6;	6;	8;	8;	6;	6;	3
6;	3;	-4;	-7;	-7;	-7;	-7;	-7;	-9;	-9
-7;	-7;	-7;	-7;	-7;	-4;	3;	3;	3;	3
3;	3;	-4;	-4;	-4;	3;	-4;	3;	3;	3
2;	2;	-4;	-4;	3;	-4;	-4;	-4;	-5;	-7
-7;	-9;	-10;	-10;	-11;	-11;	-10;	-9;	-4;	-4
3;	6;	6;	6;	6;	6;	2;	2;	2;	2
3;	2;	2;	2;	-4;	-4;	-7;	-7;	-7;	-7
-7;	-9;	-9;	-9;	-7;	-7;	-7;	-7;	-9;	-9
-9;	-9;	-7;	-7;	-7;	-7;	-7;	-7;	-7;	-8
-8;	-8;	-8;	-8;	-8;	-8;	-8;	-8;	-10;	-10
-10;	-11;	-11;	-11;	-12;	-12;	-10;	-10;	-10;	-9
-10;	-12;	-12;	-12;	-12;	-12;	-12;	-12;	-11;	-9
-9;	-9;	-10;	-10;	-10;	-10;	-8;	-8;	-8;	-8
-10;	-12;	-12;	-12;	-12;	-12;	-12;	-12;	-11;	-11
-12;	-11;	-12;	-12;	-12;	-12;	-12;	-11;	-9;	-9
-8;	-5;	-5;	-6;	-6;	-6;	-6;	-6;	-6;	-6
-6;	-6;	];
entries1=1884; valmin1=93; valmax1=112;pin1=[
-5;	-5;	-8;	-8;	-6;	-8;	-7;	-4;	-3;	5
2;	-4;	5;	6;	8;	7;	8;	6;	9;	11
10;	11;	10;	11;	12;	12;	13;	12;	13;	15
16;	16;	16;	16;	17;	18;	18;	18;	17;	18
18;	19;	18;	19;	18;	19;	19;	20;	20;	20
21;	22;	22;	21;	22;	23;	23;	23;	23;	23
24;	23;	24;	24;	24;	24;	25;	26;	25;	26
26;	26;	26;	26;	26;	27;	28;	28;	29;	29
29;	30;	30;	30;	30;	30;	30;	30;	31;	31
31;	31;	31;	32;	32;	32;	32;	32;	33;	33
33;	33;	33;	34;	35;	36;	36;	36;	37;	36
37;	36;	36;	35;	35;	36;	35;	36;	36;	37
37;	38;	38;	38;	38;	39;	39;	39;	39;	40
40;	40;	40;	40;	39;	39;	40;	39;	39;	40
40;	40;	41;	41;	41;	42;	42;	42;	43;	43
43;	43;	44;	44;	44;	44;	44;	44;	45;	45
45;	45;	45;	46;	45;	45;	45;	45;	46;	46
46;	46;	46;	46;	46;	46;	46;	46;	46;	46
47;	47;	48;	48;	48;	48;	48;	48;	48;	48
48;	48;	48;	48;	47;	45;	42;	38;	34;	29
22;	13;	-9;	-15;	-17;	-18;	-18;	-19;	-19;	-19
-19;	-18;	-18;	-18;	-17;	-17;	-17;	-17;	-17;	-17
-18;	-18;	-19;	-18;	-17;	-17;	-16;	-17;	-15;	-16
-15;	-16;	-17;	-15;	-16;	-14;	-14;	-13;	-13;	-11
-10;	-11;	-9;	-10;	-11;	-10;	-10;	-10;	-10;	-9
-8;	-8;	-7;	-6;	-4;	-3;	1;	3;	-2;	8
9;	9;	10;	10;	11;	12;	10;	7;	7;	7
5;	5;	-1;	-1;	5;	5;	5;	6;	8;	6
6;	6;	6;	6;	8;	6;	4;	6;	7;	7
7;	7;	4;	9;	10;	9;	7;	5;	-2;	-2
-2;	-8;	-8;	-8;	-5;	0;	1;	-5;	-5;	-5
-7;	-7;	-7;	-9;	-7;	-5;	-5;	-4;	-4;	-4
-4;	-4;	-4;	-4;	-4;	-4;	-4;	-4;	-4;	-4
-7;	-7;	-6;	-4;	-3;	4;	4;	4;	4;	4
4;	4;	4;	4;	4;	4;	4;	-3;	-3;	-6
-6;	-8;	-8;	-6;	-2;	-2;	-2;	-2;	-2;	-2
-6;	-2;	-6;	-6;	-6;	-2;	-2;	-2;	5;	-6
-2;	5;	5;	-2;	-2;	5;	-2;	5;	-2;	-2
-2;	5;	5;	-1;	5;	-1;	-1;	-1;	-1;	-5
-5;	-1;	-1;	-1;	5;	7;	7;	9;	9;	9
9;	11;	11;	7;	5;	-2;	-2;	-6;	-11;	-11
-11;	-11;	-11;	-12;	-12;	-12;	-12;	-12;	-13;	-13
-12;	-11;	-11;	-11;	-11;	-11;	-10;	-10;	-10;	-10
-10;	-10;	-10;	-10;	-10;	-10;	-10;	-10;	-10;	-10
-9;	-9;	-9;	-9;	-9;	-9;	-9;	-9;	-11;	-11
-11;	-11;	-13;	-13;	-13;	-13;	-13;	-13;	-13;	-13
-13;	-14;	-14;	-14;	-13;	-13;	-13;	-12;	-11;	-9
-9;	-10;	-10;	-10;	-8;	-10;	-10;	-10;	-10;	-10
-10;	-9;	-10;	-10;	-12;	-12;	-9;	-7;	-9;	-7
-7;	-8;	];
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); h=stairs(sintv*(1:length(cs)),cs);
  set(h,'linewidth',3);
  title(sprintf("pin %d",f-1)); grid on;
endfor
