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 support@ccsinfo.com

CCP2 problem when moving from PIC16 to PIC18

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







CCP2 problem when moving from PIC16 to PIC18
PostPosted: Thu Jun 12, 2003 4:35 am     Reply with quote

Hello all,

I've tried to move a project I was running from my old base platform, the PIC16F877, to my new base, the PIC18F452. Are there any problems known with this? I use CCS PCH now, coming from PCM, so in terms of code there is no problem.

However, my code uses CCP2. This used to generate an interrupt. Now, on the 452, this doesn't seem to happen anymore. Might there be something I'm overlooking? What's that 'CCP2 Mux' setting doing in MPLab's Configuration bit window?

Thanks!
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515172
Tomi
Guest







Re: CCP2 problem when moving from PIC16 to PIC18
PostPosted: Thu Jun 12, 2003 5:09 am     Reply with quote

Do you have any direct access to registers? Remember the 18F registers are in different addresses.

The CCP2 Mux bit selects the CCP2 input/output:
bit 0 CCP2MX: CCP2 Mux bit
1 = CCP2 input/output is multiplexed with RC1
0 = CCP2 input/output is multiplexed with RB3

:=Hello all,
:=
:=I've tried to move a project I was running from my old base platform, the PIC16F877, to my new base, the PIC18F452. Are there any problems known with this? I use CCS PCH now, coming from PCM, so in terms of code there is no problem.
:=
:=However, my code uses CCP2. This used to generate an interrupt. Now, on the 452, this doesn't seem to happen anymore. Might there be something I'm overlooking? What's that 'CCP2 Mux' setting doing in MPLab's Configuration bit window?
:=
:=Thanks!
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515176
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