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

Fastest way to set pin output
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
curt2go



Joined: 21 Nov 2003
Posts: 200

View user's profile Send private message

PostPosted: Sat Jul 08, 2017 8:07 pm     Reply with quote

temtronic

That means that I am using ICD1 position on the chip for debugging.

Yes its in Release mode.

Newguy thats a good tip. Thanx
Ttelmah



Joined: 11 Mar 2010
Posts: 19538

View user's profile Send private message

PostPosted: Sun Jul 09, 2017 11:00 am     Reply with quote

temtronic wrote:
hmm..
OK maybe another silly thing...

I see this" icd=1 ", does that mean the ICD IS enabled ? I do not use ICDs or debuggers so not sure what the syntax means.

IF so that may slow down things.

Also I assume program is compiled in 'release' mode not 'debug'...

There's only so many straws in a bale but eventually we'll pull the right one !

Jay


Just as an explanation on this. A lot of the later PIC's have multiple sets of ICD pins that can be used. This instruction specifies which pin 'set' is going to be used, _but does not enable the ICD_. The debug enable is still the normal DEBUG instruction. Very Happy
Alphada



Joined: 19 Jun 2017
Posts: 27

View user's profile Send private message

PostPosted: Sun Jul 09, 2017 1:39 pm     Reply with quote

newguy wrote:
Alphada wrote:
Code:
#byte PORTA = 0x0E22


The compiler has a very nice feature, "getenv" that saves you from looking up the addresses of the special function registers (SFRs). Use it like this:

Code:
#byte PORTA=getenv("sfr:PORTA")


Thx!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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