Rhatidbwoy
I am finding it quite difficult to comprehend your code without comments. Anyway,
See the following fragment of your code in the ENTER routine
tra = 0
tra1 = 38
for e = 0 to 48
lookup2 e,[ee7,ee8,ee9,ee10,ee11,ee12,ee13,ee14,ee15,ee16,ee1 7,ee18,_
ee19,ee20,ee21,ee22,ee23,ee24,ee25,ee26,ee27,ee28, ee29,ee30,_
ee31,ee32,ee33,ee34,ee35,ee36,ee37,ee38,ee39,ee40, ee41,ee42,_
ee43,ee44,ee45,ee46,ee47,ee48,ee49,ee50,ee51,ee52, ee53,ee54,_
ee55],ee
serout 0,4,[TRA1,ee]
write tra, ee
tra = tra + 1 ' next tra
tra1 = tra1 + 1
next e
From this, I infer the TRA variable is used as an address for eeprom write. If you see, this variable is initialized to zero and writes the 48 bytes from address 0 onwards. You read from address 7. Confirmation if this is the problem will be garbled data from channel 0 up when you happen to change channel 2 and higher.
Jerson
Bookmarks