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

eprom

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ferrarilib



Joined: 11 Jun 2005
Posts: 38

View user's profile Send private message

eprom
PostPosted: Fri Jul 08, 2005 6:48 am     Reply with quote

hallo
i have connect a eprom 24c32 to 877 in pin C4 e C3 and i have used the example EX_EXTEE.C , i have cange 2402 with 2432 in #include but when i start program dont output nothing i must do samething more ?

thanks
ferrarilib



Joined: 11 Jun 2005
Posts: 38

View user's profile Send private message

PostPosted: Fri Jul 08, 2005 7:55 am     Reply with quote

i have tired with code :

#include <16f877a.h>
#fuses HS, NOWDT //,// NOPROTECT, PUT, NOBROWNOUT, NOLVP
#use delay(clock=8000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7) // Jumpers: 8 to 11, 7 to 12
#define EEPROM_SDA PIN_C4
#define EEPROM_SCL PIN_C3
#include <2432.c>


main() {



init_ext_eeprom();

write_ext_eeprom(0x01,0x01);
write_ext_eeprom(0x02,0x02);
write_ext_eeprom(0x03,0x03);





while (TRUE);

}

but dont write nothing Sad
i do samething not good ?
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Fri Jul 08, 2005 11:45 am     Reply with quote

Did you add pullups to the lines?
ferrarilib



Joined: 11 Jun 2005
Posts: 38

View user's profile Send private message

PostPosted: Fri Jul 08, 2005 12:05 pm     Reply with quote

Thanks Mark

i have 2 resistor to 4,7k Confused


Now is all good Very Happy
The all line sda e scl was corupted (microswich was do no good conctat !)

now i am very happy .. Thanks a lot Mark Rolling Eyes
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