Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hello edaboard. I'm Max,
I'm trying to display on LCD pressed key & there is serval issues:
1) Before pressing any key when reseting, it will show the address 0h as pressed (It shows '**' twice on the LCD when resetting).
2) Each time i press a key it shows it twice (There is 2 capacitors, one...
Hello again, I haven't been here for a while & did not update the status of the lcd. Right now the LCD is working and showing characters.
Found out that VSS isn't 14 and VCC isn't 13. Its actually VCC-14 VSS-13. Which complety changes the pinout connection. It is making sense, since when RS was...
Got to conclution that the connector i have causing it, I tried to use a pair of wires and my circuit got shorted. I'll get new connector soon and try it out. I'll update here.
Okay checked with voltmeter, Found an error! I found out 0v on pin p0.2 and on the connection to the lcd its 5v.
Disconnecting LCD its turning into 0v. Connecting it back its turned into 5v. why lcd forcing pin d3 to 5v - '1' ??
I'll try fixing it.
Klaus, you made alot of contribution, I'm tottaly respecting you by all means. I'm changing stuff quickly and trying alot of things not to make you stressed but because I don't have much time to complete this project, and this LCD is not cooporating with our coding. I'm myself stressed.
I have...
To insure the data gets to LCD i have decided to check the pins on the LCD itself and not port 0.
...
// Insure 8 Bit Mode
mov P0, #55h // Function Set
sjmp $
...
I see:
EN = 0,RS = 0, RW = 0, data 0101 0101
...
// Insure 8 Bit Mode
mov P0, #0AAh // Function Set
sjmp $
...
I see:
EN = 0, RS =...
Made it with more delays in the SendCommand and SendData and now the lcd showing black bars.. Still not initialized now and its because of the delay routine.. probably not working well.. my delay routine worked well.. the only issue is that the lcd is not displaying characters
Ok. you are correct, thank you alot for doing all of this for me. But to be honest, We can just try to make 50ms delay after every line. I made 500 ms before commands, 50ms to each command, 50ms to each data send and still LCD has black bars for 3seconds and then its disappearing and no single...
Re: Programing In Assembly for 8051
Ok this is the calculation i made and hopefully its the right ones.
24Mhz
Frequency = 1 / 24Mhz = 0.0416us
Machine cycle = 0.0416us per cycle * 4 cycles (fetch, decode, execute, store) = 0.166us per instruction
Tosc = 6 instructions * 0.166us per...
Re: Programing In Assembly for 8051
I'm sorry! My teacher didn't told me that switches are effecting Port 0, I don't have schematics of this either. :oops:
Now, all switches '1' and when im sending for example 0x3E its showing :
[00111110]
p0.0=0v
p0.1=4.5-5v
p0.2=4.5-5v
p0.3=4.5-5v...
Re: Programing In Assembly for 8051
I'm working with 24Mhz. Not 12Mhz. I'll try all you said and edit this reply accordingly.
- - - Updated - - -
Here are the results:
1.VSS - 0.00V
2.VDD - 5.00V
3.VL - 0.25V
4.RS - 0.00V
5.RW - 0.00V
6.EN - 0.00V
7.DB0 - DB7 - 0.00V, P0 All pins - 0.00V
No...
Re: Programing In Assembly for 8051
One line like so.
EDIT: decided to picture my own.
I guess its the button line? Or im holding it upsite down.
- - - Updated - - -
I would like to metion that I'm actually using KS0066F00 driver which i found out that its the same as HD44780 init, If this...
Re: Programing In Assembly for 8051
Now the LCD showing the black bars for maybe a second and then its disappearing and noting is showen afterwards.
Here is the code i made with your guideness:
EN EQU P1.3 // Enable Pin
RS EQU P1.2 // Register Select
// Setting Ports
mov P0,#0FFh // Setting...
Re: Programing In Assembly for 8051
I had a mistake its actually clean 5V on pin 2.
I have deleted the 6000h external memory usage. Now just writting stright to P0 and updating LCD accourdingly.
I made the instructions as below:
mov P0,#0FFh
mov P2,#0E0h
setb P1.0
clr P1.2
clr P1.3
setb P3.6...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.