in the debugger there is a watch window, which says we can watch the variables used in the program change their contents as the program runs... how do u watch the special function registers change values.. there is one tab called peripherals but that does not seem to change.. it just gives u the details of the registers.
if someone could plese help me out with this it would be wonderful
thanks and regards
vaishali
Haplo
Joined: 06 Sep 2003 Posts: 659 Location: Sydney, Australia
Posted: Mon Apr 19, 2004 5:55 pm
Let's say you want to watch PIR1 on PIC16F870. You can use this definition:
#byte PIR1=0x0C //0x0C is the address of PIR1
And then add PIR1 to the watch window like any other variables.
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