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

From DAVE Developer's Wiki
Jump to: navigation, search
(Created page with "{{subst:EVB_Interfaces_and_Connectors | nome-som=AXEL Lite | nome-peripheral = UARTs}}")
 
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<section begin=History/>
+
<section begin="History" />
 
{| style="border-collapse:collapse; "
 
{| style="border-collapse:collapse; "
 
!colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History
 
!colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History
 
|-  
 
|-  
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Version
 
 
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Issue Date
 
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Issue Date
 
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
 
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
 
|-
 
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|X.Y.Z
+
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|{{oldid|14467|2021/09/07}}
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Month Year
+
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|First EVK release
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|TBD
 
 
|-
 
|-
|-
+
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |2022/05/27
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|[TBD_link X.Y.Z]
+
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |Add GPIO setting reference
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Month Year
 
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|TBD
 
|-
 
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|...
 
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|...
 
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|...
 
 
|-
 
|-
 
|}
 
|}
<section end=History/>
+
<section end="History" />
<section begin=Body/>
+
<section begin="Body" />
  
 
==UARTs interface ==
 
==UARTs interface ==
  
''TBD: sostituire le sezioni con le informazioni sull'uso della periferica e del suo connettore''
 
''Nell'esempio di seguito c'è la descrizione dell'interfaccia UART/console''
 
  
 
=== Description  ===
 
=== Description  ===
  
The UARTs interface available on the Evaluation Kit at the connector ''TBD:Jxxx''.  
+
The UARTs interface available on the Evaluation Kit are mapped to the following connectors:
 +
 
 +
* J25 is a 6x1x2.54mm horizontal socket header for the UART4 port. This is a Digilent Pmod™ Compatible connector for the UART Pmod™ Compatiblemodule (6-Pin Pmod™ Compatible Connector  Digilent Pmod™ Interface Specification Type 4 UART)
 +
 
 +
 
 +
[[File:AXEL Lite-EVB-PMOD-connector.png|thumb|center| 500px|PMOD configuration]]
 +
 
  
''Jxx'' is a ''TBD:connector-type'' header connector for the RS232 two-wires UART3 port, used for debug purposes (bootloader and operating system serial console).
+
* J21 is a standard DB9 male connector for the configurable UART5 port. The board provides some configuration options for the selection of the UART mode (RS232/RS422/RS485 with auto-direction)
 +
 
 +
 
 +
[[File:AXEL Lite-EVB-DB9-connector.png|thumb|center| 500px|DB9 configuration]]
  
 
===Signals ===
 
===Signals ===
  
The following table describes the interface signals:
+
The following tables describes the interface signals
 +
 
 +
==== UART4 ====
 +
 
 +
{| class="wikitable"
 +
! latexfontsize="scriptsize" | Pin#
 +
! latexfontsize="scriptsize" | SOM Pin#
 +
! latexfontsize="scriptsize" | Pin name
 +
! latexfontsize="scriptsize" | Pin function
 +
! latexfontsize="scriptsize" | Pin Notes
 +
|-
 +
| 1 || J10.50 || PMOD_A0 || Clear to send ||
 +
|-
 +
| 2 || J10.89 || PMOD_A1 || Transmit data ||
 +
|-
 +
| 3 || J10.91 || PMOD_A2 || Receive data ||
 +
|-
 +
| 4 || J10.40 || PMOD_A3 || Request to send ||
 +
|-
 +
| 5 || - || DGND || Ground ||
 +
|-
 +
| 6 || - || 3V3 || +3.3 V ||
 +
|}
 +
 
 +
==== UART5 ====
 +
 
 +
{| class="wikitable"
 +
! latexfontsize="scriptsize" | Pin#
 +
! latexfontsize="scriptsize" | SOM Pin#
 +
! latexfontsize="scriptsize" | Pin name
 +
! latexfontsize="scriptsize" | RS-232
 +
! latexfontsize="scriptsize" | RS-422
 +
! latexfontsize="scriptsize" | RS-485
 +
|-
 +
| 1 || - || Not connected || Not connected || Not connected || Not connected
 +
|-
 +
| 2 || J10.95 || UART5_A || UART5 receive line || UART5_A || UART5_A
 +
|-
 +
| 3 || J10.93 || UART5_Y || UART5 transmit line || UART5_Y || UART5_A
 +
|-
 +
| 4 || - || Not connected || Not connected || Not connected || Not connected
 +
|-
 +
| 5 || - || DGND || Ground || Ground || Ground
 +
|-
 +
| 6 || - || Not connected || Not connected || Not connected || Not connected
 +
|-
 +
| 7 || J10.105 || UART5_Z || UART5 Request To Send || UART5_Z || UART5_B
 +
|-
 +
| 8 || J10.107 || UART5_B || UART5 Clear To Send || UART5_B || UART5_B
 +
|-
 +
| 9 || - || Not connected || Not connected || Not connected || Not connected
 +
|}
 +
 
 +
