Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Doubt in Peripheral Pin Select - dsPIC33EP256MU810

Status
Not open for further replies.

Joyhtidas

Member level 4
Joined
Nov 30, 2009
Messages
72
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,288
Location
Bangalore, India
Activity points
1,709
Hi,
I am designing the hardware for servo control application.
I need to use SPI in dsPIC. I am little confused about PPS.
I want SDO,SDI,SCK to be selected through PPS.

Can somebody help to solve this problem

note: - The processor is dsPIC33EP256MU810

Thanks in advance
 

You can assign the peripherals such as SPI, UART, PWM to be on any of the pins labelled RPxx - you are not restricted to just one location like on the older chips. I think the ones marked RPIxx can only be used as peripheral inputs, not outputs. There should be a list in the manual of which are available for inputs and which are outputs.

Keith
 

Hi,
I checked the pin assignment, but I didn't found any option to SDO to assign
remaining things such as SDI,SCK and SS is found except SDO.

Thanks
 

The inputs are listed on page 192/3 in the manual - I guess you have found those. The outputs are listed separately - see page 196/7.

Keith.

---------- Post added at 09:28 ---------- Previous post was at 09:23 ----------

By the way, it is useful to look at some of the example programs such as those for the Explorer 16. In there you will find useful #defines such as
Code:
#define SDO1_IO		7
in iomapping.h and usage such as
Code:
RPOR10bits.RP21R = SDO2_IO;
in iomapping.c.

Keith.

---------- Post added at 09:31 ---------- Previous post was at 09:28 ----------

... and make sure you download the reference manual sections as well - there is more detail in there.

---------- Post added at 09:57 ---------- Previous post was at 09:31 ----------

One other confusion can arise because "inputs are mapped on the basis of the peripheral" whereas "outputs are mapped on the basis of the pin"!
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top