TC_BMR

TC Block Mode Register

This register can only be written if the WPEN bit is cleared in the TC Write Protection Mode Register.

  0xC4 32 Read/Write 0x00000000  

TC Block Mode Register

Bit  31 30 29 28 27 26 25 24  
      MAXCMP[3:0] MAXFILT[5:4]  
Access      R/W R/W R/W R/W R/W R/W  
Reset      0 0 0 0 0 0  
Bit  23 22 21 20 19 18 17 16  
  MAXFILT[3:0]   AUTOC IDXPHB SWAP  
Access  R/W R/W R/W R/W   R/W R/W R/W  
Reset  0 0 0 0   0 0 0  
Bit  15 14 13 12 11 10 9 8  
  INVIDX INVB INVA EDGPHA QDTRANS SPEEDEN POSEN QDEN  
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  7 6 5 4 3 2 1 0  
      TC2XC2S[1:0] TC1XC1S[1:0] TC0XC0S[1:0]  
Access      R/W R/W R/W R/W R/W R/W  
Reset      0 0 0 0 0 0  

Bits 1:0 – TC0XC0S[1:0]: External Clock Signal 0 Selection

External Clock Signal 0 Selection

ValueNameDescription
0 TCLK0 Signal connected to XC0: TCLK0
1 Reserved
2 TIOA1 Signal connected to XC0: TIOA1
3 TIOA2 Signal connected to XC0: TIOA2

Bits 3:2 – TC1XC1S[1:0]: External Clock Signal 1 Selection

External Clock Signal 1 Selection

ValueNameDescription
0 TCLK1 Signal connected to XC1: TCLK1
1 Reserved
2 TIOA0 Signal connected to XC1: TIOA0
3 TIOA2 Signal connected to XC1: TIOA2

Bits 5:4 – TC2XC2S[1:0]: External Clock Signal 2 Selection

External Clock Signal 2 Selection

ValueNameDescription
0 TCLK2 Signal connected to XC2: TCLK2
1 Reserved
2 TIOA0 Signal connected to XC2: TIOA0
3 TIOA1 Signal connected to XC2: TIOA1

Bit 8 – QDEN: Quadrature Decoder Enabled

Quadrature Decoder Enabled

Quadrature decoding (direction change) can be disabled using QDTRANS bit.

One of the POSEN or SPEEDEN bits must be also enabled.

ValueDescription
0 Disabled.
1 Enables the QDEC (filter, edge detection and quadrature decoding).

Bit 9 – POSEN: Position Enabled

Position Enabled

ValueDescription
0 Disable position.
1 Enables the position measure on channel 0 and 1.

Bit 10 – SPEEDEN: Speed Enabled

Speed Enabled

ValueDescription
0 Disabled.
1 Enables the speed measure on channel 0, the time base being provided by channel 2.

Bit 11 – QDTRANS: Quadrature Decoding Transparent

Quadrature Decoding Transparent

ValueDescription
0 Full quadrature decoding logic is active (direction change detected).
1 Quadrature decoding logic is inactive (direction change inactive) but input filtering and edge detection are performed.

Bit 12 – EDGPHA: Edge on PHA Count Mode

Edge on PHA Count Mode

ValueDescription
0 Edges are detected on PHA only.
1 Edges are detected on both PHA and PHB.

Bit 13 – INVA: Inverted PHA

Inverted PHA

ValueDescription
0 PHA (TIOA0) is directly driving the QDEC.
1 PHA is inverted before driving the QDEC.

Bit 14 – INVB: Inverted PHB

Inverted PHB

ValueDescription
0 PHB (TIOB0) is directly driving the QDEC.
1 PHB is inverted before driving the QDEC.

Bit 15 – INVIDX: Inverted Index

Inverted Index

ValueDescription
0 IDX (TIOA1) is directly driving the QDEC.
1 IDX is inverted before driving the QDEC.

Bit 16 – SWAP: Swap PHA and PHB

Swap PHA and PHB

ValueDescription
0 No swap between PHA and PHB.
1 Swap PHA and PHB internally, prior to driving the QDEC.

Bit 17 – IDXPHB: Index Pin is PHB Pin

Index Pin is PHB Pin

ValueDescription
0 IDX pin of the rotary sensor must drive TIOA1.
1 IDX pin of the rotary sensor must drive TIOB0.

Bit 18 – AUTOC: AutoCorrection of missing pulses

AutoCorrection of missing pulses

0 (DISABLED): The detection and autocorrection function is disabled.

1 (ENABLED): The detection and autocorrection function is enabled.

Bits 25:20 – MAXFILT[5:0]: Maximum Filter

Maximum Filter

Pulses with a period shorter than MAXFILT+1 peripheral clock cycles are discarded. For more details on MAXFILT constraints, see “Input Preprocessing”

ValueDescription
1–63 Defines the filtering capabilities.

Bits 29:26 – MAXCMP[3:0]: Maximum Consecutive Missing Pulses

Maximum Consecutive Missing Pulses

ValueDescription
0 The flag MPE in TC_QISR never rises.
1–15 Defines the number of consecutive missing pulses before a flag report.