PIC PWM pin assigment

Thread Starter

Svizoman

Joined Oct 23, 2016
9
I am using PIC 16F684 mcu and datasheet sais it has PWM module on RC2,3,4,5 pins. I am only able to get PWM signal on RC5 pin. Is there any register that should be set in order to move PWM signal to RC2 pin. I would like to use rest of the PORTC pins for other stuff.
 

JohnInTX

Joined Jun 26, 2012
4,787
There is only one PWM module in the chip. The standard output is to RC5. The other outputs are automatically turned on when you are using the single PWM to drive various motor drivers (H-bridges etc). You can't relocate the basic PWM output to another pin. Table 11-4 in the datasheet shows how the pins are assigned. Note that it shows that you can't just relocate the PWM output to another pin - at least on this particular PIC. Lots of the 18F and 16F1xxx PICs have relocatable PWM outputs.
Good luck.
 
Last edited:
Top