Hey Circuitpro,
Yes, the PBP "HPWM" command uses the hardware PWM pins on the chip. These are defined in the datasheet. To use "HPWM", you need to use one of the available HPWM pins.
You could use the PBP "PWM" command, but this does not work for continuous PWM, only a defined number of cycles.
Your only option (if you need to get continuous PWM on portb.3) is to use DT Interrupts and make your own pwm on any pin ... but this is a little more complicated. (maybe you could still use the same board if you do this ... not quite sure what your options are with your particular project.)
Edit: forgot about this option, Darrel has made it easier for everyone. http://darreltaylor.com/DT_INTS-14/SPWM.html




Bookmarks