Hi Milan,
> I can compile it, but building all produces an output:
>
> sdcc -mpic16 -p18f1220 -V -Wl-c -Wl-s/usr/share/gputils/lkr/18f1220.lkr
> -I/home/milan/ide/piklab/sdcc/ad_test/ -I/usr/share/sdcc/include/pic16/
> -oad_test.hex adtest.o
> warning: processor mismatch in "/usr/bin/../share/s
Sorry, I am newbie and I am playing with Piklab + sdcc.
This little testing code:
#include"pic18f1220.h"
#include "adc.h"
void main() {
long temp;
adc_open(ADC_CHN_1, ADC_FOSC_4, ADC_CFG_5A_0R, ADC_FRM_RJUST);
while (adc_busy()) ;
temp = (adc_read());
}
I can compile it,