The J19 and J20 jumpers are used to configure the UART mode, as reported below:
  
 
{| class="wikitable"  
 
{| class="wikitable"  
! latexfontsize="scriptsize"| Pin#
+
! latexfontsize="scriptsize" | Jumper
! latexfontsize="scriptsize"| SOM Pin#
+
! latexfontsize="scriptsize" | RS232 mode
! latexfontsize="scriptsize"| Pin name
+
! latexfontsize="scriptsize" | RS422 mode
! latexfontsize="scriptsize"| Pin function
+
! latexfontsize="scriptsize" | RS485 mode
! latexfontsize="scriptsize"| Pin Notes
+
|-
 +
| 1-3 || open || open || closed
 +
|-
 +
| 5-7 || open || closed || open
 +
|-
 +
| 9-11 || open || closed || open
 +
|-
 +
| 2-4 || open || open || closed
 
|-
 
|-
|1,2,4,6,,7,8,10
+
| 6-8 || open || closed || closed
| -
 
| N.A.
 
| N.C.
 
| Not connected
 
 
|-
 
|-
| 3
+
| 10-12 || open || closed || closed
| J1.189
 
| RS232_RX
 
| Receive line
 
|  
 
 
|-
 
|-
| 3
+
| 13-15 || open || open || closed
| J1.187
 
| RS232_TX
 
| Transmit line
 
|  
 
 
|-
 
|-
| 9
+
| 14-16 || open || open || closed
| -
 
| DGND
 
| Ground
 
|  
 
 
|}
 
|}
 +
 +
[[File:AXEL Lite-EVB-UART5-connector.png|thumb|center| 500px|J19 and J20 connectors]]
 +
 +
[[File: AXEL_Lite_-_EVK-_UART5_configuration_jumpers.jpg|500px|thumb|UART5 jumper configuration|center]]
 +
  
 
=== 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.
+
* UART4 is mapped to <code>/dev/ttymxc3</code> device in Linux
 +
* UART5 is mapped to <code>/dev/ttymxc4</code> device in Linux
  
 
=== Device usage ===
 
=== Device usage ===
  
To connect to the debug serial port:
+
* UART4 can be used with a PMOD adapter or with a TTL peripheral
 
+
* UART5 is a MultiProtocol that support (after harware Jumper configuration) the RS232, RS4222 or RS485 protocols. The related ''device tree file'' has to be properly configured too for enabling the GPIO transceiver configuration, see [[DESK-MX6-L/Pheripherals/UART#Configuring_the_RS232.2FRS485_mode | Configuring the RS232/RS485 mode]]
# connect the DB9 adapter bracket to the J22 connector on the SBCX board
 
# 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:AXEL Lite]]
 
[[Category:AXEL Lite]]

Latest revision as of 08:23, 9 January 2024

History
Issue Date Notes

2021/09/07

First EVK release
2022/05/27 Add GPIO setting reference


UARTs interface[edit | edit source]

Description[edit | edit source]

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

  • J25 is a 6x1x2.54mm horizontal socket header for the UART4 port. This is a Digilent Pmod™ Compatible connector for the UART Pmod™ Compatiblemodule (6-Pin Pmod™ Compatible Connector Digilent Pmod™ Interface Specification Type 4 UART)


PMOD configuration


  • J21 is a standard DB9 male connector for the configurable UART5 port. The board provides some configuration options for the selection of the UART mode (RS232/RS422/RS485 with auto-direction)


DB9 configuration

Signals[edit | edit source]

The following tables describes the interface signals

UART4[edit | edit source]

Pin# SOM Pin# Pin name Pin function Pin Notes
1 J10.50 PMOD_A0 Clear to send
2 J10.89 PMOD_A1 Transmit data
3 J10.91 PMOD_A2 Receive data
4 J10.40 PMOD_A3 Request to send
5 - DGND Ground
6 - 3V3 +3.3 V

UART5[edit | edit source]

Pin# SOM Pin# Pin name RS-232 RS-422 RS-485
1 - Not connected Not connected Not connected Not connected
2 J10.95 UART5_A UART5 receive line UART5_A UART5_A
3 J10.93 UART5_Y UART5 transmit line UART5_Y UART5_A
4 - Not connected Not connected Not connected Not connected
5 - DGND Ground Ground Ground
6 - Not connected Not connected Not connected Not connected
7 J10.105 UART5_Z UART5 Request To Send UART5_Z UART5_B
8 J10.107 UART5_B UART5 Clear To Send UART5_B UART5_B
9 - Not connected Not connected Not connected Not connected

The J19 and J20 jumpers are used to configure the UART mode, as reported below:

Jumper RS232 mode RS422 mode RS485 mode
1-3 open open closed
5-7 open closed open
9-11 open closed open
2-4 open open closed
6-8 open closed closed
10-12 open closed closed
13-15 open open closed
14-16 open open closed
J19 and J20 connectors
UART5 jumper configuration


Device mapping[edit | edit source]

  • UART4 is mapped to /dev/ttymxc3 device in Linux
  • UART5 is mapped to /dev/ttymxc4 device in Linux

Device usage[edit | edit source]

  • UART4 can be used with a PMOD adapter or with a TTL peripheral
  • UART5 is a MultiProtocol that support (after harware Jumper configuration) the RS232, RS4222 or RS485 protocols. The related device tree file has to be properly configured too for enabling the GPIO transceiver configuration, see Configuring the RS232/RS485 mode