PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Oct 01, 2009 3:35 pm |
|
|
It worked for me. I installed vs. 3.249 and programmed the code
below into an 18F4431 and ran it on a PicDem2-Plus board.
Here is the output:
Here is the test program:
| Code: |
#include <18F4431.h>
#fuses INTRC_IO, NOWDT, BROWNOUT, PUT, NOLVP
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)
#rom 0xf00000={1,2,3,4}
//==========================
main()
{
int a;
int b;
write_eeprom(9,5);
write_eeprom(10,6);
write_eeprom(11,7);
a = read_eeprom(2);
b = read_eeprom(9);
printf("a = %x \n\r", a);
printf("b = %x \n\r", b);
while(1);
}
|
|
|