12F675 Problem
Posted: Sun May 27, 2007 2:45 pm
I wrote a simple test program for a 12F675. Basically the program consist out of a loop that contiously read the value on A3 (Pin 4) and if found to be "1" then it will light up an LED on A5 (Pin 2) for 2 seconds.
When I simulate the program in Flowcode then it works perfectly, but on the real device I just can not get it to work! If I read the input from A0 (Pin 7) then it works - but only then. It does not want to read the input from anywhere else.
The configuration settings are:
Oscillator: Internal RC No Clock
Watchdog Timer, Power Up Timer, Brown Out Detect, Code Protect, Data EE Read Protect: All Off
Master Clear Enable: Internal
Bandgap Calibration Bits: Highest Bandgap Voltage
Operating Frequency is 4 MHz
I am using Flowcode v3.1.0.31 but I program the 12F675 with MPLAB IDE v7.50 and PicStart Plus.
Questions:
1) I am using the default Compiler and linker settings (boostc.pic16.flowcode.exe), should I use different settings?
2) Is this a bug, or am I doing something wrong?
Regards
Jan
When I simulate the program in Flowcode then it works perfectly, but on the real device I just can not get it to work! If I read the input from A0 (Pin 7) then it works - but only then. It does not want to read the input from anywhere else.
The configuration settings are:
Oscillator: Internal RC No Clock
Watchdog Timer, Power Up Timer, Brown Out Detect, Code Protect, Data EE Read Protect: All Off
Master Clear Enable: Internal
Bandgap Calibration Bits: Highest Bandgap Voltage
Operating Frequency is 4 MHz
I am using Flowcode v3.1.0.31 but I program the 12F675 with MPLAB IDE v7.50 and PicStart Plus.
Questions:
1) I am using the default Compiler and linker settings (boostc.pic16.flowcode.exe), should I use different settings?
2) Is this a bug, or am I doing something wrong?
Regards
Jan