Menu

Chip datafile missing SPBRG on specific 16f devices.

Anobium
2015-09-24
2015-10-03
  • Anobium

    Anobium - 2015-09-24

    See following thread

    This is affecting:
    16f1454.dat
    16f1455.dat
    16f1458.dat
    16f1459.dat
    16f1508.dat
    16f1509.dat

     
    • Anobium

      Anobium - 2015-10-03

      Resolved, see below.

       
  • Anobium

    Anobium - 2015-09-24

    Reason: the SPBRGL and SPBRGH variables are defined in the [registers] section of the .dat files but not SPBRG which should point to the same address as SPBRGL.
    In the 0.94 version these are the dat files in which SPBRGL is defined but not SPBRG:*

    Workaround before the Great Cow Basic v0.95 September 2015 or later is to manually add SPBRG just before SPBRGL and use the SPBRGL address. An example is shown below;

    add to your program

    ~~~~
    #define SPBRG SPBRGL
    ~~~~

     

    Last edit: Anobium 2015-10-03
  • Anobium

    Anobium - 2015-10-03

    Resolved in USART.H in Great Cow Basic v0.95 September 2015. No need to add workaround to your programs.

     

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.