Manah Guest
|
16F628A and SETUP_ADC_PORTS(NO_ANALOGS) |
Posted: Fri Jun 15, 2007 11:07 pm |
|
|
Hello.
Code: |
#include <16F628A.h>
#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //High speed Osc (> 4mhz)
#FUSES NOPUT //No Power Up Timer
#FUSES NOPROTECT //Code not protected from reading
#FUSES NOBROWNOUT //No brownout reset
#FUSES NOMCLR //Master Clear pin used for I/O
#FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O
#FUSES NOCPD //No EE protection
#use delay(clock=4000000)
char ch[20];
int dat;
void main()
{
output_high(PIN_B7);
output_low(PIN_B4);
setup_comparator(NC_NC_NC_NC);
SETUP_ADC_PORTS(NO_ANALOGS);
while(1)
{
#use rs232(baud=9600,parity=N,xmit=PIN_A2,rcv=PIN_A3,bits=8)
while (getc() != 'A');
dat = getc();
#use rs232(baud=9600,parity=N,xmit=PIN_B2,rcv=PIN_B1,bits=8)
putc(dat);
}
} |
Compiler: Undefined identifier SETUP_ADC_PORTS
What is wrong? |
|