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
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
You seem to have FanCntl as an input when you are trying to use it as an output.
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