|
|
View previous topic :: View next topic |
Author |
Message |
Zwizzle Guest
|
CCP2 problem when moving from PIC16 to PIC18 |
Posted: Thu Jun 12, 2003 4:35 am |
|
|
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 |
Posted: Thu Jun 12, 2003 5:09 am |
|
|
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 |
|
|
|
|
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
|