__CONFIG(HS&WDTDIS&LVPDIS);
//__CONFIG(0x3B31);
#define uchar unsigned char
#define uint unsigned int
//LCD 1602 Port Configuration
#define E RB3 //RB3 is connected to LCD 1602 Pin_E;
#define RW RB4 //RB4 is connected to LCD 1602 Pin_RW;
#define RS RB5 //RB5 is Connected to LCD 1602 RS;
//Hardware I2C Configuration
#define SCL RC3 //AT24C08 Pin_SCL is connected to RC3;
#define SDA RC4 //AT24C08 Pin_SDA is connected to RC4;
#define I2C_PageSize 16
uchar Databuf; //define the data;
uint boot_times1, boot_times2;
I2C_Initialize();
LCD1602_init(); //|ì¡Â¨®?1602¨°o?¡ì3?¨o??¡¥o¡¥¨oy
//***due to count the reboot times, no need to use the Pagewrite;
//if possible you could use the 16-bits to show the times,you need to uncomment
//below 8 rows