View previous topic :: View next topic |
Author |
Message |
ferrarilib
Joined: 11 Jun 2005 Posts: 38
|
eprom |
Posted: Fri Jul 08, 2005 6:48 am |
|
|
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
|
|
Posted: Fri Jul 08, 2005 7:55 am |
|
|
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
i do samething not good ? |
|
|
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
|
|
Posted: Fri Jul 08, 2005 11:45 am |
|
|
Did you add pullups to the lines? |
|
|
ferrarilib
Joined: 11 Jun 2005 Posts: 38
|
|
Posted: Fri Jul 08, 2005 12:05 pm |
|
|
Thanks Mark
i have 2 resistor to 4,7k
Now is all good
The all line sda e scl was corupted (microswich was do no good conctat !)
now i am very happy .. Thanks a lot Mark |
|
|
|