-
Ordering information
Call us or mail us for inquiries & availability: info@mtronixtech.com
-
Search projects by Price
-
Project Categories
- Robots and Robotics
- GSM based Projects
- GPS based Projects
- RFID based Projects
- Energy Saving
- Wireless Communication
- DTMF based projects
- SMS based projects
- RF Remote
- Mobile Controlled
- Power Saver
- Sensor based Projects
- Alcohol Sensor
- heartbeat Sensor
- Humidity Sensor
- Infrared Sensor
- Level Sensor
- Light Sensor
- LPG Gas Sensor
- Moisture Sensor
- Temperature Sensor
- Vibration Sensor
- Weight Sensor
-
Search projects by Application
Project Videos:
Landrover Robot Operated by Cellphone
Industrial Automation using Cellphone
Password based door locking
Automatic room light controller
Temperature controlled fan
Electronic voting machine
Search by Components
89c51 89s51 89s52 89v51RD2 555 ADC0808 ADC0809 AT24c16 AT24c64 AT89s52 Battery BC547 Bulb Buzzer Darlington Pair DC motor Decoder EEPROM Fan GPS GSM IR LED Keypad L239D LCD Display LDR LED LM35 LM358 Matrix keypad MAX232 Motor Driver MQ6 PC Interface Relay RFID Card RFID Reader RFID Tags Sim300 sim900 SR86 SR87 Stepper Motor SYHS220 TSOP1738
Assembly code for LCD - Liquid Crystal Display
Sample code for LCD - Liquid Crystal Display
Following code can be using for 8051 and 8052 ICs like: 89c51, 89c52, 89s51, 89s52, 89c2051.
;========================================================== ; Pin Definations ;========================================================== lcddatabus equ 80h ;LCD Data Bus P0 lcdrs equ a7h ;RS P2.7 lcden equ a6h ;EN P2.6 ;========================================================== ; Main Program starts from here ;========================================================== start call lcdinit mov dptr,#msgwelcome call lcddisp back jmp back ;========================================================== ; Sub routines starts from here ;========================================================== lcdinit mov lcddatabus,#38h call lcdcmd mov lcddatabus,#38h call lcdcmd mov lcddatabus,#38h call lcdcmd mov lcddatabus,#38h call lcdcmd mov lcddatabus,#0ch call lcdcmd mov lcddatabus,#01h call lcdcmd mov lcddatabus,#06h call lcdcmd ret ;========================================================== lcdcmd clr lcdrs setb lcden nop nop clr lcden call lcddelay ret ;========================================================== lcddata setb lcdrs setb lcden nop nop clr lcden call lcddelay ret ;========================================================== lcddelay mov delreg1,#10 ;LCD lcddelay1 mov delreg2,#250 djnz delreg2,$ djnz delreg1,lcddelay1 ret ;========================================================== lcddisp mov lcddatabus,#01h call lcdcmd mov 39h,#00h lcddisp2 mov a,39h movc a,@a+dptr cjne a,#'@',lcddisp1 mov lcddatabus,#c0h call lcdcmd inc 39h jmp lcddisp2 lcddisp1 cjne a,#'$',lcddisp3 call pc_int ret lcddisp3 mov lcddatabus,a call lcddata inc 39h jmp lcddisp2 ;========================================================== ; Messages to be displayed on LCD ;========================================================== msgwelcome db " WELCOME TO @INTERFACING PROG$" ;===================================================== ; Program ENDS here ;=====================================================