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.

Using RP14 and RP15 of PIC24F for UART

Status
Not open for further replies.

D_A_V_E

Member level 5
Member level 5
Joined
Nov 13, 2007
Messages
91
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
1,736
Hi guys

I have started to play with a PIC24F. Does anyone no how to PPS system works. I would like to use RP14 and RP15 for UART. Does anyone know if this is possible??

thanks

D
 

pic24f pps

Hi!
Ofcourse it is possible to use these pins for USART. Which pin u want to connect to RX and which on to TX. Reading the datasheet carefully will help u how to do it. I have done that for dsPIC33FJ12MC202. e.g in this processor for the RX pin you have to play with bit0-4 of RPINR18 register. If u want the RX pin to connect with RP15 then the value in the reigster should be RPINR18 = 0x000F and if u want to connect RX pin to RP14 then the value should be RPINR18 = 0x000E;
Becareful to write the proper unlocking sequence to a certain pair of registers mentioned in the data sheet. This is a safety to prevent accidental writes to the configuration registers.
I hope this answers ur question.
If u still don't understand then feel free to ask. Just give me ur controller and desired configuration and i will try to write it for u.
Regards.
 

    D_A_V_E

    Points: 2
    Helpful Answer Positive Rating
pic24f configuration

Sorry bad Englisch I did not check the lines I've wrote.

Waseem Thank you very much. This is very helpfull going to try is right now.

Your,
D
 

pps version pic24f

Hi Waseem can you also tell if the TxD can go to RP15?
again many thanks!!!
 

rpor7 pic24f

Hi!
yeah TX can go to RP15. The outputs are configured through the RPORx registers. For RP15 the register is RPOR7 (at least for dsPIC33FJ12MC202).
In order to connect this to the TX pin the value should be RPOR7 = 0x0300. It has been mentioned is Table 9-2 of the above mentioned controller's datasheet. For ur device the setting may vary (although not necessarily). Actually bits 8-12 of RPOR7 register control the peripheral feature attached to pin RP15. The corresponding code for each peripheral feature is mentioned in Table 9-2.
Hopefully this will solve ur problem.

Regards.
 

pic24f pps

Again wasseem thanks for the info
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top