Menu

Cannot compile 10F322, 10LF322, 10F320, and 10LF320 with 31KHz OSC in GCGB. Other frequencies work.

2022-05-26
2022-05-26
  • Dave Schindel

    Dave Schindel - 2022-05-26

    Hi, I get an error message in Great Cow Graphical Basic if I set the INTOSC to 31KHz. The message says that this frequency is not supported but the data sheet does indicate this frequency can be used and would allow me to run the chip at the lowest possible power. The chips I was working with are the: 10F322, 10LF322, 10F320, and 10LF320. There may be other chips that could have a similar problem. If I select 250KHz things work fine.

     
  • Anobium

    Anobium - 2022-05-26

    Dave. thanks for finding the error. Seriously. It will be fixed in the next release.

    Meanwhile, do this edit DAt for the chip. So, like, 10F322.dat in the chipdata folder and add the text in bold below. And, support will be added.

    --- find this text.
    'This constant is exposed with only the first parameter (if more than one)
    IntOsc=16, 8, 4, 2, 1, 0.5, 0.25, 0.125

    '31kSupport is exposed as Chip31Kconfig, Chip31Kregister, Chip31KValue
    31kSupport=INTOSC,OSCCON,0

    --- put before this text.
    'This constant is exposed as ChipPins
    Pins=8**

     

    Last edit: Anobium 2022-05-26

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.