UART - monkeymia/orangepizero GitHub Wiki

UART

UART0 (Debug)

Exposed at the 3 pin connector J3

PCB Layout :

|              +---------+           |
|              |         |           |
|      J3:     |         |           |
|      O  3    |         |           |
|      O  2    |         |   +---+   |
|      _       |         |   | U |   |
|     |_| 1    |         |   | S |   |
|              |Ethernet |   | B |   |
+--------------+---------+---+---+---+

With :

  • pin3 : CPUX-UTX (via resistor R133)
  • pin2 : CPUX-URX (pull-up resistor 10k to VCC-UARTX == VCC-IO == 3V3/0.8A)
  • pin1 : GND
  • Typically the RX is connect to the other TX and TX to the other RX
  • Voltage converter is required if the other side is not UART 3V3

CPU H3 Datasheet

  • 64 Byte Transmit and receive FIFO
  • Compatible with industry standards 16550 UARTS
  • up to 5 UART controllers
  • Support Infrared Data Association (Irda) 1.0 SIR
  • DMA controller interface
  • Software/Hardware Flow Control
  • Interrupt support for FIFOs, Status Change

Kernel

https://github.com/torvalds/linux/blob/master/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts

chosen {
        stdout-path = "serial0:115200n8";
};

Python

sudo apt-get install python3-serial

Misc

⚠️ **GitHub.com Fallback** ⚠️