PAUL WITHERS

MCF5328 PWM GPIO bits

Discussion created by PAUL WITHERS on Jul 13, 2011
Latest reply on Jul 14, 2011 by TomE

I'm confused by the MCF5328 family documentation and header files regarding the PWM1/3/5/7 pins used as GPIO.  The MCF5329 reference manual (rev 3) shows only bits 2,3,4 and 5 being used in the PODR_PWM, PDDR_PWM and PPDSDR_PWM registers, which does match the PWM "bits" 1/3/5/7 (which are shown as GPIO signals PWM1/3/5/7 in table 2-1).  For the PPDSDR_PWM register it specifically states that these are the controls for signals PWM2/3/4/5 - which does not match the actual PWM numbers.  Looking in the header files from Freescale - it also uses the 2/3/4/5 bit numbers for these registers - not matching the PWM1/3/5/7 numbers.

 

Can anybody tell me the correct meanings of the bits in the PODR_PWM, PDDR_PWM and PPDSDR_PWM registers for the MCF5328?

 

Thanks,

 

Paul Withers

Outcomes