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]
Problem with MCLR
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
This may have something to do with the inbuilt pull up resistors present in the PICmicros. Im not sure but I think that Flowcode may enable or disable them while your assembler program would not. If you replace your 1K resistor connected between Ground and GP3 with a 4.7K or higher resistor this may allow your switch to function again. If not then send me your program and I will have a look at it.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
My email is ben@matrixmultimedia.co.uk
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel