Menu

12F683 - LED project. What is the error

Help
2009-02-28
2013-05-30
  • Nobody/Anonymous

    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

     
    • kent_twt4

      kent_twt4 - 2009-02-28

      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.

       
    • Nobody/Anonymous

      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.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.