Page 1 of 1

I/O pins allocation

Posted: Sat Jan 08, 2011 9:37 am
by Nadav_Technion
Hi Lubin
I'm an undergrad student working on a project which require PWM for a motor using dspic33FJ256GP710A

me and my partner are trying to figure out how we allocate a physical I/O pin to the OC

in other words how do we know which pin will have the desired output function
thanks
Nadav

Re: I/O pins allocation

Posted: Sat Jan 08, 2011 11:42 pm
by LubinKerhuel
Hi Nadav,

Not sure to understand your question.
dspic 33FJ256GP710A does not have PWM motor peripheral. However, you could use Output Compare peripheral. On the datasheet on page 17, you can see the dsPIC pin diagram and thus you will be able to locate Output Compare (from OC1 to OC8).

Thus, to use one of these pin, you just need to place either a block Output Compare or Output Compare HW.

As soon as you place a block of a certain peripheral, the corresponding PIN of the dsPIC are configured so as to has the corresponding peripheral function.

Note that on some dsPIC (not on 33FJ256GP710A) has remapable pins capabilities (noted RP pins). This means that you can choose the PIN placement of certain peripheral. This function is done with the blockset through the mapping PIN block.

Lubin