AnsweredAssumed Answered

ADuC842 PWM

Question asked by alon.bendor on Jan 17, 2016
Latest reply on Jan 17, 2016 by mark.ramos

Hello

 

I would like to generate a 32KHz with DC of ~50% PWM signal on P2.7.

If I understood correctly from DS, I need the following:

PWMCON = 0x13 (PWMCON to mode 1, counter to Selected CLK/1 and CLK = 16.777216 MHz)

PWM1H = 0x02

PWM1L = 0x00

PWM0H = 0x01

PWM0L=0x00

so PWM1H/L=512, and PWM0H/L = 256.

 

Please advise.

 

Thanks

Alon

Outcomes