IM now trying to do the same on a PIC 16f8777a using the CCS compiler
I realize i can do this by using the timer overflow interrupt but is there a way of directly accesing this varible like above?
Thanks
Pilt
newguy
Joined: 24 Jun 2004 Posts: 1909
Posted: Thu May 18, 2006 4:18 pm
Sure - just use a #bit declaration. You need to look in that PIC's datasheet for the exact location of that flag. I did the same thing for a 18F4680, and this is how I did it:
Code:
#bit tmr1_int_flag = 0xf9e.0
For the 18F4680, it is bit 0 of memory location 0xF9E. The location of the timer 1 interrupt flag will be different for your processor.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum