mc68hc916y3 Freescale Semiconductor, Inc, mc68hc916y3 Datasheet - Page 315

no-image

mc68hc916y3

Manufacturer Part Number
mc68hc916y3
Description
Mc68hc16y3 16 Bit Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
14.4.2 Input Capture/Input Transition Counter (ITC)
14.4.3 Output Compare (OC)
MC68HC16Y3/916Y3
USER’S MANUAL
Refer to TPU programming note Discrete Input/Output (DIO) TPU Function
(TPUPN18/D) for more information.
Any channel of the TPU2 can capture the value of a specified TCR upon the occur-
rence of each transition or specified number of transitions and then generate an inter-
rupt request to notify the CPU16. A channel can perform input captures continually, or
a channel can detect a single transition or specified number of transitions, then cease
channel activity until reinitialization. After each transition or specified number of tran-
sitions, the channel can generate a link to a sequential block of up to eight channels.
The user specifies a starting channel of the block and the number of channels within
the block. The generation of links depends on the mode of operation. In addition, after
each transition or specified number of transitions, one byte of the parameter RAM (at
an address specified by channel parameter) can be incremented and used as a flag
to notify another channel of a transition.
Refer to TPU programming note Input Capture/Input Transition Counter (ITC) TPU
Function (TPUPN16/D) for more information.
The output compare function generates a rising edge, a falling edge, or a toggle of the
previous edge in one of three ways:
This algorithm generates a 50% duty-cycle continuous square wave with each high/
low time equal to the calculated offset. Due to offset calculation, there is an initial link
time before continuous pulse generation begins.
Refer to TPU programming note Output Compare (OC) TPU Function (TPUPN12/D)
for more information.
1. Immediately upon CPU16 initiation, thereby generating a pulse with a length
2. At a programmable delay time from a user-specified time.
3. As a continuous square wave. Upon receiving a link from a channel, OC refer-
equal to a programmable delay time.
ences, without CPU16 interaction, a specifiable period and calculates an offset:
where “RATIO” is a parameter supplied by the user.
Freescale Semiconductor, Inc.
For More Information On This Product,
TIME PROCESSOR UNIT 2
OFFSET
Go to: www.freescale.com
=
PERIOD RATIO
MOTOROLA
14-7

Related parts for mc68hc916y3