TTP259
TonTouchTM
Preliminary
P-5: 20-bit Timer/Counter (TCP1 and TCP2 cascade)
Two sets TCP can be cascaded to form a 20-bit timer/counter when TCP2
chooses TCP1OV as clock source (TCP2S1=1 and TCP2S0=1). In the 20-bit
timer application, user should use TCP1EN to control the starting or stopping
counting of 20-bit timer/counter, data load is controlled by writing TCP1EN=1.
The rising TCP2OV will reload the contents in the pre-load register into
timer/counter, if TCP2LD in TCP2C are enabled. The interrupt feature is
different, in this case, the TCP1 INT will be inhibit when TCP1OV occur, the
TCP2 INT is normally.
Data Bus
TCP1OV
Data Bus
TCP2OV
FS
TCP1I
M
U
X
TCP1
TCP2
TBCK
Timer/Counter
Timer/Counter
TB1OV
TCP1S1
TCP1S0
Preload data
Preload data
Data Bus
Data Bus
TCP2LD
TCP1EN
Figure: 20-bit Timer/Counter (TCP1 and TCP2 cascade)
2015/05/25
Page 37 of 81
Ver: 1.1