SFR(AUXR1, 0xA2); // Auxiliary 1
#define ENBOOT 0x20
#define GF2 0x08
+ // Bit 2 must be 0
#define DPS 0x01
SFR(B, 0xF0); // B register
SBIT(B7, 0xF0, 7);
SFR(SP, 0x81); // Stack Pointer
SFR(S1DAT, 0xDA); // I2C Serial 1 Data
SFR(S1IST, 0xDC); // I2C Serial 1 Internal Status
-SFR(S1ADR, 0xDB); // I2C Serial 1 Address
-SFR(S1STA, 0xD9); // I2C Serial 1 Status
+SFR(S1ADR, 0xDB); // I2C Serial 1 Address
+ #define GC 0x01
+SFR(S1STA, 0xD9); // I2C Serial 1 Status
#define SC4 0x80
#define SC3 0x40
#define SC2 0x20
SBIT(STO, 0xD8, 4);
SBIT(SI, 0xD8, 3);
SBIT(AA, 0xD8, 2);
- SBIT(CR01, 0xD8, 2);
+ SBIT(CR1, 0xD8, 1);
SBIT(CR0, 0xD8, 0);
SFR(TCON, 0x88); // Timer Control
SBIT(TF1, 0x88, 7);