24c256专题

ATMEGA16读写24C256

代码: #include <mega16.h>#include <stdio.h>#include <i2c.h>#include <delay.h>// Declare your global variables here#define EEPROM_BUS_ADDRESS 0xa0#asm.equ __i2c_port=0x15.equ __sda_bit=1 .equ _