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
I/O pins allocation
-
- Site Admin - Expert
- Posts: 616
- Joined: Wed Mar 07, 2007 11:23 pm
- Location: Bayonne- France
- Contact:
Re: I/O pins allocation
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
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
Who is online
Users browsing this forum: No registered users and 2 guests