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

DEBUGGER - MONITOR PIC18?

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



Joined: 30 Oct 2003
Posts: 209
Location: Norfolk, England

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

DEBUGGER - MONITOR PIC18?
PostPosted: Fri Apr 28, 2006 5:36 am     Reply with quote

Guys,
I am trying to get the debugger monitor working on my PIC18F2520 part. The manual isn't clear but I was under the impression that the PGM pin is used for this purpose. On my part it's pin RB5. The manual states that on a PIC16ICD it's RB3. I can't find a setting which relates to this? Just wondering if anyone uses this facility on a PIC18 and can shed some light on it for me!

Keep well,

Will
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Fri Apr 28, 2006 7:39 am     Reply with quote

I assume you established a successful connection between PC <> IDC <> PIC.
RB3 was used in most 16F series with ICD capabilities, actually RB5 is used
in most 18F series so this is your option.

To enable the built in ICD monitor you must tell the compiler that redirect
the RS232 to the debugger.

#use rs232(DEBUGGER)

Humberto


Last edited by Humberto on Fri Apr 28, 2006 7:58 am; edited 1 time in total
Will Reeve



Joined: 30 Oct 2003
Posts: 209
Location: Norfolk, England

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

PostPosted: Fri Apr 28, 2006 7:58 am     Reply with quote

Yep. PIC is happy and running well. I have used #use rs232(DEBUGGER) and get no output. There is nothing happing on PGM pin which is connected up from PIC to debugger for this purpose!
I assume (and we all know what that makes of us!) that the compiler knows that a PIC18 had PGM on a different pin to PIC16?
Will Reeve



Joined: 30 Oct 2003
Posts: 209
Location: Norfolk, England

View user's profile Send private message Send e-mail Visit poster's website MSN Messenger

PostPosted: Fri Apr 28, 2006 1:25 pm     Reply with quote

Fixed it! Turns out that RB3 is hard programmed into the DEBUGGER! As the extra wire in the ICD cable is meant for the PGM pin I would have thought that it would automatically select it depending on the part! One for the CCS wish list I think!
You have to use

#use rs232(DEBUGGER,xmit=PIN_B5,rcv=PIN_B5)

to get it to work!

Keep well,

Will
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