Difference between revisions of "ORCA SOM/ORCA Evaluation Kit/Interfaces and Connectors/UARTs"

From DAVE Developer's Wiki
Jump to: navigation, search
(WIP)
Line 20: Line 20:
 
=== Description  ===
 
=== Description  ===
  
The UARTs interfaces are available on the Evaluation Kit at the connector J8
+
The UARTs interfaces available on the Evaluation Kit are mapped to the following connectors:
 
+
* J8 is a 20x2x2.54mm pin header expansion connector that delivers many interfaces unused on board. On this connector are mapped these instances: UART1; UART2 (default debug console); UART4.
J8 is a 20x2x2.54mm pin header expansion connector that delivers many interfaces unused on board.
 
 
 
Some interfaces could not be available in a specific model.
 
 
 
  
 
[[File:{{{nome-som}}-EVB-UARTs-connector.png|thumb|center|500px|UARTs connector]]
 
[[File:{{{nome-som}}-EVB-UARTs-connector.png|thumb|center|500px|UARTs connector]]
 +
* J9 is a 8x1x1.25mm 53398-0871 Molex connector that delivers one RS232 4 wires (mapped to UART1) and one RS485 2 wires (mapped to UART3)  [[File:{{{nome-som}}-EVB-UARTs-connector.png|thumb|center|500px|UARTs connector]]
  
 
===Signals ===
 
===Signals ===
  
The following table describes the interface signals:
+
The following tables describe the interfaces signals:
  
 +
==== J8 ====
 
{| class="wikitable"  
 
{| class="wikitable"  
 
! latexfontsize="scriptsize" | Pin#
 
! latexfontsize="scriptsize" | Pin#
Line 44: Line 42:
 
| SAI2_TXFS
 
| SAI2_TXFS
 
| UART1_CTS
 
| UART1_CTS
|
+
|shared with RS232
 
|-
 
|-
 
| 8
 
| 8
Line 50: Line 48:
 
| SAI2_RXFS
 
| SAI2_RXFS
 
| UART1_TXD
 
| UART1_TXD
|  
+
|shared with RS232
 
|-
 
|-
 
|10
 
|10
Line 56: Line 54:
 
| SAI2_RXC
 
| SAI2_RXC
 
| UART1_RXD
 
| UART1_RXD
|  
+
|shared with RS232
 
|-
 
|-
 
|11
 
|11
Line 62: Line 60:
 
| SAI2_RXD0
 
| SAI2_RXD0
 
| UART1_RTS
 
| UART1_RTS
|  
+
|shared with RS232
 +
|-
 +
|19
 +
|J15.122
 +
|ECSPI2_MOSI
 +
|UART4_TXD
 +
|Transmit signal (OUT)
 +
|-
 +
|21
 +
|J15.120
 +
|ECSPI2_MISO
 +
|UART4_CTS
 +
|Clear to send (OUT)
 +
|-
 +
|23
 +
|J15.124
 +
|ECSPI2_SCLK
 +
|UART4_RXD
 +
|Receive signal (IN)
 +
|-
 +
|24
 +
|J15.126
 +
|ECSPI2_SS0
 +
|UART4_RTS
 +
|Request to send (IN)
 +
|-
 +
|27
 +
|J15.248
 +
|UART2_RXD
 +
|UART2_RXD
 +
|default debug console
 +
|-
 +
|29
 +
|J15.250
 +
|UART2_TXD
 +
|UART2_TXD
 +
|default debug console
 
|-
 
|-
 +
|31
 +
|J15.256
 +
|UART4_RXD
 +
|UART4_RXD
 +
|alternative to ECSPI2_SCLK
 +
|-
 +
|33
 +
|J15.258
 +
|UART4_TXD
 +
|UART4_TXD
 +
|alternative to ECSPI2_MOSI
 +
|-
 +
|1, 17
 +
| -
 +
|3V3_CB
 +
|Power output for transceiver supply
 +
|BOARD_PGOOD driven rail
 +
|-
 +
|6, 9, 14, 20, 25, 30, 34, 39
 +
| -
 +
|DGND
 +
|Ground
 
|
 
|
 +
|}
 +
 +
=== J9 ===
 +
{| class="wikitable"
 +
! latexfontsize="scriptsize" | Pin#
 +
! latexfontsize="scriptsize" | SOM Pin#
 +
! latexfontsize="scriptsize" | Pin name
 +
! latexfontsize="scriptsize" | Pin function
 +
! latexfontsize="scriptsize" | Pin Notes
 +
|-
 +
|1
 +
| -
 +
| RS485_A
 +
|Non inverting BUS signal
 
|
 
|
 +
|-
 +
|2
 +
| -
 +
| RS485_B
 +
|Inverting BUS signal
 
|
 
|
 +
|-
 +
|3
 +
| -
 +
| RS485_B_120R
 +
|Termination resistor
 +
|connect this signal to RS485_B
 +
to enable the 120R termination
 +
|-
 +
|4
 +
| -
 +
| DGND
 +
|Ground
 
|
 
|
|
 
 
|-
 
|-
|
+
|5
|
+
|J15.144
|
+
|RS232_TX
|
+
|Transmit line
|
+
|shared with J8.8
 +
|-
 +
|6
 +
|J15.140
 +
|RS232_RX
 +
|Receive line
 +
|shared with J8.10
 
|-
 
|-
|
+
|7
|
+
|J15.150
|
+
|RS232_CTS
|
+
|Clear to send line
|
+
|shared with J8.7
 
|-
 
|-
|
+
|8
|
+
|J15.142
|
+
|RS232_RTS
|
+
|Request to send line
|
+
|shared with J8.11
 
|}
 
|}
  
 
=== Device mapping ===
 
=== Device mapping ===
UART3 is mapped to <code>/dev/ttymxc2</code> device in Linux. The peripheral is used as the default serial console, both for the bootloader and the kernel.
+
UART1 is mapped to <code>/dev/ttymxc0</code> device in Linux
 +
 
 +
UART2 is mapped to <code>/dev/ttymxc1</code> device in Linux. The peripheral is used as the default serial console, both for the bootloader and the kernel.
 +
 
 +
UART3 is mapped to <code>/dev/ttymxc2</code> device in Linux
 +
 
 +
UART4 is mapped to <code>/dev/ttymxc3</code> device in Linux
  
 
=== Device usage ===
 
=== Device usage ===
  
To connect to the debug serial port:
+
The TTL UARTs on J8 can be connected to external devices that use 0-3.3V levels.
  
# connect the DB9 adapter bracket to the J22 connector on the SBCX board
+
The RS232 and RS485 uses the standard protocols.
# connect a serial cable between DB9 connector and PC COM port through a NULL-modem cable (not provided)
 
# start your favorite terminal emulator software on PC (eg: PuTTY); communication parameters are: 115200,N,8,1
 
  
 
----
 
----
  
 
[[Category:ORCA SOM]]
 
[[Category:ORCA SOM]]

Revision as of 07:30, 7 September 2021

History
Version Issue Date Notes
1.0.0 Sep 2021 First release


UARTs interface[edit | edit source]

Description[edit | edit source]

The UARTs interfaces available on the Evaluation Kit are mapped to the following connectors:

  • J8 is a 20x2x2.54mm pin header expansion connector that delivers many interfaces unused on board. On this connector are mapped these instances: UART1; UART2 (default debug console); UART4.

[[File:{Template:Nome-som-EVB-UARTs-connector.png|thumb|center|500px|UARTs connector]]

  • J9 is a 8x1x1.25mm 53398-0871 Molex connector that delivers one RS232 4 wires (mapped to UART1) and one RS485 2 wires (mapped to UART3) [[File:{Template:Nome-som-EVB-UARTs-connector.png|thumb|center|500px|UARTs connector]]

Signals[edit | edit source]

The following tables describe the interfaces signals:

J8[edit | edit source]

Pin# SOM Pin# Pin name Pin function Pin Notes
7 J15.150 SAI2_TXFS UART1_CTS shared with RS232
8 J15.144 SAI2_RXFS UART1_TXD shared with RS232
10 J15.140 SAI2_RXC UART1_RXD shared with RS232
11 J15.142 SAI2_RXD0 UART1_RTS shared with RS232
19 J15.122 ECSPI2_MOSI UART4_TXD Transmit signal (OUT)
21 J15.120 ECSPI2_MISO UART4_CTS Clear to send (OUT)
23 J15.124 ECSPI2_SCLK UART4_RXD Receive signal (IN)
24 J15.126 ECSPI2_SS0 UART4_RTS Request to send (IN)
27 J15.248 UART2_RXD UART2_RXD default debug console
29 J15.250 UART2_TXD UART2_TXD default debug console
31 J15.256 UART4_RXD UART4_RXD alternative to ECSPI2_SCLK
33 J15.258 UART4_TXD UART4_TXD alternative to ECSPI2_MOSI
1, 17 - 3V3_CB Power output for transceiver supply BOARD_PGOOD driven rail
6, 9, 14, 20, 25, 30, 34, 39 - DGND Ground

J9[edit | edit source]

Pin# SOM Pin# Pin name Pin function Pin Notes
1 - RS485_A Non inverting BUS signal
2 - RS485_B Inverting BUS signal
3 - RS485_B_120R Termination resistor connect this signal to RS485_B

to enable the 120R termination

4 - DGND Ground
5 J15.144 RS232_TX Transmit line shared with J8.8
6 J15.140 RS232_RX Receive line shared with J8.10
7 J15.150 RS232_CTS Clear to send line shared with J8.7
8 J15.142 RS232_RTS Request to send line shared with J8.11

Device mapping[edit | edit source]

UART1 is mapped to /dev/ttymxc0 device in Linux

UART2 is mapped to /dev/ttymxc1 device in Linux. The peripheral is used as the default serial console, both for the bootloader and the kernel.

UART3 is mapped to /dev/ttymxc2 device in Linux

UART4 is mapped to /dev/ttymxc3 device in Linux

Device usage[edit | edit source]

The TTL UARTs on J8 can be connected to external devices that use 0-3.3V levels.

The RS232 and RS485 uses the standard protocols.