Problem with MCLR
Posted: Sat Jan 06, 2007 4:37 pm
Hi, I am using PIC12F675 for de following program.
In the port a i have LEDs in GP1, GP2, GP4, GP5, And GP0 is an analog imput. GP3 have a Push botton to 5v and a resistor 1k to negative.
The program work like this. When a push the botton, it put 1 in GP3 them, the program read the analog imput and storage the value in the EEPROM. The process is the same for 4 time. It is the programation of the micro. When it finish, making change in the value of the analog imput the lesd are on or of depending the value of the analog imput (GPO).
The problem:
Ever the program read 1 in the GP3 and the program are no funtioning.
I traied using the GP3 like MCLR and it funtion very good, when i press the botton the microcontroller are reseted without problem.
I maked the program in assembler with the same hardware and it work very good.
Note: I have flowcode 2.1 and 3.0, i traied.
What can i do?
[/img]
In the port a i have LEDs in GP1, GP2, GP4, GP5, And GP0 is an analog imput. GP3 have a Push botton to 5v and a resistor 1k to negative.
The program work like this. When a push the botton, it put 1 in GP3 them, the program read the analog imput and storage the value in the EEPROM. The process is the same for 4 time. It is the programation of the micro. When it finish, making change in the value of the analog imput the lesd are on or of depending the value of the analog imput (GPO).
The problem:
Ever the program read 1 in the GP3 and the program are no funtioning.
I traied using the GP3 like MCLR and it funtion very good, when i press the botton the microcontroller are reseted without problem.
I maked the program in assembler with the same hardware and it work very good.
Note: I have flowcode 2.1 and 3.0, i traied.
What can i do?
[/img]