I/O pins allocation

Post Reply
Nadav_Technion
Posts: 1
Joined: Thu Jan 06, 2011 10:51 am

I/O pins allocation

Post by Nadav_Technion » Sat Jan 08, 2011 9:37 am

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

LubinKerhuel
Site Admin - Expert
Posts: 616
Joined: Wed Mar 07, 2007 11:23 pm
Location: Bayonne- France
Contact:

Re: I/O pins allocation

Post by LubinKerhuel » Sat Jan 08, 2011 11:42 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests