Menu

Reporgraming 08M2 as 12F1840, not working

Help
Paul Haug
2018-05-19
2018-05-19
  • Paul Haug

    Paul Haug - 2018-05-19

    In trying to use an 08M2 chip as it's basic chip (12F1840) I seem to be having trouble with the simpilist code possible. I just need to control a single output bit. Assy and hex complile work fine, down to chip by pickit3 works ok, no errors.
    But I cannot seem to flip the single port bit on pin 5 (PortA.2 ) but it just stys low. Checked the wiring many times and tried 3 chipss (08M2).
    I belive these chips can be reprogrammed by GCB, I hope so as I have a bunch.
    Does anything about the code jump out as a problem ?
    Code attached

     

    Last edit: Paul Haug 2018-05-19
  • David Stephenson

    You seem to have FanCntl as an input when you are trying to use it as an output.

     
  • Paul Haug

    Paul Haug - 2018-05-19

    Bingo, you are so right. Sometimes I get so fix on solving a problem trying to fix it in the code I don't carfully look at the code setups.
    Many thanks. It's working, now I can get back to writing the rest of the code.
    Just as a note: I am aware once programed with GCB, it is no longer a PicAxe device.

     

    Last edit: Paul Haug 2018-05-20

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.