Note that the default firmware on the SAMD09 breakout does not include UART support.

When the UART module is configured, the seesaw can act as an I2C UART bridge.

UART Pins are:

RX: PA11

TX: PA10

The module base register address for the UART is 0x02.

The I2C <-> UART bridge is still in beta at the time of writing this guide. Detailed specs are not yet available.

Function Registers

Register Address

Register Name

Regsiter Size

Notes

0x00

STATUS

8 bits

Read Only

0x02

INTEN

8 bits

Read/Write

0x03

INTENCLR

8 bits

Write Only

0x04

BAUD

32 bits

Read/Write

0x05

DATA

32 bytes

Read/Write

Status (0x00, 8bits, Read Only)

 

bits 7-2

bit 1

bit 0

Reserved

DATA_RDY

ERROR

The ERROR bit is set when the UART encounters an error.

The DATA_RDY bit is set when there is data available in the RX buffer. This bit gets cleared when the data is read.

INTEN (0x2, 8bits, Read/Write)

 

bits 7-1

bit 0

Reserved

DATA_RDY

If the DATA_RDY bit is set, the interrupt will fire when there is data in the RX buffer.

Writing zeros to this register has no effect.

INTENCLR (0x03, 8bits, Write Only)

same bits as INTEN. Writing 1 to any bit in this register disabled the corresponding interrupt.

Writing zeros to this register has no effect.

BAUD (0x04, 32bits, Read/Write)

Writing to this register sets the BAUD rate.

Default 9600

DATA (0x05, 32bytes, Read/Write )

Writing to the DATA register puts the data into the TX buffer to be output on the TX pin.

Reading from the DATA register reads the data from the RX buffer.

When this register is read, the DATA_RDY bit is cleared.

Last updated on 2017-11-01 at 05.10.35 PM Published on 2017-11-01 at 05.26.25 PM