Hello, I am prototyping with the pwm channels on a RCM6700.
Currently, I am trying to set a duty cycle and output the pulses.
I follow these steps (from the support manual):
- Configure Timer A9 via TAT9R to provide the desired PWM clock frequency.
- Configure PWLxR to select whether to spread the PWM output throughout the cycle.
- Configure PWLxR to select whether to suppress the PWM output.
- Configure the duty cycle by writing to PWLxR and PWMxR. Note that any changes to these registers
while the PWM is active will not take effect until the next counter rollover.
I have tried using the functions pwm_init() and pwm_set() and manually setting up the registers using “WrPortI(TAT9R, NULL, 0x1F);”, etc…I don’t see an output.
A couple of questions:
- is there some config that I’m missing?
- if I config a parallel port to I/O, will it overwrite the pins which are used for pwm, quad decoder, etc…? Which has priority?
thanks,
(not)josecanseco