Jaco Maritz

PWM as a GPIO on the 56F8345

Discussion created by Jaco Maritz on Oct 15, 2007
Latest reply on Oct 30, 2007 by Devendra Jogdeo
Hi
I'm struggling to get my PWM to work as a GPIO (or an output for that matter). I want to drive 2 leds on each port as debug leds.
 
I've set the PMOUT register to software control and enable the PAD_EN
I've set the PMCFG register to Independent.
When i write to the PMOUT register to set or clear OUTx bits all six channels go on and stay on.
the only way I get a response from my PWM is when I set TOP or BOTTOM NEG bits in the PMCFG register
 
Any Ideas are welcome
 
Thanx


--
Alban Edit: changed P/N is subject line.


Message Edited by Alban on 2007-10-15 11:37 AM

Outcomes