Have to have a great god help me solve this problem, the at24c02 writes a data, can be read successf
# include "stc15f2k60s2. H" # include "intrins. H//" # include "unit.and h" unsigned char TAB []={xa4 xc0 0, 0 xf9, 0, 0 xb0, 0 x99, 0 x92, 0 x82, 0 xf8, 0 x80, 0 x90}; Unsigned char b, num; Sbit SCL=P2 ^ 0; Sbit SDA=P2 ^ 1; Void Delay5us () {unsigned char (I); _nop_ (); I=11; While (I); } void init () {P42=0; P27=1; He=0; P25=0; P0=0 XFF; P27=1; He=0; P25=1; P06=0; {} void delay (unsigned char m) unsigned n, j. For (n=0; n