Need Help for Digital Alarm Clock
Discussion in "Project Doubts" started by manan_vyas Oct 11, 2010.
Mon Oct 11 2010, 08:40 pm
I have Soldered the circuit for Digital Alarm Clock Using 89C51.
I have programmed the controller too using the HEX codes provided.
But only the 16X2 LCD is ON without any display.
Please Help me regarding this issue.
I have programmed the controller too using the HEX codes provided.
But only the 16X2 LCD is ON without any display.
Please Help me regarding this issue.
Mon Oct 11 2010, 11:35 pm
Most of the LCD issues are due to Delay routines only ...First try to interface LCD properly then try for your digital clock ...Step by step approach is important .You may refer to LCD tutorial which is in tutorial section ..
Tue Oct 12 2010, 12:04 am
hi manan_vyas
try to check first its all connection that it is proper
if a square boxes is coming on the signal then it mean it is not properly initializing by ur program
if nothing is displayed on the lcd even boxes then change the contrast voltage by variable
add a 250 ms delay in coding when power up also
can u upload your program
try to check first its all connection that it is proper
if a square boxes is coming on the signal then it mean it is not properly initializing by ur program
if nothing is displayed on the lcd even boxes then change the contrast voltage by variable
add a 250 ms delay in coding when power up also
can u upload your program
[ Edited Tue Oct 12 2010, 12:06 am ]
Tue Oct 12 2010, 08:00 am
Thanks people,
I only get the 2 rows of boxes on the LCD.
Moreover the buzzer keeps on ringing every time i switch ON the reset circuit.
The pull up resistors are of 4k7 at the output port through which the LCD is connected.
I am Attaching the code that I am using to program the uC ( the one which was recently updated on the project Download section of the digital alarm clock).
I only get the 2 rows of boxes on the LCD.
Moreover the buzzer keeps on ringing every time i switch ON the reset circuit.
The pull up resistors are of 4k7 at the output port through which the LCD is connected.
I am Attaching the code that I am using to program the uC ( the one which was recently updated on the project Download section of the digital alarm clock).
Tue Oct 12 2010, 08:57 am
1) can u provide a complete diagram u made may be there is some error in hardware upload the diagram as u made on hardware
2) ru check the circuit on Proteus to verify your coding is correct or not
3) cdo coding step by step do not try to do all coding at once this is dificult t otrouble shoot
in first attempt just make a code that blink a pin afetr 1 second connect the led on pin it should blink now it is clear hardware is ok
now 2nd step to configure an lcd and display one character on if this ok then goto next step for clock then for calender this is a easy approach
try to change contrast of lcd and insert a delay of 250 ms delay when system powers up
2) ru check the circuit on Proteus to verify your coding is correct or not
3) cdo coding step by step do not try to do all coding at once this is dificult t otrouble shoot
in first attempt just make a code that blink a pin afetr 1 second connect the led on pin it should blink now it is clear hardware is ok
now 2nd step to configure an lcd and display one character on if this ok then goto next step for clock then for calender this is a easy approach
try to change contrast of lcd and insert a delay of 250 ms delay when system powers up
[ Edited Tue Oct 12 2010, 09:10 am ]
Tue Oct 12 2010, 04:46 pm
Hey i used the following program to display just two chars on LCD
Still no change.
ORG 0000h
MOV A,#38H
ACALL COMNWRT
ACALL DELAY
MOV A,#0EH
ACALL COMNWRT
ACALL DELAY
MOV A,#01
ACALL COMNWRT
ACALL DELAY
MOV A,#06H
ACALL COMNWRT
ACALL DELAY
MOV A,#84H
ACALL COMNWRT
ACALL DELAY
MOV A,#'M'
ACALL DATAWRT
ACALL DELAY
MOV A,#'V'
ACALL DATAWRT
AGAIN: SJMP AGAIN
COMNWRT:
MOV P2,A
CLR P3.5
CLR P3.6
SETB P3.7
CLR P3.7
RET
DATAWRT:
MOV P2,A
SETB P3.5
CLR P3.6
SETB P3.7
CLR P3.7
RET
dELAY:
MOV R3,#50
HERE2:
MOV R4,#255
HERE:
DJNZ R4,HERE
DJNZ R3,HERE2
RET
END
Still no change.
ORG 0000h
MOV A,#38H
ACALL COMNWRT
ACALL DELAY
MOV A,#0EH
ACALL COMNWRT
ACALL DELAY
MOV A,#01
ACALL COMNWRT
ACALL DELAY
MOV A,#06H
ACALL COMNWRT
ACALL DELAY
MOV A,#84H
ACALL COMNWRT
ACALL DELAY
MOV A,#'M'
ACALL DATAWRT
ACALL DELAY
MOV A,#'V'
ACALL DATAWRT
AGAIN: SJMP AGAIN
COMNWRT:
MOV P2,A
CLR P3.5
CLR P3.6
SETB P3.7
CLR P3.7
RET
DATAWRT:
MOV P2,A
SETB P3.5
CLR P3.6
SETB P3.7
CLR P3.7
RET
dELAY:
MOV R3,#50
HERE2:
MOV R4,#255
HERE:
DJNZ R4,HERE
DJNZ R3,HERE2
RET
END
Tue Oct 12 2010, 09:15 pm
code is ok i check it on Proteus it is working well here is the file u can see it firstly try a led blinking program that clear the hardware doubt still this code can 't tell us that is hardware issue of software
try this code for verifying the circuit status some time crystal damage and controller not clocking properly
if p1.0 on and off it mean hardware is ok now try the above program u make
now what is the status of lcd black boxes or nothing displayed
also upload ur circuit diagram u make
try this code for verifying the circuit status some time crystal damage and controller not clocking properly
ORG 0000h BACK: SETB P1.0 CALL DELAY CLR P1.0 CALL DELAY JMP BACK DELAY: MOV R3,#50 HERE2: MOV R4,#255 HERE: DJNZ R4,HERE DJNZ R3,HERE2 RET END
if p1.0 on and off it mean hardware is ok now try the above program u make
now what is the status of lcd black boxes or nothing displayed
also upload ur circuit diagram u make
Tue Oct 12 2010, 10:43 pm
Silly Doubt : I am using 16X2 LCD display with 16 pins..
Proteus has library for 14 pin ...
How do i resolve this
Proteus has library for 14 pin ...
How do i resolve this
Powered by e107 Forum System