Menu

GCBasic and PIC16F887

2010-11-09
2013-05-30
  • Nobody/Anonymous

    I'm making my first steps with GCB. In the past I wrote some assembler programs using

    MPASM. I use an emperimental board with PIC 16F887, so I tried to change one of the

    demo-programs to that PIC.

    It was BlinkLed.txt, which I converted from 16F819 to 16F887.

    So I changed

    #chip 16F819, 20
    to
    #chip 16F887, 4

    After running GCB I had a long error-list, here is some of that listing:

    ompiled.asm:8:Error  Unknown processor.
    C:\Programme\gputils\header\P16F887.inc:553:Error  Processor type is undefined.
    C:\Programme\gputils\header\P16F887.inc:554:Error  Processor type is undefined.
    compiled.asm:10:Error  Processor type is undefined.

    The needed processor-files are includet in my system, chipdata has a file called

    16f887.dat and header contents a file called p16f887.inc.

    So I don't understand thar error-mesages.

    GCB did understand that "#chip 16F887, 4", in the .asm file I found the right

    configuration word, depending to that PIC:

    #include <P16F887.inc>
    __CONFIG _CONFIG1, _XT_OSC & _WDT_OFF & _MCLRE_OFF & _LVP_OFF

    So what is the problem???

    Juergen

     
  • Nobody/Anonymous

    You need to download the latest gputils device files from their site.  The device files were updated I think at the beginning of this year.  MPASM and the internal assembler are ready to go in this respect.

    Kent

     
  • Nobody/Anonymous

    Thanks Kent, it worked!

    juergen

     

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.