
Originally Posted by
Bill Legge
I'm using: PIC16F877A @ 20 MHz, an I2C RTC with PBP.
The story so far:
1. All works well - set the clock, read it and display the time.
2. I have a loop counter (VAR BYTE) in my software to do a job not connected with the RTC.
3. As long as the variable is a BYTE it works properly.
4. But if I make the loop counter a WORD - it will not increment (Variable = Variable + 1) fails to work. If I by-pass the RTC - it starts working!
5. The name of the loop counter is unique and not used in the RTC code.
6. I do need the variable to be word-sized.
Any ideas anyone?
Regards Bill Legge
Hi Bill,
Without having a firm grasp on your code . . . It works with BYTE variable, but not WORD . . . don't you have to split the word into highbyte and lowbyte to use it?
ahhh: not : that : i: could: read: it:
Looks like skimask said that already!
Last edited by Archangel; - 15th February 2008 at 21:13.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks