/*
* epprom.c
*
* Created: 2011-7-9 13:58:38
* Author: Administrator
*/
#include <avr/io.h>
#include <avr/eeprom.h>
#include "1602.h"
uchar w[]={"wo men ok"};
uchar r[]={0};
void GPIO_Init()
{
DDRA=0xff;
DDRB=0xff;
DDRC=0xff;
}
int main(void)
{
eeprom_write_block (w, 0x0000, 8);
asm("nop");asm("nop");
GPIO_Init();
Lcd_Init();
eeprom_read_block (r, 0x0000, 8);
eeprom_busy_wait();
Write_String(0x00,r);
while(1)
{
//TODO:: Please write your application code
}
}
评论0