Menu

16F77 Missing bit in set command

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

    Trying to blink an LED and im getting the following error

    system.h (122): Missing bit in SET command

    Any ideas, think my code is ok?

    #chip 16F77,20
    #config XT_OSC

    dir PORTA.1 OUT

    Main:

    WAIT 1 S
    SET PORTA.1 ON
    wait 1 s
    SET PORTA.1 OFF

    goto MAIN

    thanks in advance, Dan

     
    • Nobody/Anonymous

      anyone? someone?

      thanks

      Dan

       
    • Santiago

      Santiago - 2009-02-19

      Hi...

      Your code compiles perfectly in my system.
      Perhaps you have to download last update.

      But your code will not run as 20MHz clock need: #config HS_OSC

       
    • kent_twt4

      kent_twt4 - 2009-02-19

      Also no problem, compiling with MPASM assembler.  Check to make sure you have the 16f77 definition file in the chipdata folder.  If using GCASM, you may have found a bug, and should report to the Compiler forum.  This would be especially true if you have successfully programmed other chip models.  Another way to find out would be to reinstall GCBasic (along with the update zip) and declare the MPASM assembler.

       

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.