Re: PWM using dsPIC33EV256GM106
Oh, there's a complete bundle for AN1078 targeting this very derivative!
And AN1292 might apply as well.
Most supporting material islinked on the product page, although further links might be contained within the documents linked there.
But WTF is a "triangle wave" in the context of motor control?
You question looks more like one of a "wannabe engineer"...
PEBKAC / EBKAC / POBCAK / PICNIC (eventually see en.wikipedia.org)