View previous topic :: View next topic |
Author |
Message |
rudy
Joined: 27 Apr 2008 Posts: 167
|
16F876 - 2PWM pins with 32768KHz crystal on Timer1 |
Posted: Sat Mar 26, 2011 9:37 pm |
|
|
Hi there,
I need to use the two PWM modules of PIC16F876, but I also need to use a 32,768Khz crystal, driving a clock based on TIMER 1. Is possible to change CCP2 pin to another pin, leaving RC1 (T1OSI) free?
Regards.
Manoel. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Mar 26, 2011 9:55 pm |
|
|
Use a similar but more modern PIC: 16F767. It has the CCP2B3 fuse
setting. It can switch the CCP2 output to Pin B3 instead. This will solve
your problem. |
|
|
rudy
Joined: 27 Apr 2008 Posts: 167
|
|
Posted: Sun Mar 27, 2011 7:25 am |
|
|
This is a start, but I will try to do for software first. Using 16f767 will add another part number in my stock list, i am tryng to avoid this. In fact, if i could find one small 8 pin DIL, 2 or 3W mono audio amplifier, i could use I2C to make audio level adjustment, instead of use PWM to control DC volume level in TDA7056. |
|
|
|