I have been working and trying to get this 5x7 display
going for the past week but have not made it work. I
know that my programming is correct, at least I
assume it is. But since my outputs are not correct
it;s makingme think twice if my program is actually
working.
here is what I am trying to do. I first sent out the
address from portD(to determine what digit slot the
characters need to be placed), then I set the pin on
PortC.2 = 0 so that the address can be latched into
74LS373. Now that the address is latched, I can sent
the data out from the same port, without it
interefering with the address bits that has already
been latched into the 74LS373. Once the data bits
gets sent to the 74LS245 it then sends the bits
directly to the Display device. The display device
does not output the characters until the output of the
OR_GATE is LOW.
I have attached a schematic to show you exactly how my
hardware is interfacing with all these chips The
Orgate chip that I am using is 74LS32.
And here is the link to the Display device I am trying
to output characters to (click on the floppy disk icon
on the right side next to the DLX1414.
http://katalog.elektroda.net/indx0-DL.html
Any help with this would be greatly appreciated.
thanks
here is what I have done in my code.
'notice that it is the last two bits in the address
'variable that determines what digit slot the
'character will display.
Address VAR Byte
D_Data VAR Byte
i var byte
WR_SIGNAL VAR PortE.1
ALE_SIGNAL VAR PortC.2
Start:
Address = 47 'binary equiv 00101111
GoSub Address_Latching
D_Data = 32 'decoded to display a blank
GoSub Send_Data
Address = 46 'binary equiv 00101110
GoSub Address_Latching
D_Data = 32 'decoded to display a blank
GoSub Send_Data
Address = 45 'binary equiv 00101101
GoSub Address_Latching
D_Data = 32 'decoded to display a blank
GoSub Send_Data
Address = 44 'binary equiv 00101100
GoSub Address_Latching
D_Data = 32 'decoded to display a blank
GoSub Send_Data
Pause 1500
Address = 47 'binary equiv 00101111
GoSub Address_Latching
D_Data = 1 'Decoded to display an up arrow
GoSub Send_Data
Address = 46 'binary equiv 00101111
GoSub Address_Latching
D_Data = 2 'decoded to print a right pointing arrow
GoSub Send_Data
Address = 45 'binary equiv 00101111
GoSub Address_Latching
D_Data = 3 'decoded to print a down pointing arrow
GoSub Send_Data
Address = 44 'binary equiv 00101111
GoSub Address_Latching
D_Data = 4 'decoded to display a left poiinting arrow
GoSub Send_Data
Pause 1500
Goto Start
Address_Latching:
ALE_SIGNAL = 1
PortD.0 = Address.0
PortD.1 = Address.1
PortD.2 = Address.2
PortD.3 = Address.3
PortD.4 = Address.4
PortD.5 = Address.5
PortD.6 = Address.6
PortD.7 = Address.7
ALE_SIGNAL = 0
Pauseus 500
ALE_SIGNAL = 1
return
Send_Data:
WR_SIGNAL = 1
PortD.0 = D_Data.0
PortD.1 = D_Data.1
PortD.2 = D_Data.2
PortD.3 = D_Data.3
PortD.4 = D_Data.4
PortD.5 = D_Data.5
PortD.6 = D_Data.6
PortD.7 = D_Data.7
WR_SIGNAL = 0
Pauseus 500
WR_SIGNAL = 1
return
Bookmarks