Site Loader

#include
#define LCD P0
#include
unsigned int Count,Unit,d1,d2,d3,d4,x1,x2,x3,d5,d6,d7,d8,x4,x5,x6,x7;
unsigned int y1,y2,y3,c1,c2,c3,c4,Cost;
unsigned char z,Disp;
unsigned char code str1=”ENERGYMETER READ”;
unsigned char code str2=”PULSE: 0000 “;
//unsigned char code str2=”METER ID:XXX “;
unsigned char code str3=”Cost: 0000 “;
sbit rs = P2^0;
sbit rw = P2^1;
sbit en = P2^2;
sbit Pulse = P1^0;

int beats_per_min;
char buf20;
void LCDInit ( );
void lcdcmd (unsigned char );
void lcdwrt (unsigned char );
void Delay (unsigned int );
void Conv1 (unsigned int );
void Conv2 (unsigned int );
void Conv3 (unsigned int );
void main(void)
{

We Will Write a Custom Essay Specifically
For You For Only $13.90/page!


order now

P0=0x00;
P1=0xff;
P2=0x00;
TMOD=0X20;
TH1=0XFD; //set baud rate 9600 or FA 4800
SCON=0X50;
TR1=1;
TI=1;

Count=0x00;
Unit=0x00;
Cost=0x00;
LCDInit();

for(z=0;z

Post Author: admin

x

Hi!
I'm Sarah!

Would you like to get a custom essay? How about receiving a customized one?

Check it out