PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Jul 24, 2006 12:32 pm |
|
|
Quote: | why?#device pic16f877a *=16 ADC=10 is error.why? |
Don't use your own #device statement for the PIC. The 16F877A.H
file already has one in it. Do it like this:
Code: | #include <16F877A.h>
#device *=16 adc=10
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)
//=================================
main()
{
while(1);
} |
|
|