Ein Prima Baustein, aber ich habe mit Hilfe eines GALs diesen erweitert,
damit er auch hexadezimal anzeigen kann, also von 0-9 und A-F.
Hier das GAL-Listing:
Code: Alles auswählen
BCD ZU 7-SEGMENT-DECODER MIT DECODIERUNG VON 0 BIS 9 UND $A BIS $F
FšR GEMEINSAME KATHODE
----------------------------------------------------------------------------
%ID
7-SEGM
%TYP
GAL16V8
%PINS
CLK !LT NC NC NC A B C D GND
OE NC QA QB QC QD QE QF QG VCC
%LOGIK
QA.OE = VCC;
QB.OE = VCC;
QC.OE = VCC;
QD.OE = VCC;
QE.OE = VCC;
QF.OE = VCC;
QG.OE = VCC;
QA = LT
+ A * B * C * D
+ A * !B * C * D
+ !A * !B * C * D
+ !A * B * !C * D
+ !A * !B * !C * D
+ A * B * C * !D
+ !A * B * C * !D
+ A * !B * C * !D
+ A * B * !C * !D
+ A * !B * !C * !D
+ !A * !B * !C * !D;
QB = LT
+ A * B * C * D
+ !A * B * C * D
+ A * !B * C * D
+ !A * !B * C * D
+ A * B * !C * D
+ !A * !B * !C * D
+ A * B * C * !D
+ !A * B * C * !D
+ A * !B * C * !D
+ !A * B * !C * !D;
QC = LT
+ A * B * C * D
+ !A * B * C * D
+ !A * !B * C * D
+ A * B * !C * D
+ !A * !B * !C * D
+ A * B * C * !D
+ !A * B * C * !D
+ A * !B * C * !D
+ !A * !B * C * !D
+ !A * B * !C * !D;
QD = LT
+ A * B * C * D
+ A * !B * C * D
+ A * !B * !C * D
+ A * B * C * !D
+ !A * !B * C * !D
+ A * B * !C * !D
+ !A * B * !C * !D
+ A * !B * !C * !D;
QE = LT
+ A * B * C * D
+ A * !B * C * D
+ A * !B * !C * D
+ A * B * C * !D
+ A * !B * C * !D
+ !A * !B * C * !D
+ A * B * !C * !D
+ !A * B * !C * !D
+ A * !B * !C * !D
+ !A * !B * !C * !D;
QF = LT
+ A * B * C * D
+ A * B * !C * D
+ !A * B * !C * D
+ A * !B * !C * D
+ A * B * C * !D
+ !A * B * C * !D
+ A * !B * C * !D
+ !A * !B * C * !D
+ A * B * !C * !D
+ A * !B * !C * !D
+ !A * !B * !C * !D;
QG = LT
+ A * !B * C * D
+ !A * !B * C * D
+ A * B * !C * D
+ !A * B * !C * D
+ A * !B * !C * D
+ A * B * C * !D
+ !A * B * C * !D
+ A * !B * C * !D
+ !A * !B * C * !D
+ !A * B * !C * !D
+ A * !B * !C * !D
+ !A * !B * !C * !D;
%END