Hi,
Now I'm a bit confused, it seems like it IS defaulting to PortB.0 and not PortB.3 as I said earlier, so you shouldn't have to change anything. Either way I've tried it here and it works.... I can switch the PWM output between RB0 and RB3 by changing the CONFIG like shown in the previous message.
However, I don't see you setting the TRIS register anywhere and I don't know if HPWM does that for you, always best to do that your self.
/Henrik.
Bookmarks