Question Can someone help me with a code (either in C or assembly language). I need to code an ATMEL AT89LP4052 to incorporate an LCD display in 4 bit mode and an ultrasonic sensor. (the LP4052 is in the 8051 family but with key difference of speed, number of pins and has 2 SFR's to be either coded as input, output or bidirectional) I have the datasheet for the same so if you need it, i can mail.

CBKWHJ The Asker · Computer Science

Can someone help me with a code (either in C or assembly language).

I need to code an ATMEL AT89LP4052 to incorporate an LCD display in 4 bit mode and an ultrasonic sensor.

(the LP4052 is in the 8051 family but with key difference of speed, number of pins and has 2 SFR's to be either coded as input, output or bidirectional)

I have the datasheet for the same so if you need it, i can mail.

More
Community Answer
RDNLM8

NOTE:  DOWNVOTE NOT GIVE YOU YOUR SOLUTION IF ANY PROBLEM TELL ME IN COMMENT I WILL SOLVE THAT     ANSWER:   // Program for LCD Interfacing with 8051 Microcontroller (AT89S52) #include<reg51.h> #define display_port P2 //Data pins connected to port 2 on microcontroller sbit rs = P3^2; //RS pin connected to pin 2 of port 3 sbit rw = P3^3; // RW pin connected to pin 3 of port 3 sbit e = P3^4; //E pin connected to pin 4 of port 3 void msdelay(unsigned int time) // Function for creating delay in milliseconds. { unsigned i,j ; for(i=0;i<time;i++) for(j=0;j<1275;j++); } void lcd_cmd(unsigned char command) //Function to s ... See the full answer