24.5.8 Control C - Async Mode

This register description is valid for all modes except Master SPI mode. When the USART Communication Mode bits (CMODE) in this register are written to 'MSPI', see Control C - Master SPI Mode for the correct description.

Name: CTRLC
Offset: 0x07
Reset: 0x00
Property: -

Bit 76543210 
 CMODE[1:0]PMODE[1:0]SBMODECHSIZE[2:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000011 

Bits 7:6 – CMODE[1:0] USART Communication Mode

Writing these bits selects the communication mode of the USART.

Writing a 0x3 to these bits alters the available bit fields in this register, see Control C - Master SPI Mode- Master SPI Mode .

ValueNameDescription
0x0ASYNCHRONOUSAsynchronous USART
0x1SYNCHRONOUSSynchronous USART
0x2IRCOMInfrared Communication
0x3MSPIMaster SPI

Bits 5:4 – PMODE[1:0] Parity Mode

Writing these bits enables and selects the type of parity generation.

When enabled, the Transmitter will automatically generate and send the parity of the transmitted data bits within each frame. The Receiver will generate a parity value for the incoming data, compare it to the PMODE setting, and set the Parity Error flag (PERR) in the Status register (USART.STATUS) if a mismatch is detected.

ValueNameDescription
0x0DISABLEDDisabled
0x1-Reserved
0x2EVENEnabled, Even Parity
0x3ODDEnabled, Odd Parity

Bit 3 – SBMODE Stop Bit Mode

Writing this bit selects the number of stop bits to be inserted by the Transmitter.

The Receiver ignores this setting.

ValueDescription
01 stop bit
12 stop bits

Bits 2:0 – CHSIZE[2:0] Character Size

Writing these bits select the number of data bits in a frame. The Receiver and Transmitter use the same setting. For 9BIT character size, the order of which byte to read or write first, low or high byte of RXDATA or TXDATA is selectable.
ValueNameDescription
0x05BIT5-bit
0x16BIT6-bit
0x27BIT7-bit
0x38BIT8-bit
0x4-Reserved
0x5-Reserved
0x69BIT9-bit (Low byte first)
0x79BIT9-bit (High byte first)