Difference between revisions of "Serial peripherals"
Jump to navigation
Jump to search
m (Alexis.Tantot moved page Serial I/O to Serial peripherals) |
Joost.Weijs (talk | contribs) |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 4: | Line 4: | ||
The Open.OC2 carrier board brings out several of the Jetson's UART interfaces which can be used to communicate with external devices. | The Open.OC2 carrier board brings out several of the Jetson's UART interfaces which can be used to communicate with external devices. | ||
=== J2 (Connector) === | === J2 (Connector) === | ||
| − | {| | + | {| class="wikitable" |
|+ | |+ | ||
|- | |- | ||
| Line 17: | Line 17: | ||
=== ESP-WROOM-02 === | === ESP-WROOM-02 === | ||
| − | {| | + | {| class="wikitable" |
|+ | |+ | ||
|- | |- | ||
| Line 26: | Line 26: | ||
| '''Jetson name''' || UART1 | | '''Jetson name''' || UART1 | ||
|- | |- | ||
| − | | '''Remarks''' || 1.8V on Jetson module, shifted to 3.3V by SN74AVC4T245 <br> Connected to ESP-WROOM-02 module, used to flash or communicate with ESP-WROOM-02 module, see | + | | '''Remarks''' || 1.8V on Jetson module, shifted to 3.3V by SN74AVC4T245 <br> Connected to ESP-WROOM-02 module, used to flash or communicate with ESP-WROOM-02 module, see [[ESP-WROOM-02 flashing]] for details |
|} | |} | ||
=== Cube === | === Cube === | ||
| − | {| | + | {| class="wikitable" |
|+ | |+ | ||
|- | |- | ||
| Line 39: | Line 39: | ||
| '''Jetson name''' || UART0 | | '''Jetson name''' || UART0 | ||
|- | |- | ||
| − | | '''Remarks''' || 1.8V on Jetson module, shifted to 3.3V by SN74AVC4T245 <br> Connected to Cube flight controller ( | + | | '''Remarks''' || 1.8V on Jetson module, shifted to 3.3V by SN74AVC4T245 <br> Connected to Cube flight controller (SERIAL2) used to flash or communicate with Cube, see [[Cube firmware updating and communication]] for details |
|} | |} | ||
| Line 66: | Line 66: | ||
| '''Voltage level''' || 3.3V | | '''Voltage level''' || 3.3V | ||
|- | |- | ||
| − | | '''On-board peripherals''' || 0x48 - Thermometer (LM75BD)<br> | + | | '''On-board peripherals''' || 0x48 - Thermometer (LM75BD)<br>0x49 - ADC (ADS1015)<br> 0x51 - RTC (PCF8563) |
|- | |- | ||
| '''External connectors''' || J15 | | '''External connectors''' || J15 | ||
| Line 108: | Line 108: | ||
|rowspan="2"|SPI0 | |rowspan="2"|SPI0 | ||
|CS0 | |CS0 | ||
| − | |<code>/dev/spidev0.0</code><ref> | + | |<code>/dev/spidev0.0</code><ref>Used by driver</ref> |
|MCP2515-I | |MCP2515-I | ||
|CAN controller | |CAN controller | ||
Latest revision as of 16:05, 10 November 2021
Refer to pinouts for pinouts
Jetson module UART
The Open.OC2 carrier board brings out several of the Jetson's UART interfaces which can be used to communicate with external devices.
J2 (Connector)
| Device path | /dev/ttyS0
|
| Voltage level | 3.3V |
| Jetson name | UART2 |
| Remarks | 1.8V on Jetson module, shifted to 3.3V by SN74AVC4T245 Boots into console, can be used for debugging during boot |
ESP-WROOM-02
| Device path | /dev/ttyTHS1
|
| Voltage level | 3.3V |
| Jetson name | UART1 |
| Remarks | 1.8V on Jetson module, shifted to 3.3V by SN74AVC4T245 Connected to ESP-WROOM-02 module, used to flash or communicate with ESP-WROOM-02 module, see ESP-WROOM-02 flashing for details |
Cube
| Device path | /dev/ttyTHS2
|
| Voltage level | 3.3V |
| Jetson name | UART0 |
| Remarks | 1.8V on Jetson module, shifted to 3.3V by SN74AVC4T245 Connected to Cube flight controller (SERIAL2) used to flash or communicate with Cube, see Cube firmware updating and communication for details |
Jetson module I2C
The Jetson i2c interfaces are used to communicate with onboard peripherals, and can also be used to connect external devices
I2C 0
| Device path | /dev/i2c-0
|
| Voltage level | 3.3V |
| On-board peripherals | 0x48 - Thermometer (LM75BD) 0x49 - ADC (ADS1015) 0x60 - DAC (MCP47CBV12) 0x64[1] - Crypto chip (ATSHA204A) |
| External connectors | N/A |
I2C 1
| Device path | /dev/i2c-1
|
| Voltage level | 3.3V |
| On-board peripherals | 0x48 - Thermometer (LM75BD) 0x49 - ADC (ADS1015) 0x51 - RTC (PCF8563) |
| External connectors | J15 |
I2C 2
| Device path | /dev/i2c-2
|
| Voltage level | 3.3V |
| On-board peripherals | 0x50 - Jetson module EEPROM 0x0A - Audio codec (SGTL5000) |
| External connectors | N/A |
I2C 6 (CAM I2C)
| Device path | /dev/i2c-6
|
| Voltage level | 3.3V |
| On-board peripherals | 0x10 - Camera i2c (through mux!) 0x40 - Jetson module power monitor 0x6A - USB3.0(SS) hub (RTS5411S) |
| External connectors | J13 (board extension connection) pins 21, 23. Through mux to CSI-0, CSI-2 (J17, J36) |
Jetson module SPI
| SPI | CS | Address | Device | Description |
|---|---|---|---|---|
| SPI0 | CS0 | /dev/spidev0.0[2]
|
MCP2515-I | CAN controller |
| CS1 | /dev/spidev0.1
|
Test Point | PT4 | |
| SPI1 | CS0 | /dev/spidev1.0
|
Connectors | J19 (Camera microcoax) + J13 (daughter board) + J14 |
| CS1 | /dev/spidev1.1
|
Connectors | J13 (daughter board) + J14 |