i'm a bit surprised you don't have any compilation errors...
a) 2 mistyped IF statements,
b) it miss Readmenu, recordmenu, timing section,
c) and as Sayzer point-out.. those goto are a bit weird... and in case you remove Goto timing... it will branch to the startMenu indeed... but you will always add 1 on the Stack.. shortly it will overflow...
why? You don't need to do it unless you want to calibrate the internal OSC, just remove it. Almost sure your Serial comm wasn't working really well huh? (DEFINES aren't in caps either.. but it can be a paste error)
Code:
I2CREAD SDA,SCL,CTW,ADDR.highbyte,addr.lowbyte,[tempe]
Why do you split addr in 2 ?
Code:
I2CREAD SDA,SCL,CTW,ADDR,[tempe]
This have to be changed in ALL I2CREAD AND I2CWRITE lines
This must be written the right way.. unless YOU will have problem indeed.
Bookmarks