|
|
View previous topic :: View next topic |
Author |
Message |
eabir
Joined: 16 Aug 2010 Posts: 19
|
dsPic33 CCP/CAPTURE #INT |
Posted: Fri Feb 06, 2015 3:51 am |
|
|
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
|
|
Posted: Fri Feb 06, 2015 4:10 am |
|
|
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: 19499
|
|
Posted: Fri Feb 06, 2015 5:44 am |
|
|
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. |
|
|
|
|
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
|