
MC68F375
TPU ROM FUNCTIONS
MOTOROLA
REFERENCE MANUAL
Rev. 25 June 03
D-33
D.13 Output Compare (OC)
The output compare (OC) function generates a rising edge, falling edge, or a toggle of
the previous edge in one of three ways:
1. Immediately upon CPU initiation, thereby generating a pulse with a length equal
to a programmable delay time
2. At a programmable delay time from a user-specified time
3. Continuously. Upon receiving a link from a channel, OC references, without
CPU interaction, a specifiable period and calculates an offset:
where RATIO is a parameter supplied by the user.
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.
Figure D-22 shows the host interface areas and parameter RAM for the OC function.
Offset
Period
Ratio
×
=
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
..
.