CHAPTER 8 8/16-BIT CAPTURE TIMER/COUNTER
8.4.7
Capture Data Registers H and L (TCPH and TCPL)
The capture data register H (TCPH) stores the number of events of the higher 8 bits in
the 16-bit capture mode of the 8/16-bit capture timer/counter.
The capture data register L (TCPL) stores the number of events in the 8-bit capture
mode of the 8/16-bit capture timer/counter or the number of events of the lower 8 bits in
the 16-bit capture mode.
In the read operation in the timer/counter mode, counter values are read.
■
Capture Data Registers H and L (TCPH and TCPL)
The number of events detected in the capture mode is stored in TCPH and TCPL. Data cannot be written to
these registers because the registers are read-only.
Figure 8.4-8 shows the bit structures of capture data registers H and L.
Figure 8.4-8 Bit Structures of Capture Data Registers H and L (TCPH and TCPL)
Address
TCPH
TCPL
182
bit7
bit6
bit5
001E
H
R
R
001F
H
R
R
R
: Read only
X
: Undefined
bit4
bit3
bit2
R
R
R
R
R
R
R
R
Initial value
bit1
bit0
XXXXXXXX
B
R
R
XXXXXXXX
B
R
R