没用过ATMEGA329P,用ATMEL1632,用它的库来读写EEPROM,这是用AVR编译器的
#include
void EEPROM_WRITE(unsigned char eep_address,unsigned char wr_number,unsigned char* p_header)
{
eeprom_busy_wait();
eeprom_write_block (p_header,eep_address, wr_number);
}
void EEPROM_READ(unsigned char eep_address,unsigned char rd_number,unsigned char * p_header)
{
eeprom_busy_wait();
eeprom_read_block (p_header,eep_address,rd_number)
}
没用过ATMEGA329P,用ATMEL1632,用它的库来读写EEPROM,这是用AVR编译器的
#include
void EEPROM_WRITE(unsigned char eep_address,unsigned char wr_number,unsigned char* p_header)
{
eeprom_busy_wait();
eeprom_write_block (p_header,eep_address, wr_number);
}
void EEPROM_READ(unsigned char eep_address,unsigned char rd_number,unsigned char * p_header)
{
eeprom_busy_wait();
eeprom_read_block (p_header,eep_address,rd_number)
}
举报