LCD Interfacing with 8051
LCD Interfacing with 8051. This video is suitable for students of Diploma and degree in Electronics, Computer, IT and Electronics Engineering. It describes theory, hardware intefacing, LCD Commands, software, and simulation using Proteus. Program ;P2.0-P0.7 are connected to LCD data pins D0-D7 ;P1.0 is connected to RS pin of LCD ;P1.1 is connected to R/W pin of LCD ;P1.2 is connected to E pin of LCD ORG 0000 MOV A,#38H ;INIT. LCD 2 LINES, 5X7 MATRIX ACALL COMNWRT ;call command subroutine MOV A,#0EH ;display on, cursor on ACALL COMNWRT ;call command subroutine MOV A,#01 ;clear LCD ACALL COMNWRT ;call command subroutine MOV A,#06H ;shift cursor right ACALL COMNWRT ;call command subroutine MOV A,#86H ;cursor at line 1, pos. 4 ACALL COMNWRT ;call command subroutine MOV DPTR,#100H BACK1:MOV A,#0 MOVC A, @A+DPTR JZ EXIT1 INC DPTR ACALL DATAWRT ;call display subroutine SJMP BACK1 EXIT1: MOV DPTR,#200H MOV A,#0C6H ;cursor at line 2, pos. 6 ACALL COMNWRT BACK2:MOV A,#0 MOVC A, @A+DPTR JZ EXIT2 INC DPTR ACALL DATAWRT ;call display subroutine SJMP BACK2 EXIT2: SJMP EXIT2 ;REPEAT COMNWRT: ;send command to LCD MOV P2,A ;copy reg A to port 1 CLR P1.0 ;RS=0 for command CLR P1.1 ;R/W=0 for write SETB P1.2 ;E=1 for high pulse ACALL DELAY ;give LCD some time CLR P1.2 ;E=0 for H-to-L pulse ACALL DELAY ;give LCD some time RET DATAWRT: ;write data to LCD MOV P2,A ;copy reg A to port 1 SETB P1.0 ;RS=1 for DATA CLR P1.1 ;R/W=0 for write SETB P1.2 ;E=1 for high pulse ACALL DELAY ;give LCD some time CLR P1.2 ;E=0 for H-to-L pulse ACALL DELAY ;give LCD some time RET DELAY: MOV R3,#255 ;50 or higher for fast CPUs HERE2: MOV R4,#255 ;R4 = 255 HERE: DJNZ R4,HERE ;stay until R4 becomes 0 DJNZ R3,HERE2 RET ORG 100H DB 'H','E','L','L','O',0 ORG 200H DB 'W','O','R','L','D',0 END You may be interested in following videos Multiplexer & its Applications https://youtu.be/sBKTZRVjdKY LCD Interfacing with 8051 https://youtu.be/V4G3h6IhB3A STEPPER MOTOR Interfacing with 8051 https://youtu.be/lpMS_crat-s RELAY Interfacing with 8051 https://youtu.be/3D_GQJ-zmik Seven Segment Display Interfacing with 8051 https://youtu.be/w2pyd9hS1mk Switch and LED Interfacing with 8051 https://youtu.be/dRoXs9oL1gM LED Interfacing with 8051 https://youtu.be/sC-iBYFIhtA Serial Communication using Microcontroller 8051 https://youtu.be/NoY38qxkNLk Universal Logic Gates (NAND, NOR) https://youtu.be/I09zFw2Pksg Derived or Secondary Logic Gates https://youtu.be/liGdcW4ZQX4 Primary Digital Logic Gates https://youtu.be/s8PDBO8NkEE Importance of Polytechnic or Diploma Education DR Vikas Dongre Principal Interview https://youtu.be/SsMxudJ51Zk निर्णय आजचा उज्वल भविष्याचा मुलाखत Dr Vikas Dongre HOD Govt polytechnic Washim https://youtu.be/ixPRnxjLq1Q सुदृढ भारत अभियान |Fit India Initiative Government Polytechnic Washim https://youtu.be/fZXaJ6Kpt0Y Polytechnic Awareness Guidance for School Teachers | तंत्रशिक्षण मार्गदर्शन शिबीर https://youtu.be/A1jql_SOKrk Entrepreneurship and Marketing Guidance for CDTP https://youtu.be/A3ad4kDJFVw Effective use of social media | सोशल मेडिया चा वापर प्रभावीपणे कसा करावा? https://youtu.be/Kb6QOtf1f7c How to get admission to Engineering Diploma (Polytechnic) https://youtu.be/DiHMOJS4PbA Applications of flip-flops part 1 https://youtu.be/VLtO884tz9U Applications of flip-flops part 2 https://youtu.be/ztUxQ7uCV6I Introduction to Microcontrollers https://youtu.be/xLlnAKOoeEM 8051 programming using KEIL IDE https://youtu.be/FVZuzx8rHmo # Electronics,communication,Microcontroller,engineering,polytechnic Please Like, Share, Comment, Subscribe
Download
0 formatsNo download links available.