Menu

Light Logger Example with PIC12F1840 error ??

Help
Paul Haug
2017-04-12
2017-04-12
  • Paul Haug

    Paul Haug - 2017-04-12

    I currently have a board using the pixaxe 08m2, now I want to use GCB and I understand the 12F1840 is the same chip used for the 08M2.
    My board has two a/d channels in use, so to change over to GCB I thought I would use the light logger example to start with. But changing the chip type from 16F819 to a 12F1840, it assembles ok but when compiling to hex file it states "Error Symbol TRISB not defined.
    I can post the code here but it is the code used in "Light Logger"
    Only change is the chip type.
    .
    Compiler V 0.97.01 2017-02-20
    .
    -
    EDIT: Found it, light logger was using a nonexsisting port on 12F1840.

     

    Last edit: Paul Haug 2017-04-12
  • Anobium

    Anobium - 2017-04-12

    Good catch.

     

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.