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

dsPic33 CCP/CAPTURE #INT

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



Joined: 16 Aug 2010
Posts: 19

View user's profile Send private message

dsPic33 CCP/CAPTURE #INT
PostPosted: Fri Feb 06, 2015 3:51 am     Reply with quote

Hello,

What is the sytax for CCP/CAPTURE interrupt : #INT_xxx in dsPic33 ?

#int_ccp doesnt exists in the *.h file .

Thanks
RF_Developer



Joined: 07 Feb 2011
Posts: 839

View user's profile Send private message

PostPosted: Fri Feb 06, 2015 4:10 am     Reply with quote

No, it isn't in the .h file. It doesn't need to be.

You need #INT_CCP1, #INT_CCP2 and so on, depending on which CPP unit you are using.
Ttelmah



Joined: 11 Mar 2010
Posts: 19553

View user's profile Send private message

PostPosted: Fri Feb 06, 2015 5:44 am     Reply with quote

No, the point is that the PIC33, doesn't 'have' a CCP unit as such....

On these later chips, the CCP functionality is spilt into separate peripherals. So where a PIC18, has a CCP, that can be a PWM, or a capture, or trigger on a count, on the PIC33 each of these is done separately.

You have the input capture module, which performs the first 'C' function of the CCP.
Then there is the output compare module, which performs the second 'C'.
Finally there are separate PWM's (the P).

Hence there is no CCP interrupt, you have INT_ICx INT_OCx, and INT_PWMx.
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