delay_ms(100);
d = read_ext_eeprom(0x01);
delay_ms(100);
write_eeprom (0, d);
}
I used 2432.c driver in ccs library.
is there some simple code just to confirm my hardvare connection.
Thanks
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Sat Jun 18, 2005 5:13 pm
1. The #define statements for the new pin assignments have to go
above the #include statement for the driver. That's the only way
the driver can know about them. Example:
2. You must not let the program fall off the end of main(), or the
PIC will go to sleep. Put a while(1); statement at the end of
your program. Example:
Code:
write_eeprom (0, d);
while(1); // Add this line
}
3. The normal oscillator fuse setting for a 4 MHz crystal is "XT".
Example:
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