3.10.7.5.1.3 T4MRB – Timer4 Mode Register B

Name: T4MRB
Offset: 0x087
Reset: 0x00

This register must be modified only while the timer is disabled (T4CR.T4ENA = 0). Modifying the bits during operation leads to unpredictable operation.

Bit 76543210 
 T4ICS[2:0]T4CE[1:0]T4CNCT4SCE 
Access R/WR/WR/WR/WR/WR/WR/WR 
Reset 00000000 

Bits 7:5 – T4ICS[2:0] Timer4 Input Capture Select

The T4ICS[2:0] bits select the input capture signal of Timer4 as shown in the following table.
Table 3-100. Timer4 Input Capture Signal Select Bit Description
T4ICS[2:0]Description
000CLKT2
001TRPA
010TRPB
011TICP
100CLKSRC
101Reserved (CLKSRC)
110Reserved (CLKSRC)
111Reserved (CLKSRC)

Bits 4:3 – T4CE[1:0] Timer4 Capture Edge Select

The T4CE1 and T4CE0 bits select the edge from all input signals of Timer4 as shown in the following table.
Table 3-101. Timer4 Capture Edge Select Bit Description
T4CE[1:0]Input Capture Edge Signal of Timer4
00Disable edge detect
01Rising edge
10Falling edge
11Both edges

Bit 2 – T4CNC Timer4 Input Capture Noise Canceller

Setting this bit to ‘1’ activates the input capture noise canceller. When the noise canceller is activated, the input from the selected capture source is filtered. To change its output, the filter function requires four successive samples of the input capture signal of equal value. The input capture is, therefore, delayed by four counter clock (CL4) cycles when the noise canceller is enabled.

Bit 1 – T4SCE Timer4 Software Capture Enable

The T4SCE bit must be written to logic ‘1’ to enable a software capture event. The T4SCE bit is cleared after the counter value is saved in the capture register. The Timer4 counter value is readable via its capture register while it is running.

Bit 0 –  Reserved Bit

This bit is reserved and read as ‘0’.