25.5.7 Control G
| Name: | CTRLG |
| Offset: | 0x06 |
| Reset: | 0x00 |
| Property: | - |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| ABW[1:0] | ENC | PROTCONV[2:0] | |||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | |||
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | |||
Bits 7:6 – ABW[1:0] Auto-baud Window Size
| Value | Name | Description |
|---|---|---|
| 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
| Value | Description |
|---|---|
| 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.
| Value | Name | Description |
|---|---|---|
| 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 |
