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 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| T4ICS[2:0] | T4CE[1:0] | T4CNC | T4SCE | | |
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
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 DescriptionT4ICS[2:0] | Description |
---|
0 | 0 | 0 | CLKT2 |
0 | 0 | 1 | TRPA |
0 | 1 | 0 | TRPB |
0 | 1 | 1 | TICP |
1 | 0 | 0 | CLKSRC |
1 | 0 | 1 | Reserved (CLKSRC) |
1 | 1 | 0 | Reserved (CLKSRC) |
1 | 1 | 1 | Reserved (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 DescriptionT4CE[1:0] | Input Capture Edge Signal of Timer4 |
---|
0 | 0 | Disable edge detect |
0 | 1 | Rising edge |
1 | 0 | Falling edge |
1 | 1 | Both 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
’.