Hello,
I am having some trouble with PortA inputs on the PIC16F15324 part.
Attached is a simple program that turns an LED on when the push button is pressed.
The LED turns off when the button is released. This program simulates fine inside of flowcode.
However the program does not run in real hardware. After some playing around a bit I found that the problem was PortA.
When the button is connected to PortA,5 the program simulates fine but does not run in hardware.
When the button is connected to PortC,5 everything works fine.
Any thoughts are appreciated.
Thanks
PI16F324 PortA
-
- Posts: 14
- http://meble-kuchenne.info.pl
- Joined: Tue Dec 08, 2020 8:29 pm
- Has thanked: 1 time
- Been thanked: 1 time
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: PI16F324 PortA
Hi
In configurations (Build > Project Options) you have Port A5 set as "External Clock In". That's probably your problem.
Regards
In configurations (Build > Project Options) you have Port A5 set as "External Clock In". That's probably your problem.
Regards
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times