I removed that line from Darrel code and its clearly more stable now, but it still flickers at the lower range of the pot... very strange...
I just modified the code I posted to write to eeprom the lowest pot setting where its stable, the read value was from $007B to $007C but I recorded a couple of $007F and $0068 after 125 readings/writes, my guess for these oscillations was someting in the write cycle because after I stopped reading the led went to steady again, I wish I had a scope...
modified code:
Code:
if calibrapin=1 then
if conta < 250 then
write conta, pote.byte1
write conta+1, pote.byte0
conta=conta+2
endif
endif
Pablo
Bookmarks