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.

which pins are uart pins in pic24fj128gb106

Status
Not open for further replies.

engineer khan

Member level 3
Joined
Aug 31, 2012
Messages
66
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Activity points
1,833
i have pic24fj128gb106 microcontroller and i need to use its uart pins but i dont find it ,the pin diagram is shown
 

Attachments

  • pic24.png
    pic24.png
    228.2 KB · Views: 72

Here's a big RTFM for you: There are no dedicated UART pins. It took me 1 minute to find your answer; now you try. It's fun and easy!!
 

I sought too much but i didnt find uart pins in the above controller
please someone is there to help me thanks
 


From the data sheet - Register 17.1 (page 202):
Note 1: If UARTEN = 1, the peripheral inputs and outputs must be configured to an available RPn pin. See
Section 10.4 “Peripheral Pin Select” for more information.

You have to assign the TX and RX pins of the selected UART each to one remappable pin. You choose the pins, they can be any of the remappable ones.

Brian.
 

i didnt find uart pins in pin diagram what to do please
 

I would suggest reading classes or an alternative profession may be the best way forward.

Brian.
 
  • Like
Reactions: barry

    barry

    Points: 2
    Helpful Answer Positive Rating
i didnt find uart pins in pin diagram what to do please
the image attached shows the schematic of a PCB using a PIC24FJ256GB110
the PC serial is connected to pins 49 (RP10) and 50 (RP17)

the code to set up the UART pins is
Code:
     #include <pps.h>
    iPPSOutput(OUT_PIN_PPS_RP17, OUT_FN_PPS_U2TX);      // TXD
    iPPSInput (IN_FN_PPS_U2RX, IN_PIN_PPS_RP10);       // RXD
pic24serial.jpg
 

uart pin designation in pic24fjxxxgb106

I tried my best but not found uart pins such as Rx Tx pins in pic24fjxxxgb106 microcontroller,,,i dont know their representation in the pin diagram please please help me finding uart pins in pic24fj series,what is their representation in pin diagram???
 

Re: uart pin designation in pic24fjxxxgb106

hi,
Look at page #140 of the datasheet, it requires that you define the UART using the Peripheral pin selection register.

Also Table 4-10 on pages #50 & #57.

E
 

Note that horace1's example code uses UART2, you need to change U2TX and U2RX to UxTX and UxRX where 'x' is the UART number you are using.

Brian.
 

'There is none so blind as he who will not see.'

There is none so deaf as he who will not listen.
 

attached is the schematic for a PIC24FJ64GB004 (similar device to a pic24fj128gb106)

the PC serial is connected to pins 6 (RP2) and 7 (RP3)

the code to map the pins to UART2 is (accessing the PPS registers directly not using pps.h functions)
Code:
    _RP3R = 5;					// for UART2 Rx and Tx
    _U2RXR = 2;
pic24seria2l.jpg
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top