Skip to main content

UART

Availability

Device

Description

The UART class represents UART asynchronous serial ports, of which imps currently provide between two and five, depending on type. The imp002 module has an additional ‘half’ UART that is receive-only; there is no available transmit pin.

Objects representing a given imp’s specific UART buses are automatically instantiated at start-up and are accessed through the following object properties of the hardware object:

imp UART 1 UART 2 UART 3 UART 4 UART 5 UART 6 UART 7
imp001 uart12 uart1289 uart57
imp002 uart12 uart1289 uart57 uart6E uartB
imp003 uartDM uartFG uartQRPW uartUVGD uartWJ
imp004m uartBCAW uartFGJH uartHJ uartQ
imp005 uart0 uart1 uart2
imp006 uartABCD uartPQRS uartXEFGH uartXJKLM uartYABCD uartYEFGH uartYJKLM
impC001 uartDCAB uartEVMT uartNU uartHJKL uartPQSR uartXBADC uartYABCD

All of the imp005’s UART buses are all accessed via dedicated pins rather than GPIO, hence the slightly different nomenclature.

  • For more information on every imp modules’ pin-outs, see the imp pin mux.

  • For more information on the UART bus and its use in imp-based projects, please see UART Explained.

Member Entities

The UART object has the following member methods: