CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

how to use the debugger watch window

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
vaishali



Joined: 26 Mar 2004
Posts: 3

View user's profile Send private message

how to use the debugger watch window
PostPosted: Mon Apr 19, 2004 6:20 am     Reply with quote

hello,


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

View user's profile Send private message

PostPosted: Mon Apr 19, 2004 5:55 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group