#include __CONFIG(XT&WDTDIS); //定义配置字,晶振类型:XT,关闭看门狗 #define sda RC4 //EEPROM SDA接RC4 #define scl RC3 //EEPROM SCL接RC3 #define RSPIN RA0 //LCD 1602 RS接RA0 #define RWPIN RA1 //LCD 1602 R/W接RA1 #define EPIN RA2 //LCD 1602 E接RA3 bit eepromdi; bit eepromdo;