Menu

Config Settings for 12F683

Help
Keith
2017-12-19
2017-12-19
  • Keith

    Keith - 2017-12-19

    I'm busy with another barmy Christmas project but the program size is to big for my handy 12F675's so I want to move upmarket a tad by using a 12F683 which has a 2k program memory. Changing the device name as below:

    ~#chip 12F683,4
    ~#config MCLRE=OFF, CP=OFF, WDT=OFF, OSC=INTOSC_OSC_NOCLKOUT

    Throws an error when I compile. 'Error: GCASM: Symbol OSCCAL has not been defined'

    Would some kind person please show me the errors of my ways or point me in the general direction of a more friendly device available in a 8Pin SOIC ( I allready have a suitable PCB)

     
    • Anobium

      Anobium - 2017-12-19

      Datasheet or the PIC microcontroller specific dat file rock

      :-)

      #chip 12F683,4
      #config MCLRE=OFF, CP=OFF, WDT=OFF, OSC=INTRC_OSC_NOCLKOUT
      
       
  • Keith

    Keith - 2017-12-19

    Not quite sure what you mean Evan, The line in the #config string is exactly what I'm using which is preventing me from compiling the project. Or, are you telling me to RTDF??? (Read the Datasheet First)

     
    • Anobium

      Anobium - 2017-12-19

      Upgrade to the latest build please - as this works on the latest release.

      Could be:
      updated dat file
      the changes to system.h
      or, the compiler

      Update is the fastest.

       
  • William Roth

    William Roth - 2017-12-19

    PIC12F683 has no OSCCAL register. Something in code calling the register that does not exist.

    Upgrade to latest version of Great Cow BASIC. And/or remove any references to OSCCAL in code that you may have added..

    If you have no reference to OSCCAL in the part of your code that we cannot see, then the mostl likely culprit is system.h.. Has it ever been mnodified?

    Just tested on clean install of Great Cow BASIC Ver98.01 and I have no error.

     

    Last edit: William Roth 2017-12-19

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.