Revert a port from PWM to Digital I/O
If id does matter, chip is 47K42.
After setting the registers for a PWM output and selecting, for example, RC5PPS=%%00001001, the PWM signal indeed does appear on the output port.
What about reverting operation of that port to normal Digital output and steer the PWM signal now to another port, say RC7 using RC7PPS=%00001001 ?
Ioannis
Re: Revert a port from PWM to Digital I/O
A value of 0 in the pins PPS registers sets it to be controlled by the LAT register. See bottom of table 17-2 in the datasheet.
Re: Revert a port from PWM to Digital I/O
Thank you Henrik.
Its ok now,
Ioannis