whung.john Guest
|
93c66 question |
Posted: Wed Mar 07, 2007 10:20 am |
|
|
hi:
everybody my friends.i try use practice 93c66 chip application.
but what is it (chip (93c66)) not remember my written number.
i dont know what code is error .
pls everybody my friend .can teach me and give me a suggest.
thank u very much.
my code follow as: (my already use ccs libery 9366.c) and use 9366.c connect to chip method.my readed datasheets and connected it.
cs ->EEPROM_SELECT PIN_B7
sk ->EEPROM_CLK PIN_B6
di ->EEPROM_DI PIN_B5
do-> EEPROM_DO PIN_B4
#include <16F877.h>
#FUSES NOWDT, HS, NOPUT, NOPROTECT, NOBROWNOUT, NOLVP, NOCPD, NOWRT, NODEBUG
#use delay(clock=10000000)
#include <LCD>
#include <9366>
char d;
char e[]={0x00,0x11};
void main()
{
lcd_init();
init_ext_eeprom();
while(1)
{
d = read_ext_eeprom(1);
LCD_GOTOXY(1,1); PRINTF(LCD_PUTC,"\f next= %4u",d);
delay_ms(8000);
LCD_GOTOXY(1,2); PRINTF(LCD_PUTC,"\f START 93C66");
write_ext_eeprom(1,e[0]);
DELAY_MS(8000);
}
} |
|