CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

93c66 question

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
whung.john
Guest







93c66 question
PostPosted: Wed Mar 07, 2007 10:20 am     Reply with quote

hi: Very Happy
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);

}


}
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group