English
Language : 

CP3BT23 Datasheet, PDF (187/260 Pages) Texas Instruments – CP3BT23 Reprogrammable Connectivity Processor with Bluetooth and Dual CAN Interfaces
25.5 TIMER REGISTERS
Table 72 lists the CPU-accessible registers used to control
the Multi-Function Timers.
Table 72 Multi-Function Timer Registers
Name
Address
Description
25.5.2 Clock Unit Control Register (TCKC)
The TCKC register is a byte-wide, read/write register that
selects the clock source for each timer/counter. Selecting
the clock source also starts the counter. This register is
cleared on reset, which disables the timer/counters. The
register format is shown below.
TPRSC
FF FF48h
Clock Prescaler
Register
7
6
Reserved
5
3
C2CSEL
2
0
C1CSEL
TCKC
TCNT1
FF FF4Ah
FF FF40h
Clock Unit Control
Register
Timer/Counter 1
Register
C1CSEL
The Counter 1 Clock Select field specifies the
clock mode for Timer/Counter 1 as follows:
000 – No clock (Timer/Counter 1 stopped,
TCNT2
TCRA
TCRB
te TCTRL
TICTL
le TICLR
FF FF46h
FF FF42h
FF FF44h
FF FF4Ch
FF FF4Eh
FF FF50h
Timer/Counter 2
Register
Reload/Capture A
Register
Reload/Capture B
Register
Timer Mode
Control Register
Timer Interrupt
Control Register
Timer Interrupt
Clear Register
C2CSEL
25.5.1 Clock Prescaler Register (TPRSC)
The TPRSC register is a byte-wide, read/write register that
holds the current value of the 5-bit clock prescaler (CLKPS).
o This register is cleared on reset. The register format is
shown below.
modes 1, 2, and 3 only).
001 – Prescaled System Clock.
010 – External event on TB (modes 1 and 3
only).
011 – Pulse-accumulate mode based on TB
(modes 1 and 3 only).
100 – Slow Clock.*
101 – Reserved.
110 – Reserved.
111 – Reserved.
The Counter 2 Clock Select field specifies the
clock mode for Timer/Counter 2 as follows:
000 – No clock (Timer/Counter 2 stopped,
modes 1, 2, and 3 only).
001 – Prescaled System Clock.
010 – External event on TB (modes 1 and 3
only).
011 – Pulse-accumulate mode based on TB
(modes 1 and 3 only).
100 – Slow Clock*
101 – Reserved.
110 – Reserved.
111 – Reserved.
s 7
5
4
Reserved
CLKPS
0
* Operation of the Slow Clock is determined by the CRC-
TRL.SCLK control bit, as described in Section 11.9.1.
25.5.3 Timer/Counter 1 Register (TCNT1)
Ob CLKPS
The Clock Prescaler field specifies the divisor
used to generate the Timer Clock from the
System Clock. When the timer is configured to
use the prescaled clock, the System Clock is
divided by (CLKPS + 1) to produce the timer
clock. Therefore, the System Clock divisor
The TCNT1 register is a word-wide, read/write register that
holds the current count value for Timer/Counter 1. The reg-
ister contents are not affected by a reset and are unknown
after power-up.
15
0
can range from 1 to 32.
TCNT1
25.5.4 Timer/Counter 2 Register (TCNT2)
The TCNT2 register is a word-wide, read/write register that
holds the current count value for Timer/Counter 2. The reg-
ister contents are not affected by a reset and are unknown
after power-up.
15
0
TCNT2
www.national.com
186