but where would I put the variable increment in my code example?
chips123
Naturally in your interupt routine. Let assume you have a variable Tmr1Z (declared as Word) and you increment TMR1Z by 1 at each overflow then TMR1L & TMR1H and TMR1Z will give you a 32 bits count from which you could pullout a lot of information.
Also y = y + 525 could be used but since y will overflow itself after 124 timer1 overflow is not very helpfull.
100k or a million makes a difference.
Jumper
One is ten times the other! 100K makes life even more difficult.
For pic 16F676 this is what datasheet report:
- 100,000 write FLASH endurance
- 1,000,000 write EEPROM endurance
- FLASH/Data EEPROM Retention: > 40 years
Al.
Last edited by aratti; - 19th October 2009 at 15:57.
All progress began with an idea
Bookmarks