Thanks Richard,
no way for me to get output for both pwm's:
I did try your suggestion too.
Pls: see the attached code.
regards,
Ambrogio
Thanks Richard,
no way for me to get output for both pwm's:
I did try your suggestion too.
Pls: see the attached code.
regards,
Ambrogio
__CONFIG _CONFIG3H, _CCP2MX_OFF_3H puts ccp2 onto portb.3
use
DEFINE CCP2_REG PORTB 'Channel-2 port
DEFINE CCP2_BIT 3 'Channel-2 bit
or
__CONFIG _CONFIG3H, _CCP2MX_ON_3H
or set trisb.3 to 0 and trisc.2 to 0 and CCP2CON=12
from data sheet
bit 0 CCP2MX: CCP2 Mux bit
1 = CCP2 input/output is multiplexed with RC1
0 = CCP2 input/output is multiplexed with RB3
Richard,
thanks very much for the great help in solving my problem.
The output of pwm2 is now available on B3: very good !
All the best
Ambrogio
Bookmarks