i get errors saying the processor type is undefined when i compile this:
#chip 10F220, 8 'mhz
#config MCLRE=off, WDT=off
'Main routine
Start:
set GPIO.1 on
wait 35 ms
wait 255 us
wait 255 us
wait 204 us
set gpio.1 off
wait 35 ms
wait 255 us
wait 255 us
wait 204 us
goto start
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That is an error on the assembler side, not the compiler.
I have the same error in other compilers when assembling with gputils, looks like 10F220 is not supported by gputils, perhaps Mpasm works for this Pic, but i have no idea.
Is possible that newer versions of gputils support this Pic, see this:
_____________________________________________________________________
Recent NEWS
March 13, 2009 -- gputils-0.13.7 Released
Added support for all processors supported by MPLAB 8.20 (except eeprom16 and related).
Added support for "LIST M=?" directive.
Fixed several bugs.
Indeed, GCBasic/MPASM works with the 10fXXX series. At least as far as blinking an LED on and off. You will find it necessary to set the port dir on the baseline devices, like; dir GPIO b'001000' for an all digital output configuration.
Glad to see GPUTILS expanding their device selection.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i get errors saying the processor type is undefined when i compile this:
#chip 10F220, 8 'mhz
#config MCLRE=off, WDT=off
'Main routine
Start:
set GPIO.1 on
wait 35 ms
wait 255 us
wait 255 us
wait 204 us
set gpio.1 off
wait 35 ms
wait 255 us
wait 255 us
wait 204 us
goto start
That is an error on the assembler side, not the compiler.
I have the same error in other compilers when assembling with gputils, looks like 10F220 is not supported by gputils, perhaps Mpasm works for this Pic, but i have no idea.
Is possible that newer versions of gputils support this Pic, see this:
_____________________________________________________________________
Recent NEWS
March 13, 2009 -- gputils-0.13.7 Released
Added support for all processors supported by MPLAB 8.20 (except eeprom16 and related).
Added support for "LIST M=?" directive.
Fixed several bugs.
Source: http://gputils.sourceforge.net/
_____________________________________________________________________
Indeed, GCBasic/MPASM works with the 10fXXX series. At least as far as blinking an LED on and off. You will find it necessary to set the port dir on the baseline devices, like; dir GPIO b'001000' for an all digital output configuration.
Glad to see GPUTILS expanding their device selection.