elektriker
New Member
this code calculates different values with 20X2 and 20M2.
w0=65535
w1=1
for b10 = 0 to 11
w1 = w0/w1 + w1/2
sertxd(#b10," ",#w1,cr)
next b10
simulate with Editor 5.5.6 and chip = 20M2
0 0
1 32767
2 16384
3 8193
4 4100
5 2057
6 1044
7 553
8 335
9 265
10 256
11 255
simulate with Editor 5.5.6 and chip = 20X2
0 0
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
11 0
why these different values ?
Thank you very much !
w0=65535
w1=1
for b10 = 0 to 11
w1 = w0/w1 + w1/2
sertxd(#b10," ",#w1,cr)
next b10
simulate with Editor 5.5.6 and chip = 20M2
0 0
1 32767
2 16384
3 8193
4 4100
5 2057
6 1044
7 553
8 335
9 265
10 256
11 255
simulate with Editor 5.5.6 and chip = 20X2
0 0
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
10 0
11 0
why these different values ?
Thank you very much !