25.5.7 Control G

Name: CTRLG
Offset: 0x06
Reset: 0x00
Property: -

Bit 76543210 
 ABW[1:0] ENC PROTCONV[2:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 

Bits 7:6 – ABW[1:0] Auto-baud Window Size

These bits control the tolerance for the difference between the baud rates between the two synchronizing devices when using LIN Constrained Auto-baud mode. The tolerance is determined by the number of baud samples between every two bits. When the baud rates are identical, there are 32 baud samples between each bit pair, as each bit is sampled 16 times.
ValueNameDescription
0x00 WDW0 32±6 (18% tolerance)
0x01 WDW1 32±5 (15% tolerance)
0x02 WDW2 32±7 (21% tolerance)
0x03 WDW3 32±8 (25% tolerance)

Bit 4 – ENC Encoding

This bit controls whether IrDA encoding and decoding is enabled. For more information, refer to the IRCOM Mode of Operation section.
ValueDescription
0 IrDA encoding and decoding is disabled
1 IrDA encoding and decoding is enabled

Bits 2:0 – PROTCONV[2:0] Protocol Converter

This bit field is used to enable protocol conversion and defines how received characters are decoded to either a ‘0’ or ‘1’ bit. Protocol conversion cannot be used if IrDA encoding (ENC in USARTn.CTRLG) is enabled. Any configuration other than ‘0’ enables protocol conversion for transmit.

ValueNameDescription
0x00 NONE No protocol conversion
0x01 FIXED Single character for both ‘0’ and ‘1
0x02 MASKED AUXDATA2 works as a mask when decoding received data
0x03 DUAL AUXDATA2 defines second value for ‘1’ when decoding received data
0x04 - Reserved
0x05 - Reserved
0x06 - Reserved
0x07 - Reserved