cp3cn17 National Semiconductor Corporation, cp3cn17 Datasheet - Page 159

no-image

cp3cn17

Manufacturer Part Number
cp3cn17
Description
Reprogrammable Connectivity Processor With Can Interface
Manufacturer
National Semiconductor Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
cp3cn17K38
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
cp3cn17K38/NOPB
Manufacturer:
Texas Instruments
Quantity:
10 000
22.4
The Multi-Function Timer unit uses two I/O pins, called TA
and TB. The function of each pin depends on the timer op-
erating mode and the TAEN and TBEN enable bits. Table 64
shows the functions of the pins in each operating mode, and
for each combination of enable bit settings.
Timer
Int. 1
(TA Int.)
Timer
Int. 2
(TB Int.)
TA
TB
Sys. Int.
I/O
TAEN = 0
TBEN = X
TAEN = 1
TBEN = X
TAEN = X
TBEN = 0
TAEN = X
TBEN = 1
TIMER I/O FUNCTIONS
TAPND
TBPND
TCPND
TDPND
Interrupt
Pending
TBEN
TAEN
Bit
No Output
Toggle Output on
Underflow of TCNT1
Ext. Event or Pulse
Accumulate Input
Ext. Event or Pulse
Accumulate Input
TCNT1 reload from
TCRA
TCNT1 reload from
TCRB
N/A
TCNT2 underflow
PWM + Counter
PWM + Counter
Mode 1
Mode 1
Table 63 Timer Interrupts Overview
Table 64 Timer I/O Functions
Capture TCNT1 into
TCRA
Capture TCNT1 into
TCRA and Preset
TCNT1
Capture TCNT1 into
TCRB
Capture TCNT1 into
TCRB and Preset
TCNT1
Input capture on TA
transition
Input Capture on TB
transition
TCNT1 underflow
TCNT2 underflow
Dual Input Capture +
Dual Input Capture +
counter
Mode 2
Counter
Mode 2
159
When the TA pin is configured to operate as a PWM output
(TAEN = 1), the state of the pin is toggled on each underflow
of the TCNT1 counter. In this case, the initial value on the
pin is determined by the TAOUT bit. For example, to start
with TA high, software must set the TAOUT bit before en-
abling the timer clock. This option is available only when the
timer is configured to operate in Mode 1, 3, or 4 (in other
words, when TCRA is not used in Capture mode).
No Output Toggle
Toggle Output on
Underflow of TCNT1
Ext. Event or Pulse
Accumulate Input
Ext. Event or Pulse
Accumulate Input
TCNT1 reload from
TCRA
N/A
TCNT2 reload from
TCRB
N/A
Dual Counter
Dual Counter
Mode 3
Mode 3
No Output Toggle
Toggle Output on
Underflow of TCNT1
Capture TCNT2 into
TCRB
Capture TCNT2 into
TCRB and Preset
TCNT2
TCNT1 reload from
TCRA
Input Capture on TB
transition
N/A
TCNT2 underflow
Single Capture +
Single Capture +
counter
www.national.com
Mode 4
Counter
Mode 4

Related parts for cp3cn17