OSC=EC and DEBUG=OFF and SYSLCDTEMP.0 not valid

Ed LeBel
2013-09-11
2013-09-14
  • Ed LeBel
    Ed LeBel
    2013-09-11

    I am programming a PIC16F887 with Great Cow Graphical Basic.
    OSC=EC and DEBUG=OFF both say "configuration setting not valid".

    config DEBUG=OFF, LVP=OFF, FCMEN=OFF, IESO=OFF, BOR=OFF, CPD=OFF, CP=OFF, MCLRE=OFF, PWRTE=ON, WDT=OFF, OSC=EC, WRT=OFF

    The 16F887.dat file has "OSC=EC" in it and I added "DEBUG=OFF" to the file.

    I also get a "SYSLCDTEMP.0 not valid" error.
    Could this be the "LCD_NO_WR" gone wrong?
    I can try assigning a pin to "LCD_WR" but I want to ground the WR line.

    define LCD_NO_RW 'Needed when RW is grounded

    define LCD_IO 4

    define LCD_RS PORTB.4

    define LCD_Enable PORTB.5

    define LCD_DB4 PORTB.0

    define LCD_DB5 PORTB.1

    define LCD_DB6 PORTB.2

    define LCD_DB7 PORTB.3

    I am also not getting a .hex file.
    I do get .lst and .asm files.

     
  • Anobium
    Anobium
    2013-09-13

    Quick question for you.

    Have you read the help file?

     
  • Anobium
    Anobium
    2013-09-14

    Have a look in the help file for #chip and #config.

    I guess that you are moving from a different compiler?

    Typically, your program needs to start like this, you should do a search in the help file for 16f88 - there a number of examples that set up this device.

    #chip 16F887,4
    #config OSC=INTRC_OSC_NOCLKOUT,MCLRE=OFF,WDT=OFF