I'm on it.......Sounds like you understand it. Have you tried it yet?
I'm on it.......Sounds like you understand it. Have you tried it yet?
I modified it to run on my LCD and it counts from 1000 to 1012 by adding two, then does it all over again.
So the first loop is WRITING the count to memory and the second is READING and displaying from memory to the LCD. B1 being the high BITS of the BYTE that make up W2 and B1+1 the low bits of W2, is that right?
So to complete our 'mission' should I try and do the same and use a loop or assign BYTES to a WORD (if that makes sense).
Dave
Yup!
????So to complete our 'mission' should I try and do the same and use a loop or assign BYTES to a WORD (if that makes sense).
Dave
You have the WORD size var holding the value of how many times the switch was pressed. Use the high byte low byte thing from above for writing every time the switch is pressed. Only need to read the EEPROM when the chip starts.
Something like that![]()
Dave
Always wear safety glasses while programming.
I'll give it a go, not a 100% sure on this one but I'll give it go.Something like that![]()
This is brilliant stuff though, cheers mackrackit.
Dave
Mission clarification
Power UP
Read EEPROM
Transfer value from EPROM to VAR
Press Button
VAR adds one to it's self
Display VAR on LCD
Write VAR to EEPROM
Wait for another Button press
This message will self destruct in.....
Dave
Always wear safety glasses while programming.
Hi mackrackit,
I've not been able able to look at the project this weekend due to a family issue.
Will be back 'on mission' tomorrow all being well.
Dave
Bookmarks