DM74184/DM74185A
BCD-to-Binary and Binary-to-BCD Converters
General Description
These monolithic converters are derived from the 256-bit
read only memories, DM5488, and DM7488. Emitter connections are made to provide direct read-out of converted
codes at outputs Y8 through Y1, as shown in the function
tables. These converters demonstrate the versatility of a
read only memory in that an unlimited number of reference
tables or conversion tables may be built into a system. Both
of these converters comprehend that the least significant
bits (LSB) of the binary and BCD codes are logically equal,
and in each case the LSB bypasses the converter as illustrated in the typical applications. This means that a 6-bit
converter is produced in each case. Both devices are cascadable to N bits.
An overriding enable input is provided on each converter
which when taken high inhibits the function, causing all outputs to go high. For this reason, and to minimize power
consumption, unused outputs Y7 and Y8 of the 185A and all
‘‘don’t care’’ conditions of the 184 are programmed high.
The outputs are of the open-collector type.
DM74184 BCD-TO-BINARY CONVERTERS
The 6-bit BCD-to-binary function of the DM74184 is analogous to the algorithm:
a. Shift BCD number right one bit and examine each dec-
ade. Subtract three from each 4-bit decade containing a
binary value greater than seven.
DM74184/DM74185A BCD-to-Binary and Binary-to-BCD Converters
June 1989
b. Shift right, examine, and correct after each shift until the
least significant decade contains a number smaller than
eight and all other converted decades contain zeros.
In addition to BCD-to-binary conversion, the DM74184 is
programmed to generate BCD 9’s complement or BCD 10’s
complement. Again, in each case, one bit of the complement code is logically equal to one of the BCD bits; therefore, these complements can be produced on three lines.
As outputs Y6, Y7 and Y8 are not required in the BCD-to-binary conversion, they are utilized to provide these complement codes as specified in the function table when the devices are connected as shown.
DM74185A BINARY-TO-BCD CONVERTERS
The function performed by these 6-bit binary-to-BCD converters is analogous to the algorithm:
a. Examine the three most significant bits. If the sum is
greater than four, add three and shift left one bit.
b. Examine each BCD decade. If the sum is greater than
four, add three and shift left one bit.
c. Repeat step b until the least-significant binary bit is in the
least-significant BCD location.
(Continued)
Connection Diagram
Order Number DM74184N or DM74185AN
See NS Package Number N16E
C
1995 National Semiconductor CorporationRRD-B30M105/Printed in U. S. A.
TL/F/6561
TL/F/6561– 1
Absolute Maximum Ratings (Note)
Note:
If Military/Aerospace specified devices are required,
please contact the National Semiconductor Sales
Office/Distributors for availability and specifications.
Supply Voltage7V
Input Voltage5.5V
Output Voltage7V
Operating Free Air Temperature
Range0
Storage Temperature Range
Ctoa70§C
§
b
65§Ctoa150§C
The ‘‘Absolute Maximum Ratings’’ are those values
beyond which the safety of the device cannot be guaranteed. The device should not be operated at these limits. The
parametric values defined in the ‘‘Electrical Characteristics’’
table are not guaranteed at the absolute maximum ratings.
The ‘‘Recommended Operating Conditions’’ table will define
the conditions for actual device operation.
Recommended Operating Conditions
SymbolParameterMinNomMaxUnits
V
CC
V
IH
V
IL
V
OH
I
OL
T
A
Supply Voltage4.7555.25V
High Level Input Voltage2V
Low Level Input Voltage0.8V
High Level Output Voltage5.5V
Low Level Output Current12mA
Free Air Operating Temperature070
’184 and ’185A Electrical Characteristics
over recommended operating free air temperature range (unless otherwise noted)
SymbolParameterConditionsMin
e
e
Max, V
e
Min, V
e
e
e
e
e
Min, I
Min, V
Min, I
Max, V
Max, V
Max, V
Max
Max
eb
12 mA
I
e
5.5V
O
e
Min
IH
e
Max
OL
e
Max
IL
e
5.5V
I
e
2.4V25mA
I
e
0.4V
I
V
I
I
CEX
V
OL
I
I
I
IH
I
IL
I
CCH
I
CCL
Input Clamp VoltageV
High Level OutputV
CurrentV
Low Level OutputV
VoltageV
Input Current@MaxV
Input Voltage
High Level Input CurrentV
Low Level Input CurrentV
Supply Current withV
Outputs High
Supply Current withV
Outputs Low
CC
CC
IL
CC
IH
CC
CC
CC
CC
CC
e
e
Typ
(Note 1)
MaxUnits
b
1.5V
100mA
0.4V
1mA
b
1mA
6595mA
8099mA
C
§
’184 and ’185A Switching Characteristics
e
at V
CC
5V and T
SymbolParameterTo (Output)
t
PLH
t
PHL
t
PLH
t
PHL
Note 1: All typicals are at V
e
25§C (See Section 1 for Test Waveforms and Output Load)
A
From (Input)
Propagation Delay TimeEnable G
Low to High Level Outputto Output
Propagation Delay TimeEnable G
High to Low Level Outputto Output
Propagation Delay TimeBinary Select
Low to High Level Outputto Output
Propagation Delay TimeBinary Select
High to Low Level Outputto Output
e
e
5V, T
CC
25§C.
A
2
e
400X,R
R
L1
e
15 pF (See Test Circuit)
C
L
e
L2
MinMax
600X
Units
35ns
35ns
35ns
35ns
General Description (Continued)
TABLE I. Package Count and Delay Times
InputPackagesTotal Delay Times (ns)
(Decades) Required
225680
36140200
412196280
519280400
628364520
DM74184 BCD-to-Binary
for BCD-to-Binary Conversion
TypMax
6-Bit Converter
BCD 9’s
Complement Converter
TL/F/6561– 2
DM74185A Binary-to-BCD
TABLE II. Package Count and Delay Times
for Binary-to-BCD Conversion
InputPackagesTotal Delay Times (ns)
(Bits)Required
01LLLLL L HHLLLLLL
23LLLLH L HHLLLLLH
45LLLHL L HHLL LLHL
67LLLHH L HHLLLLHH
89LLHLL L HHLL LHLL
1011LLHLHLHHLLHLLL
1213LLHHL L HHLLHLLH
1415LLHHH L HHLLHLHL
1617LHLLL L HHLLHLHH
1819LHLLH L HHLLHHLL
2021LHLHL L HHLHLLLL
2223LHLHHLHHLHLLLH
2425LHHLL L HHLHLLHL
2627LHHLH L HHLHLLHH
2829LHHHL L HHLHLHLL
3031LHHHHLHHLHHLLL
3233HLLLL L HHLHHLLH
3435HLLLH L HHLHHLHL
3637HLLHL L HHLHHLHH
3839HLLHHLHHLHHHLL
4041HLHLL L HHHLLLLL
4243HLHLH L HHHLLLLH
4445HLHHLLH H H L L L H L
4647HLHHH L HHHL L LHH
4849HHLLLLHHHLLHLL
5051HHLLHLHHHLHLLL
5253HHLHL L HHHLHLLH
5455HHLHH L HHHLHLHL
5657HHHLL L HHHLHLHH
5859HHHLH L HHHLHHL L
6061HHHHL L HHHHLLLL
6263HHHHH L HHHH L L L H
All XXXXX H HHHHHHHH
InputsOutputs
4
Function Tables (Continued)
BCD-to-Binary Converter
BCD
Words
InputsOutputs
(See Note A)(See Note B)
EDCBAGY5Y4Y3Y2Y1
01 LLLLLL L L L L L
23 LLLLHL L L L L H
45 LLLHL L L L L H L
67LLLHHLLLLHH
89LLHLLLLLHLL
1011L H L L L L LLHLH
1213L H L L H L LLH HL
1415 LHLHLL L L H H H
1617L H L H H L LHLLL
1819L H H L L L L HLL H
2021H L L L L L L HLHL
2223H L L L H L LHLH H
2425 HL LHLL L H H L L
26 27 HLLHHLLHHLH
2829H L H L L L LH H HL
3031H H L L L L LH H H H
3233H H L L H L H LLLL
3435H H L H L L H LLLH
36 37 HHLHHLHL LHL
3839H H H L L L H LL H H
AnyXXXXXH H H H H H
HeHigh Level, LeLow Level, XeDon’t Care
Note A: Input Conditions other than those shown produce highs at outputs Y1 through Y5.
Note B: Output Y6, Y7, and Y8 are not used for BCD-to-Binary conversion.
Note C: Input conditions other than those shown produce highs at outputs Y6, Y7, and Y8.
Note D: Outputs Y1 through Y5 are not used for BCD 9’s or BCD 10’s complement conversion.
²
When these devices are used as complement converters, input E is used as a mode control. With this input low, the BCD 9’s complement is generated; when it is
high, the BCD 10’s complement is generated.
BCD 9’s or BCD 10’s Complement Converter
BCD
Word
InputsOutputs
(See Note C)(See Note D)
E²DCBAGY8Y7Y6
0 L LLLLL H L H
1 L LLLHL H L L
2 L LLHLL L H H
3 LLLHHLLHL
4 L LHLLL L H H
5 L LHLHL L H L
6 L LHHLL L L H
7 L L HHHL L L L
8 L HLLLL L L H
9 L HL LHL L L L
0 H LLLLL L L L
1 H LLLHL H L L
2 H L LHL L H L L
3HLLHHLLHH
4 H LHL L L L H H
5 H LHLHL L H L
6 H LHHLL L H L
7 H LHHHL L L H
8 HHLLLL L L H
9 H HLLHL L L L
Any X XXXXH H H H
Test Circuit
CLincludes probe and jig capacitance
TL/F/6561– 6
Typical Applications
FIGURE 1. BCD-to-Binary Converter
MSDÐMost significant decade
LSDÐLeast significant decade
Each rectangle represents a DM74184
5
for Two BCD Decades
TL/F/6561– 7
Typical Applications (Continued)
MSDÐMost significant decade
LSDÐLeast significant decade
Each rectangle represents a DM74184
FIGURE 2. BCD-to-Binary Converter for Six BCD Decades
TL/F/6561– 9
6
Typical Applications (Continued)
FIGURE 3. BCD-to-Binary Converter
for Three BCD Decades
MSDÐMost significant decade
LSDÐLeast significant decade
Each rectangle represents a DM74184
FIGURE 8. 16-Bit Binary-to-BCD Converter (See Note B)
8
9
Physical Dimensions inches (millimeters)
16-Lead Molded Dual-In-Line Package (N)
Order Number DM74184N or DM74185AN
NS Package Number N16E
DM74184/DM74185A BCD-to-Binary and Binary-to-BCD Converters
LIFE SUPPORT POLICY
NATIONAL’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT
DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE PRESIDENT OF NATIONAL
SEMICONDUCTOR CORPORATION. As used herein:
1. Life support devices or systems are devices or2. A critical component is any component of a life
systems which, (a) are intended for surgical implantsupport device or system whose failure to perform can
into the body, or (b) support or sustain life, and whosebe reasonably expected to cause the failure of the life
failure to perform, when properly used in accordancesupport device or system, or to affect its safety or
with instructions for use provided in the labeling, caneffectiveness.
be reasonably expected to result in a significant injury
to the user.
National SemiconductorNational SemiconductorNational SemiconductorNational Semiconductor
CorporationEuropeHong Kong Ltd.Japan Ltd.
1111 West Bardin RoadFax: (
Arlington, TX 76017Email: cnjwge@tevm2.nsc.comOcean Centre, 5 Canton Rd.Fax: 81-043-299-2408
Tel: 1(800) 272-9959Deutsch Tel: (
Fax: 1(800) 737-7018English Tel: (
National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications.