Reset (Bit zero of Control Register 1Set) has no effect on
the counter latches.
COUNTER INITIALIZATION
YCounter Initialization is defined as the transfer of data from
the latches to the counter with subsequent clearing of the in-
dividual Interrupt Flag associated with the counter. Counter
Initialization always occurs when areset condition
(R ESET=O or CR1O= 1) is recognized. It can also occur –
depending on Timer Mode –with aWrite Timer Latches
command or recognition of anegative transition of the Gate
input.
Counter recycling or re-initialization occurs when a
negative transition of the clock input is recognized after the
counter has reached an all-zero state. In this case, data IS
transferred from the Latches to the Counter.
ASYNCHRONOUS lNPUT/OUTPUT LINES
Each of the three timers within the PTM has external clock
and gate Inputs as well as acounter output line. The inputs
are high-impedance, TTL-compatible lines and ouputs are
capable of driving two standard TTL loads.
—— ——
CLOCK INPUTS (Cl, C2, and~) –Input pins Cl, C2,
and ~will accept asynchronous TTL voltage level signals to
decrement Timers 1, 2, and 3, respectively. The high and low
levels of the external clocks must each be stable for at least
one system clock period plus the sum of the setup and hold
times for the clock inputs, The asynchronous clock rate can
vary from dc to the limit Imposed by the Enable Clock Setup,
and Hold times.
The external clock inputs are clocked In by Enable pulses.
Three Enable periods are used to synchronize and process
-, the external clock. The fourth Enable pulse decrements the
internal counter. This does not affect the input frequency,,,$f
merely creates adelay between aclock input transitioK$&~~<,
internal recognition of that transition by the PT1~~}@l~’&
references to Cinputs in this document relate t,~:lfi$$r~~l
recognition of the input transition, Note that aQ~&$~fi~~~ or
low level which does not meet setup and hol~i~,~~!~~cifica-
tions may require an additional Enable puls~:J,&~?~Wognltion.
When observing recurring events, alack{~~, ~~o~hronization
will result in “jitter” being observed+:f~ Jh&Y’output of the
PTM when using asynchronou:,,%/@$ and gate Input
-..**,
signals. There are two types of ji~er.$ System jitter” is the
result of the Input signals be~&ti~*8i~ synchronization with
Enable, permitting signal:$wlt~~ginal setup and hold time
to be recognized by eith.~~~eblt time nearest the input tran-
sition or the subseque~~’%~~+dme.
“Input jitter” ca~%$~ great as the time between input
signal negative ,gw${ansitions plus the svstem jitter, if the
first transitiq~.<?~$ecbgnized during one system cycle, and
not recogni$~d~’~next cycle, or vice versa. See Figure 9.
,k..i:~+i:l?!:!?,,.+.s,::”
J%
,i~$:.$.,y)i~
,i~,:i:>
.$,*,,,.*,!, FIGURE 9 – INPUT JITTER
.::,.,~,.,”..~\
.%),:.
.,>?$,..t
Enable~ ~
I“p”t ~~
Recog
Input Either. ~
Here +~System
CLOCK INPUT C= (+8PRESCALER MODE) –External
clock Input ~represents aspecial case when Timer #3 is
programmed to utilize its optional -8 prescaler mode.
The divide-by-8 prescaler contains an asynchronous ripple
counter; thus, input setup (tsu) and hold times (thd) do not
apply. As long as minimum input pulse widths are maintain-
ed, the counter will recognize and process all iriput clock
(~) transitions. However, in order to guarantee that aclock
transition is processed during the current Ecycle, acertain
amount of synchronization time (tsYnc) is required bef~en
the ~3 transition and the falling edge of Enable ($$~~~&te
9). If the synchronization time requirement is n~t~~~it is
possible that the ~transition will not be pro,Ge~~&&ntil the
following Ecycle. ~;t‘~’,:.e.\\”s::,
.<*,+?**.t~~
The maximum input frequency and +[~:~ak+~ duty cycles
for the -8 prescaler mode are :w~~@under the AC
Operating Characteristics, lnternall~$.th~ ‘-8 prescaler out-
..*.,\**,
put is treated in the same manng$~s th~previouslv discussed
clock in~uts
accept asvnchronous~j~-~wrnpatlble signals which are used
as triggers or cl~~$lga%~~g functions to Timers 1, 2, and 3,
respectively, Th$~.$Y4mg inputs are clocked into the PTM bv
‘~~.’~.~:t.,
the E(enab~~’’b~b% in the same manner as the previously
discusse,~~,~~~~ffiputs. That IS, aGate transition is recogniz-
ed by,,th5~$~tTM on the fourth Enable pulse (provided setup
anq:$~ld tlrne requirements are met), and the high or low
J,%: ~~.the Gate input must be stable for at least one system
,+~oc~ period plus the sum of setup and hold times. All
$~~~~:~~?$rences to Gtransition in this document relate to Internal
**,. recognition of the Input transition.
The Gate inputs of all timers directly affect the internal
16-bit counter. The operation of ~is therefore Independent
of the -8 prescaler selection,
TIMER OUTPUTS (01, 02, 03) –Timer outputs 01, 02,
and 03 are capable of driving up to two TTL loads and pro-
duce adefined output waveform for either Continuous or
Single-Shot Timer modes. Output waveform definition ISac-
complished bv selecting either Single 16-bit or Dual 8-bit
operating modes. The Single 16-bit mode will produce a
square-wave output in the continuous mode and a single
pulse in the single-shot mode. The Dual 8-bit mode will pro-
duce avariable duty cycle pulse in both the continuous and
single-shot timer modes, One bit of each Control Register
(CRX7) is used to enable the corresponding output. If this bit
is cleared, the output will remain low (VOL) regardless of the
operating mode. If it is cleared while the output IS high the
output will go low during the first enable cycle following a
write to the Control Register.
The Continuous and Single-Shot Timer Modes are the
onlv ones for which output response is defined in this data
sheet. Refer to the Programmable Timer Fundamentals and
Applications manual for adiscussion of the output signals in
other modes. Signals appear at the outputs (unless
CRX7=O) during Frequency and Pulse Width comparison
modes, but the actual waveform is not predictable in typical
applications.
MC6840 MOTOROLA
DS9802R3 9