PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Mar 01, 2005 3:38 pm |
|
|
To use it, just add the line shown below to your program.
Make sure you put the line immediately below the main "#include" line
as shown in this example.
#include <16F877.H>
#device WRITE_EEPROM=ASYNC
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock = 4000000)
//#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)
#int_ext
void int_ext_isr(void)
{
char c;
c = 0xAA;
}
//============================
void main()
{
write_eeprom(0, 0x55);
while(1);
} |
|