D0–D5Preset Data Inputs
Q0–Q5Differential Data Outputs
S1, S2Mode Control Pins
MRMaster Reset
CLKClock Input
COUT, COUTCarry Out Output (Active LOW)
CLOUTLook-Ahead-Carry Output
CINCarry-In Input (Active LOW)
CLINLook-Ahead-Carry Input
CCOVCC to Output
V
DESCRIPTION
The SY10/100E136 are 6-bit synchronous, presettable,
cascadable universal counters. These devices generate
a look-ahead-carry output and accept a look-ahead-carry
input. These two features allow for the cascading of
multiple E136s for wider bit width counters that operate
at very nearly the same frequency as the stand-alone
counter.
The CLOUT output will pulse LOW for one clock cycle
one count before the E136 reaches terminal count. The
COUT output will pulse LOW for one clock cycle when
the counter reaches terminal count. For more information
on utilizing the look-ahead-carry features of the device,
please refer to the applications section of this data sheet.
The differential COUT output facilitates the E136's use in
programmable divider and self-stopping counter
applications.
Unlike the H136 and other similar universal counter
designs, the E136 carry-out and look-ahead-carry-out
signals are registered on chip. This design alleviates the
glitch problem seen on many counters where the carryout signals are merely gated. Because of this architecture,
there are some minor functional differences between the
E136 and H136 counters. The user, regardless of
familiarity with the H136, should read this data sheet
carefully. Note specifically (see block diagram) the
operation of the carry-out outputs and the look-aheadcarry-in input when utilizing the Master Reset.
When left open, all of the input pins will be pulled
LOW via an input pulldown resistor. The Master Reset is
an asynchronous signal which, when asserted, will force
the Q outputs LOW.
The Q outputs need not be terminated for the E136 to
function properly. In fact, if these outputs will not be
used in a system, it is recommended that they be left
open to save power and minimize noise. This practice
will minimize switching noise which can reduce the
maximum count frequency of the device, or significantly
reduce margins against other noise in the system.
Rev.: CAmendment: /1
1
Issue Date: February, 1998
Page 2
Micrel
SY10E136
SY100E136
LOGIC DIAGRAM
BLOCK DIAGRAM
(1)
QM0
OUT
C
Q
D
OUT
C
Q
S
OUT
CL
Q
S
D
QM0
QM1
Q
5
Q
Q
R
D
D
5
Q2 – Q
5
BITS 2 – 4
Q
Q
R
D
Q
Q
R
D
Q
S
D
D2 – D
Q
1
D
1
Q
0
D
0
4
S1
S2
IN
C
IN
CL
MR
CLK
E136 Universal Up/Down Counter Logic Diagram
NOTE:
1. This diagram is provided for understanding of logic operation only. It should not be used for propagation delays as many gate functions are achieved
internally without incurring a full gate delay.
2
Page 3
Micrel
SY10E136
SY100E136
LOGIC DIAGRAM
TRUTH TABLE
S1S2CINMRCLKFunction
LLXLZPreset Parallel Data Inputs
LHLLZIncrement (Count Up)
The SY10E/100E136 are 6-bit synchronous, presettable,
cascadable universal counters. Using the S1 and S2 control
pins, the user can select between preset, count up, count
down and hold count. The Master Reset pin will reset the
internal counter and set the COUT, CLOUT and CLIN flipflops. Unlike previous 136-type counters, the carry-out
outputs will go to a high state during the preset operation.
In addition, since the carry-out outputs are registered, they
will not go low if terminal count is loaded into the register.
The look-ahead-carry-out output functions similarly.
Note from the schematic the use of the master information
from the least significant bits for control of the two carry-out
functions. This architecture not only reduces the carry-out
delay, but is essential to incorporate the registered carryout functions. In addition to being faster, the resulting carryout signals are stable and glitch free because these functions
are registered.
Cascading Multiple E136 Devices
Many applications require counters significantly larger than
the 6 bits available with the E136. For these applications,
several E136 devices can be cascaded to increase the bit
width of the counter to meet the needs of the application.
In the past, cascading several 136-type universal counters
necessarily impacted the maximum count frequency of the
resulting counter chain. This performance impact was the
result of the terminal count signal of the lower order counters
having to ripple through the entire counter chain. As a
result, past counters of this type were not widely used in
large bit counter applications.
An alternative counter architecture similar to the E016
binary counter was implemented to alleviate the need to
ripple propagate the terminal count signal. Unfortunately,
these types of counters require external gating for cascading
designs of more than two devices. In addition to requiring
additional components, these external gates limit the
cascaded count frequency to a value less than the free
running count frequency of a single counter. Although there
is a performance impact with this type of architecture, it is
minor compared to the impact of the ripple propagate
designs. As a result, the E016-type counters have been
used extensively in applications requiring very high speed,
wide bit width synchronous counters.
Several improvements have been incorporated to past
universal counter designs in the E136 universal counter.
These enhancements make the E136 the unparalleled leader
in its class. With the addition of look-ahead-carry features
on the terminal count signal, very large counter chains can
be designed which function at very nearly the same clock
frequency as a single free running device. More importantly,
these counter chains require no external gating. Figure 1
below illustrates the interconnect scheme for using the lookahead-carry features of the E136 counter.
CLOCK
CLK
CL
OUT
OUT
C
"LO"
"LO"
Q
0
– Q
5
CLK
LSB
C
CL
IN
IN
D0 – D
C
CL
OUT
OUT
5
"LO"
111101111110
Figure 1. 24-bit Cascaded E136 Counter
Q0 – Q
5
Q0 – Q
5
CLKCLKCLK
C
IN
CL
IN
D0 – D
CL
C
OUT
OUT
5
111111
C
CL
IN
IN
D0 – D
CL
C
OUT
OUT
5
C
CL
000001000000
Q0 – Q
MSB
IN
IN
D0 – D
CL
C
5
OUT
OUT
5
5
Page 6
Micrel
SY10E136
SY100E136
C
IN
CL
IN
CLK
Figure 2. Look-Ahead-Carry Input Structure
DQ
ACTIVE
LOW
Note from the waveforms that the look-ahead-carry output
(CLOUT) pulses low one clock pulse before the counter
reaches terminal count. Also note that both CLOUT and the
carry-out pin (COUT) of the device pulse low for only one
clock period. The input structure for look-ahead-carry-in
(CLIN) and carry-in (CIN) is pictured in Figure 2.
The CLIN input is registered and then OR'ed with the CIN
input. From the truth table one can see that both the CIN
and the CLIN inputs must be in a LOW state for the E136 to
be enabled to count (either count up or count down). The
CLIN inputs are driven by the CLOUT output of the lower
order E136 and, therefore, are only asserted for a single
clock period. Since the CLIN input is registered, it must be
asserted one clock period prior to the CIN input.
If the counter previous to a given counter is at terminal
count, its COUT output, and thus the CIN input of the given
counter will be in the "LOW" state. This signals the given
counter that it will need to count one upon the next terminal
count of the least significant counter (LSC). The CLOUT
output of the LSC will pulse low one clock period before it
reaches terminal count. This CLOUT signal will be clocked
into the CLIN input of the higher order counters on the
following positive clock transition. Since both CIN and CLIN
are in the LOW state, the next clock pulse will cause the
least significant counter to roll over and all higher order
counters, if signaled by the CIN inputs, to count by one.
During the clock pulse in which the higher order counter
is counting by one, the CLIN is clocking in the high signal
presented by the CLOUT of the LSC. The CINs in the higher
order counter will ripple through the chain to update the
Q0 – Q
5
S
0
"LO"
CLKCLOCK
D0 – D
Figure 3. 6-bit Programmable Divider
C
C
5
S
OUT
OUT
1
count status for the next occurrence of terminal count on
the LSC. This ripple propagation will not affect the count
frequency as it has 26-1 or 63 clock pulses to ripple through
without affecting the count operation of the chain.
The only limiting factor which could reduce the count
frequency of the chain as compared to a free running single
device will be the set-up time of the CL
IN input. This limit
will consist of the CLK to CLOUT delay of the E136, plus the
CLIN set-up time, plus any path length differences between
the CLOUT output and the clock.
Programmable Divider
Using external feedback of the COUT pin, the E136 can
be configured as a programmable divider. Figure 3 illustrates
the configuration for a 6-bit count-down programmable
divider. If for some reason a count-up divider is preferred,
the COUT signal is simply fed back to S2 rather than S1.
Examination of the truth table for the E136 shows that when
both S1 and S2 are LOW, the counter will parallel load on
the next positive transition of the clock. If the S2 input is
low and the S1 input is high, the counter will be in the
count-down mode and will count towards an all zero state
upon successive clock pulses. Knowing this and the
operation of the COUT output, it becomes a trivial matter to
build programmable dividers.
For a programmable divider, one must to load a
predesignated number into the counter and count to terminal
count. Upon terminal count, the counter should automatically
reload the divide number. With the architecture shown in
Figure 3, when the counter reaches terminal count, the
COUT output, and thus the S1 input, will go LOW. This,
combined with the low on S2 will cause the counter to load
the inputs present on D0–D5. Upon loading the divide value
into the counter, COUT will go HIGH as the counter is no
longer at terminal count, thereby placing the counter back
into the count mode.
DividePreset Data Inputs
RatioD5D4D3D2D1D0
2LLLLLH
3LLLLHL
4LLLLHH
5LLLHLL
*******
*******
36HLLLHH
37HLLHLL
38HLLHLH
*******
*******
62HHHHLH
63HHHHHL
64HHHHHH
Table 1. Preset Inputs Versus Divide Ratio
6
Page 7
Micrel
CLOCK
C
OUT
SY10E136
SY100E136
LOAD100100100011000011000010000001000000LOAD
S1
DIVIDE BY 37
Figure 4. Programmable Divider Waveforms
The exercise of building a programmable divider then
becomes simply determining what value to load into the
counter to accomplish the desired division. Since the load
operation requires a clock pulse, to divide by N, N-1 must
be loaded into the counter. A single E136 device is capable
of divide ratios of 2 to 64, inclusive. Table 1 outlines the
load values for the various divide ratios. Figure 4 presents
the waveforms resulting from a divide by 37 operation. Note
that the availability of the COUT complimentary output (COUT)
allows the user to choose the polarity of the divide by output.
For single device programmable counters, the E016
counter is probably a better choice than the E136. The
E016 has an internal feedback to control the reloading of
the counter. This not only simplifies board design, but also
will result in a faster maximum count frequency.
For programmable dividers of larger than 8 bits, the
Q
0
– Q
5
S
CLOCK
CLK
Q0 – Q
5
S
1
CLKCLKCLK
benefits of the E016 diminishes and, in fact, for very wide
dividers, the E136 will provide the capability of a faster
count frequency. Figure 5 shows the architecture of a 24bit programmable divider implemented using E136 counters.
Note the need for one external gate to control the loading of
the entire counter chain. An ideal device for the external
gating of this architecture would be the 4-input OR function
in the 8-lead SOIC ECLinPS Lite™ family. However, the
final decision as to what device to use for external gating
requires a balancing of performance needs, cost and
available board space. Note that because of the need for
external gating, the maximum count frequency of a given
sized programmable divider will be less than that of a single
cascaded counter.
MICREL-SYNERGY3250 SCOTT BOULEVARDSANTA CLARACA 95054 USA
TEL + 1 (408) 980-9191 FAX + 1 (408) 914-7878 WEB http://www.micrel.com
This information is believed to be accurate and reliable, however no responsibility is assumed by Micrel for its use nor for any infringement of patents or
other rights of third parties resulting from its use. No license is granted by implication or otherwise under any patent or patent right of Micrel Inc.