programation failing

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
Daniel32
Posts: 1
Joined: Fri Feb 28, 2020 8:50 pm
Contact:

programation failing

Post by Daniel32 »

Hello!
So my problem is that when check my program in the simulation works fine, but when I do it in the PIC it fail, the PIC that I'm using is the PIC16F628A.

My program consist that when I press a button a counter will be activated, so when my counter is 1 it would activate a condition that will turn on a sequence of leds. My problem is that when the pin RA4 have to turn on it does nothing but only happen in the PIC, in the simulation it turns on.
Here's my program.
Flowcode1.fcfx
(16.23 KiB) Downloaded 127 times
Thanks!

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: programation failing

Post by medelec35 »

To check chip is running correctly, have you tried the one sec flash test?
How have you wired your switch, with a pull-up or pull down resistor?
Is it only RA4 that not working and all the rest are?
Martin

Post Reply