UART_CMPR

UART Comparison Register

  0x24 32 Read/Write 0x00000000  

UART Comparison Register

Bit  31 30 29 28 27 26 25 24  
                   
Access                   
Reset                   
Bit  23 22 21 20 19 18 17 16  
  VAL2[7:0]  
Access  R/W R/W R/W R/W R/W R/W R/W R/W  
Reset  0 0 0 0 0 0 0 0  
Bit  15 14 13 12 11 10 9 8  
    CMPPAR   CMPMODE          
Access    R/W   R/W          
Reset    0   0          
Bit  7 6 5 4 3 2 1 0  
  VAL1[7:0]  
Access  R/W R/W R/W R/W R/W R/W R/W R/W  
Reset  0 0 0 0 0 0 0 0  

Bits 7:0 – VAL1[7:0]: First Comparison Value for Received Character

First Comparison Value for Received Character

ValueDescription
0–255

The received character must be higher or equal to the value of VAL1 and lower or equal to VAL2 to set CMP flag in UART_SR. If asynchronous partial wake-up (SleepWalking) is enabled in PMC_SLPWK_ER, the UART requests a system wake-up if the condition is met.

Bit 12 – CMPMODE: Comparison Mode

Comparison Mode

ValueNameDescription
0 FLAG_ONLY

Any character is received and comparison function drives CMP flag.

1 START_CONDITION

Comparison condition must be met to start reception.

Bit 14 – CMPPAR: Compare Parity

Compare Parity

ValueDescription
0

The parity is not checked and a bad parity cannot prevent from waking up the system.

1

The parity is checked and a matching condition on data can be cancelled by an error on parity bit, so no wake-up is performed.

Bits 23:16 – VAL2[7:0]: Second Comparison Value for Received Character

Second Comparison Value for Received Character

ValueDescription
0–255

The received character must be lower or equal to the value of VAL2 and higher or equal to VAL1 to set CMP flag in UART_SR. If asynchronous partial wake-up (SleepWalking) is enabled in PMC_SLPWK_ER, the UART requests a system wake-up if condition is met.