www.fairchildsemi.com 2
74VHC161
Connection Diagram Pin Descriptions
Functional Description
The VHC161 counts i n modulo-16 bi nary sequenc e. From
state 15 (HHHH) it increments to state 0 (LLLL). The clock
inputs of all flip-flops a re driven in para llel through a clock
buffer. Thus all changes of the Q outputs (except due to
Master Reset of the VHC161) occur as a result of, and synchronous with, the LOW-to-HIGH transition o f the CP input
signal. The circuits have four fundamental modes of operation, in order of prece dence: asynchronous reset, parallel
load, count-up and hold. Five control inputs—Master
Reset, Parallel Enable (PE
), Count Enable Parallel (CEP)
and Count Enabl e Trickle (CET)—determine the mode of
operation, as show n in the Mode Select Table. A LOW signal on MR
overrides all other inputs an d asynchronously
forces all outputs LOW. A LOW signal on PE
overrides
counting and allows information on the Parallel Data (P
n
)
inputs to be loaded into the flip-flops on the next rising
edge of CP. With PE
and MR HIGH, CEP and CET permit
counting when both are HIGH. Conversely, a LOW signal
on either CEP or CET inhibits counting.
The VHC161 uses D-type edge-triggered flip-flops and
changing the PE
, CEP and CET inputs when the CP is in
either state does not cause errors, provided that the recommended setup and hold times, with respect to the rising
edge of CP, are observed.
The Terminal Count (TC) output is HIGH when CET is
HIGH and counter is in state 15. To implement sync hro-
nous multistage counters, the TC outputs can be used with
the CEP and CET inputs in two differ ent ways.
Figure 1
shows the connections for simple ripple carry, in
which the clock period must be longer than the CP to TC
delay of the first stage, plus the cumulative CET to TC
delays of the intermediate stages, plus the CET to CP
setup time of the last stage. This total delay plus setup time
sets the upper limit o n clock frequency. For faster clock
rates, the carry lookahead connecti ons shown in
Figure 2
are recommended. In this sch eme the ripple del ay through
the intermediate stages commences with the same clock
that causes the first stage to tick over from m ax to min in
the Up mode, or m in to m ax in th e Dow n mo de, to start its
final cycle. Since this final cycle require s 16 clocks to co mplete, there is plenty of time for the ripple to progress
through the intermediate stages. The critical timing that limits the clock period is th e CP to TC d elay of the fir st stage
plus the CEP to CP setup time of the last stage. T he TC
output is subject t o decoding spikes due to intern al race
conditions and is th erefore not recommen ded for u se as a
clock or asynchronous reset for flip-flops, registers or
counters.
Logic Equations: Count Enable = CEP • CET • PE
TC = Q0 • Q1 • Q2 • Q3 • CET
FIGURE 1. Multistage Counter with Ripple Carry
FIGURE 2. Multistage Counter with Lookahead Carry
Pin Names Description
CEP Count Enable Parallel Input
CET Count Enable Trickle Input
CP Clock Pulse Input
MR
Asynchronous Master Reset Input
P
0–P3
Parallel Data Inputs
PE
Parallel Enable Inputs
Q
0–Q3
Flip-Flop Outputs
TC Terminal Count Output