Hi All, I just downloaded GCBasic and my first project is to flash a LED using a 12F683 pic.
My code is as follow. It complies in GCBasic but when i try creating the hex using MPASMWIN.exe it get stuck.
Please could you help me get this project started so I can start playing around and learning more. Thx
-------------------- #chip 12F683, 4
dir GPIO.1 out
MAIN: set GPIO.1 on Wait 1 sec set GPIO.1 off Wait 1 sec goto MAIN
If you are trying to use the internal osc, then you will need to add the config line: #config _INTRC_OSC_NOCLKOUT
If not, then a better description of your problem is required.
Thanks for your reply. I got this figured out, my error I forgot to install the lib files so compilation wasn't creating the '.hex' files.
I was snooping on another post and found that i also needed '#config osc = int' to get the internal osc working.
My first blink project works.
Now onto making my code do more...
Thanks
Log in to post a comment.
Hi All, I just downloaded GCBasic and my first project is to flash a LED using a 12F683 pic.
My code is as follow. It complies in GCBasic but when i try creating the hex using MPASMWIN.exe it get stuck.
Please could you help me get this project started so I can start playing around and learning more.
Thx
--------------------
#chip 12F683, 4
dir GPIO.1 out
MAIN:
set GPIO.1 on
Wait 1 sec
set GPIO.1 off
Wait 1 sec
goto MAIN
If you are trying to use the internal osc, then you will need to add the config line:
#config _INTRC_OSC_NOCLKOUT
If not, then a better description of your problem is required.
Thanks for your reply. I got this figured out, my error I forgot to install the lib files so compilation wasn't creating the '.hex' files.
I was snooping on another post and found that i also needed '#config osc = int' to get the internal osc working.
My first blink project works.
Now onto making my code do more...
Thanks