Log in

View Full Version : Revert a port from PWM to Digital I/O



Ioannis
- 31st May 2025, 09:28
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

HenrikOlsson
- 31st May 2025, 11:08
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.

Ioannis
- 31st May 2025, 19:30
Thank you Henrik.

Its ok now,

Ioannis