PIC32MZ UART pins

Serge Vakulenko edited this page Mar 3, 2015 · 4 revisions

UART signals on PIC32MZ microcontroller

On PIC32MZ chip, a pin for UART RX signal is selected by writing appropriate value to UxRXR register.

UART register Available pins
U1RXR, U5RXR RA14, RB5, RB9, RB10, RC1, RC14, RD2, RD6, RD10, RD14, RF1, RF4, RG1, RG8
U3RXR RA15, RB1, RB3, RC4, RC13, RD3, RD7, RD11, RD15, RE5, RF0, RF5, RG0, RG7
U2RXR RB0, RB7, RB8, RB15, RC3, RD4, RD9, RD12, RE3, RE9, RF8, RF12, RG6
U4RXR, U6RXR RB2, RB6, RB14, RC2, RD0, RD1, RD5, RE8, RF2, RF3, RF13, RG9

A pin for UART TX signal is selected by writing appropriate value to the pin function register.

Pin register UART signals
RPA15R, RPB1R, RPB3R, RPC4R, RPC13R, RPD3R, RPD7R, RPD11R, RPD15R, RPE5R, RPF0R, RPF5R, RPG0R, RPG7R U1TX, U5TX
RPB2R, RPB6R, RPB14R, RPC2R, RPD0R, RPD1R, RPD5R, RPE8R, RPF2R, RPF3R, RPF13R, RPG9R U2TX, U6TX
RPA14R, RPB5R, RPB9R, RPB10R, RPC1R, RPC14R, RPD2R, RPD6R, RPD10R, RPD14R, RPF1R, RPF4R, RPG1R, RPG8R U3TX
RPB0R, RPB7R, RPB8R, RPB15R, RPC3R, RPD4R, RPD9R, RPD12R, RPE3R, RPE9R, RPF8R, RPF12R, RPG6R, U4TX, U6TX

How to select UART on MEB-II board

Here is a combined list of all pins available for UART functions:

Pin Signal Pictail Conflict on MEB-II board
RA14 U1RX, U3TX, U5RX 4 Touch screen serial clock
RA15 U1TX, U3RX, U5TX 6 Touch screen serial data
RB0 U2RX, U4TX, U6TX 23 Camera LDO shutdown
RB1 U1TX, U3RX, U5TX Display horizontal sync
RB2 U2TX, U4RX, U6RX, U6TX Bluetooth regulator enable
RB3 U1TX, U3RX, U5TX 10, 18 Wi-Fi serial data in
RB5 U1RX, U3TX, U5RX microSD data1
RB6 U2TX, U4RX, U6RX, U6TX PGEC2, on-board ICSP programmer/debugger
RB7 U2RX, U4TX, U6TX PGED2, on-board ICSP programmer/debugger
RB8 U2RX, U4TX, U6TX EBI-SRAM address 10
RB9 U1RX, U3TX, U5RX EBI-SRAM address 7
RB10 U1RX, U3TX, U5RX 21 Audio serial data in
RB14 U2TX, U4RX, U6RX, U6TX 19, 20 Button S3 on SK, microSD card detect
RB15 U2RX, U4TX, U6TX 22 Camera input clock
RC1 U1RX, U3TX, U5RX EBI-SRAM address 6
RC2 U2TX, U4RX, U6RX, U6TX EBI-SRAM address 12
RC3 U2RX, U4TX, U6TX EBI-SRAM pixel clock
RC4 U1TX, U3RX, U5TX EBI-SRAM pixel clock
RC13 U1TX, U3RX, U5TX -- (free, pin 105) --
RC14 U1RX, U3TX, U5RX Secondary oscillator
RD0 U2TX, U4RX, U6RX, U6TX Wi-Fi interrupt
RD1 U2TX, U4RX, U6RX, U6TX 25 Audio bit clock
RD2 U1RX, U3TX, U5RX EBI-SRAM/Display data 14
RD3 U1TX, U3RX, U5TX EBI-SRAM/Display data 15
RD4 U2RX, U4TX, U6TX Camera pixel
RD5 U2TX, U4RX, U6RX, U6TX SQI memory chip select
RD6 U1RX, U3TX, U5RX Ethernet ETXEN
RD7 U1TX, U3RX, U5TX microSD command
RD9 U2RX, U4TX, U6TX EBI-SRAM address 15
RD10 U1RX, U3TX, U5RX 12, 16 Wi-Fi serial clock
RD11 U1TX, U3RX, U5TX Ethernet EMDC
RD12 U2RX, U4TX, U6TX EBI-SRAM/Display data 12
RD14 U1RX, U3TX, U5RX 15 Audio serial data output
RD15 U1TX, U3RX, U5TX Audio clock input
RE3 U2RX, U4TX, U6TX EBI-SRAM/Display data 3
RE5 U1TX, U3RX, U5TX EBI-SRAM/Display data 5
RE8 U2TX, U4RX, U6RX, U6TX Camera shutdown
RE9 U2RX, U4TX, U6TX 24 Wi-Fi chip select
RF0 U1TX, U3RX, U5TX EBI-SRAM/Display data 11
RF1 U1RX, U3TX, U5RX EBI-SRAM/Display data 10
RF2 U2TX, U4RX, U6RX, U6TX Camera serial data
RF3 U2TX, U4RX, U6RX, U6TX 13 USB signal USBID
RF4 U1RX, U3TX, U5RX EBI-SRAM/Display address 9
RF5 U1TX, U3RX, U5TX EBI-SRAM/Display address 8
RF8 U2RX, U4TX, U6TX Camera serial clock
RF12 U2RX, U4TX, U6TX 14, 27 Audio left-right clock
RF13 U2TX, U4RX, U6RX, U6TX Display backlight enable
RG0 U1TX, U3RX, U5TX EBI-SRAM/Display data 8
RG1 U1RX, U3TX, U5RX EBI-SRAM/Display data 9
RG6 U2RX, U4TX, U6TX 11 microSD clock
RG7 U1TX, U3RX, U5TX 7, 8 Wi-Fi serial data out
RG8 U1RX, U3TX, U5RX 9 microSD data 0
RG9 U2TX, U4RX, U6RX, U6TX EBI-SRAM address 2
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.