mstechca
New Member
I can program my EEPROM through the parallel port, and the data appears to be stored on it. I have verified the 1st byte manually.
Now when I use the same EEPROM in my 8051 circuit, and turn the unit on, all I see on my HD47780 compatible LCD is a bar filling half the display, If I make the RESET pin high, for a few seconds, and make RESET low, the same bars start flickering at a very high rate.
The code is as follows and works with my compiler.
The above code is the same as the 8051 instruction set except that:
any parameter starting with a quotation mark instructs the compiler to give the ASCII equivalent of the character after the quotation mark.
clr means clear bit.
P1, P2, P3, and P0 refer to the respective ports.
The least I expect the system to do is clear the display, and it can't do that.
My circuit is included, and the little red lightning bolts are shown, because Windraft (the schematic editor I was using) expected me to connect the pins (with the bolts) somewhere.
Someone please tell me what I am doing wrong.
Now when I use the same EEPROM in my 8051 circuit, and turn the unit on, all I see on my HD47780 compatible LCD is a bar filling half the display, If I make the RESET pin high, for a few seconds, and make RESET low, the same bars start flickering at a very high rate.
The code is as follows and works with my compiler.
Code:
mov P3,1
MOV P1,63
clr P3.0
setb P3.0
MOV P1,15
clr P3.0
setb P3.0
MOV P1,1
clr P3.0
setb P3.0
setb P3.1
MOV P1,"H
clr P3.0
setb P3.0
MOV P1,"E
clr P3.0
setb P3.0
MOV P1,"L
clr P3.0
setb P3.0
MOV P1,"L
clr P3.0
setb P3.0
MOV P1,"O
clr P3.0
setb P3.0
MOV P1,"!
clr P3.0
setb P3.0
The above code is the same as the 8051 instruction set except that:
any parameter starting with a quotation mark instructs the compiler to give the ASCII equivalent of the character after the quotation mark.
clr means clear bit.
P1, P2, P3, and P0 refer to the respective ports.
The least I expect the system to do is clear the display, and it can't do that.
My circuit is included, and the little red lightning bolts are shown, because Windraft (the schematic editor I was using) expected me to connect the pins (with the bolts) somewhere.
Someone please tell me what I am doing wrong.