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}}")
 
Line 7: Line 7:
 
!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"|1.0.0
|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"|Oct 2020
|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"|First DESK 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_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:#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/>
Line 26: Line 16:
 
==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:
  
''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).
+
* J25 is a 6x1x2.54 pitch vertical 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)
 +
* 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)
  
 
===Signals ===
 
===Signals ===
  
The following table describes the interface signals:
+
The following tables describes the interface signals
 +
 
 +
==== UART4 ====
  
 
{| class="wikitable"  
 
{| class="wikitable"  
Line 46: Line 37:
 
! latexfontsize="scriptsize"| Pin Notes
 
! latexfontsize="scriptsize"| Pin Notes
 
|-
 
|-
|1,2,4,6,,7,8,10
+
| 1 || J2.50 || PMOD_A0 || Clear to send ||
| -
+
|-
| N.A.
+
| 2 || J2.89 || PMOD_A1 || Transmit data ||
| N.C.
+
|-
| Not connected
+
| 3 || J2.91 || PMOD_A2 || Receive data ||
 +
|-
 +
| 4 || J2.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 || J2.95 || UART5_A || UART2 receive line || UART5_A || UART5_A
 +
|-
 +
| 3 || J2.93 || UART5_Y || UART2 transmit line || UART5_Y || UART5_A
 
|-
 
|-
| 3
+
| 4 || - || Not connected || Not connected || Not connected || Not connected
| J1.189
 
| RS232_RX
 
| Receive line
 
|  
 
 
|-
 
|-
| 3
+
| 5 || - || DGND || Ground || Ground || Ground
| J1.187
 
| RS232_TX
 
| Transmit line
 
|  
 
 
|-
 
|-
| 9
+
| 6 || - || Not connected || Not connected || Not connected || Not connected
| -
+
|-
| DGND
+
| 7 || J2.105 || UART5_Z || UART2 Request To Send || UART5_Z || UART5_B
| Ground
+
|-
|  
+
| 8 || J2.107 || UART5_B || UART2 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"
 +
! latexfontsize="scriptsize"| Jumper
 +
! latexfontsize="scriptsize"| RS232 mode
 +
! latexfontsize="scriptsize"| RS422 mode
 +
! latexfontsize="scriptsize"| 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
 +
|}
 +
 +
[[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.
# 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]]

Revision as of 14:04, 16 October 2020

History
Version Issue Date Notes
1.0.0 Oct 2020 First DESK release


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.54 pitch vertical 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)
  • 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)

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 J2.50 PMOD_A0 Clear to send
2 J2.89 PMOD_A1 Transmit data
3 J2.91 PMOD_A2 Receive data
4 J2.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 J2.95 UART5_A UART2 receive line UART5_A UART5_A
3 J2.93 UART5_Y UART2 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 J2.105 UART5_Z UART2 Request To Send UART5_Z UART5_B
8 J2.107 UART5_B UART2 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
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.