problem with pic16f628a (by joao)
Hello, I made a program to count two variables using two inputs. These variables control three outputs. The first output is activated when the two variables are equal, the second is activated when the first variable is greater than 2, and the third is activated when the second variable is greater than 2. When I simulated the program on LDmicro, he was OK, but when I simulate on proteus, only the first output was working, the other did not work ... The PIC was 16F628A. My program is attached.
(no subject) (by joao)
I tried with your program but it continues with the same problem, if I write the program in C + + it works on proteus, is it a problem in LDmicro? I don't have the PIC recorder yet, so I could not test ...
(no subject) (by MGP)
No, it's a problem in Proteus, it works on my breadboard.
Simulation programs cannot simulate everything.
(no subject) (by Martin Torres Fortelli (torres.electronico))
hola JAO, estas teniendo en cuenta que cuando restas, quizas estes restando (-1) a cero? el resultado es negativo y por ende, quizas ahi arranque el problema...Yo asignaria primero un numero de inicio a la variable carroza (por ejemplo 1) y probaria hacer correr el programa...saludos