English
Language : 

CP3BT23 Datasheet, PDF (190/260 Pages) Texas Instruments – CP3BT23 Reprogrammable Connectivity Processor with Bluetooth and Dual CAN Interfaces
26.0 Versatile Timer Unit (VTU)
The Versatile Timer Unit (VTU) contains four fully indepen- ! The VTU controls a total of eight I/O pins, each of which
dent 16-bit timer subsystems. Each timer subsystem can can function as either:
operate either as dual 8-bit PWM timers, as a single 16-bit — PWM output with programmable output polarity
PWM timer, or as a 16-bit counter with 2 input capture chan- — Capture input with programmable event detection and
nels. These timer subsystems offers an 8-bit clock prescaler
timer reset
to accommodate a wide range of system frequencies.
! A flexible interrupt scheme with
The VTU offers the following features:
! The VTU can be configured to provide:
— Eight fully independent 8-bit PWM channels
— Four fully independent 16-bit PWM channels
— Four separate system level interrupt requests
— A total of 16 interrupt sources each with a separate in-
terrupt pending bit and interrupt enable bit
26.1 VTU FUNCTIONAL DESCRIPTION
— Eight 16-bit input capture channels
The VTU is comprised of four timer subsystems. Each timer
! The VTU consists of four timer subsystems, each of subsystem contains an 8-bit clock prescaler, a 16-bit up-
which contains:
— A 16-bit counter
— Two 16-bit capture / compare registers
— An 8-bit fully programmable clock prescaler
! Each of the four timer subsystems can operate in the fol-
lowing modes:
— Low power mode, i.e. all clocks are stopped
— Dual 8-bit PWM mode
te — 16-bit PWM mode
— Dual 16-bit input capture mode
counter, and two 16-bit registers. Each timer subsystem
controls two I/O pins which either function as PWM outputs
or capture inputs depending on the mode of operation.
There are four system-level interrupt requests, one for each
timer subsystem. Each system-level interrupt request is
controlled by four interrupt pending bits with associated en-
able/disable bits. All four timer subsystems are fully inde-
pendent, and each may operate as a dual 8-bit PWM timer,
a 16-bit PWM timer, or as a dual 16-bit capture timer.
Figure 102 shows the main elements of the VTU.
15
0
le MODE
15
0
INTCTL
15
0
INTPND
15
0
IO1CTL
15
0
IO2CTL
Timer Subsystem 1
7
o C1 PRSC
==
Prescaler
Counter
15
0
s Count1
Compare - Capture
PERCAP1
b Compare - Capture
ODTYCAP1
Timer Subsystem 2
7
C2 PRSC
==
Prescaler
Counter
15
0
Count2
Compare - Capture
PERCAP2
Compare - Capture
DTYCAP2
Timer Subsystem 3
7
C3 PRSC
==
Prescaler
Counter
15
0
Count3
Compare - Capture
PERCAP3
Compare - Capture
DTYCAP3
Timer Subsystem 4
7
C4RSC
==
Prescaler
Counter
15
0
Count4
Compare - Capture
PERCAP4
Compare - Capture
DTYCAP4
I/O Control I/O Control
I/O Control I/O Control
I/O Control I/O Control
I/O Control I/O Control
TIO1
TIO2
TIO3
TIO4
TIO5
TIO6
Figure 102. Versatile Timer Unit Block Diagram
TIO7
TIO8
DS088
189
www.national.com