ysrinivas
Newbie level 3
- Joined
- Dec 12, 2012
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,344
hi every one i am new to this forum..
i am doing the mini project on Micro controller based security system
in the i am using the LCD display, i am using the same code for displaying the characters on to the LCD
but i am not getting the output i verified my code on proteus also it is working but when come to
hardware i am not getting the output can anyone please help me to solve this problem i am posting my circuit diagram and code for this
code:
ORG 00H
MOV SP,#60H
CLR P1.4
START: MOV A,#38H
ACALL COMNWRT
ACALL DELAY
MOV A,#0EH
ACALL COMNWRT
ACALL DELAY
MOV A,#01H
ACALL COMNWRT
ACALL DELAY
MOV A,#06H
ACALL COMNWRT
ACALL DELAY
MOV A,#84H
ACALL COMNWRT
ACALL DELAY
MOV A,#'I'
ACALL DATAWRT
ACALL DELAY
MOV A,#'N'
ACALL DATAWRT
ACALL DELAY
MOV A,#'S'
ACALL DATAWRT
ACALL DELAY
MOV A,#'E'
ACALL DATAWRT
ACALL DELAY
MOV A,#'R'
ACALL DATAWRT
ACALL DELAY
MOV A,#'T'
ACALL DATAWRT
ACALL DELAY
MOV A,#' '
ACALL DATAWRT
ACALL DELAY
MOV A,#'C'
ACALL DATAWRT
ACALL DELAY
MOV A,#'A'
ACALL DATAWRT
ACALL DELAY
MOV A,#'R'
ACALL DATAWRT
ACALL DELAY
MOV A,#'D'
ACALL DATAWRT
ACALL DELAY
STAY: SJMP STAY
COMNWRT:ACALL READY
MOV P0,A
CLR P1.2
CLR P1.1
SETB P1.0
ACALL DELAY
CLR P1.0
RET
DATAWRT:ACALL READY
MOV P0,A
SETB P1.2
CLR P1.1
SETB P1.0
ACALL DELAY
CLR P1.0
RET
READY: SETB P0.7
CLR P1.2
SETB P1.1
BACK:CLR P1.0
ACALL DELAY
SETB P1.0
JB P0.7,BACK
RET
DELAY: MOV R0,#50
MOV R1,#50
HERE: DJNZ R0,HERE
DJNZ R1,HERE
RET
i am doing the mini project on Micro controller based security system
in the i am using the LCD display, i am using the same code for displaying the characters on to the LCD
but i am not getting the output i verified my code on proteus also it is working but when come to
hardware i am not getting the output can anyone please help me to solve this problem i am posting my circuit diagram and code for this
code:
ORG 00H
MOV SP,#60H
CLR P1.4
START: MOV A,#38H
ACALL COMNWRT
ACALL DELAY
MOV A,#0EH
ACALL COMNWRT
ACALL DELAY
MOV A,#01H
ACALL COMNWRT
ACALL DELAY
MOV A,#06H
ACALL COMNWRT
ACALL DELAY
MOV A,#84H
ACALL COMNWRT
ACALL DELAY
MOV A,#'I'
ACALL DATAWRT
ACALL DELAY
MOV A,#'N'
ACALL DATAWRT
ACALL DELAY
MOV A,#'S'
ACALL DATAWRT
ACALL DELAY
MOV A,#'E'
ACALL DATAWRT
ACALL DELAY
MOV A,#'R'
ACALL DATAWRT
ACALL DELAY
MOV A,#'T'
ACALL DATAWRT
ACALL DELAY
MOV A,#' '
ACALL DATAWRT
ACALL DELAY
MOV A,#'C'
ACALL DATAWRT
ACALL DELAY
MOV A,#'A'
ACALL DATAWRT
ACALL DELAY
MOV A,#'R'
ACALL DATAWRT
ACALL DELAY
MOV A,#'D'
ACALL DATAWRT
ACALL DELAY
STAY: SJMP STAY
COMNWRT:ACALL READY
MOV P0,A
CLR P1.2
CLR P1.1
SETB P1.0
ACALL DELAY
CLR P1.0
RET
DATAWRT:ACALL READY
MOV P0,A
SETB P1.2
CLR P1.1
SETB P1.0
ACALL DELAY
CLR P1.0
RET
READY: SETB P0.7
CLR P1.2
SETB P1.1
BACK:CLR P1.0
ACALL DELAY
SETB P1.0
JB P0.7,BACK
RET
DELAY: MOV R0,#50
MOV R1,#50
HERE: DJNZ R0,HERE
DJNZ R1,HERE
RET