Microcontroller › 8051 › please if anybody have genune version of keil.please send hex file for the code given below, to my gmail [email protected]
- This topic has 1 reply, 2 voices, and was last updated 9 years, 5 months ago by Ashutosh Bhatt.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
April 16, 2015 at 3:23 am #3624GaganParticipant#include<P89V51RD2.H>sbit ale=P1^0; //address latch enablesbit oe=P1^3; //output enablesbit sc=P3^3; //start conversionsbit eoc=P1^2; //end of conversionsbit clk=P1^7; // clock // Address pins for selecting input channels.sbit ADD_B=P3^4;sbit ADD_C=P1^5;sfr lcd_data_pin=0xA0; //P2 portsbit rs=P3^7;sbit rw=P3^1;sbit en=P3^6;sfr input_port=0x80; //P0 portunsigned int number,k,rm,i,asci[10];float step=5/255,value;void timer0() interrupt 1 // Function to generate clock of frequency 500KHZ using Timer 0 interrupt.{clk=~clk;}void delay(unsigned int count) // Function to provide time delay in msec.{int i,j;for(i=0;i<count;i++)for(j=0;j<1275;j++);}void lcd_command(unsigned char comm) //Function to send command to LCD.{lcd_data_pin=comm;en=1;rs=0;rw=0;delay(10);en=0;}void lcd_data(unsigned char disp) //Function to send data to LCD.{lcd_data_pin=disp;en=1;rs=1;rw=0;delay(10);en=0;}lcd_dataa(char addr,unsigned char *disp) //Function to send string data to LCD.{lcd_command( addr );while( *disp != '