Page 1 of 1

Flowcode 4.5 and PIC16F648 - how to program

Posted: Fri Feb 22, 2013 6:41 pm
by siwo278
Hello

My English is poor, for which I apologize and please bear with us. "I painted" his first program in FLOWCODE 4.5 on PIC16F648A processor. The program inside the simulation works properly. After generating the hex file and programmed physical processor, its action is consistent with the expectation. Processor Configuration: Port A - digital input, digital output port B, the internal generator. Codeword 3F10. What can cause this condition. I put my file FCF. Have any of the distinguished colleagues, pointed to my mistakes and clues for correct programming of the processor?

Re: Flowcode 4.5 and PIC16F648 - how to program

Posted: Fri Feb 22, 2013 7:07 pm
by Enamul
Hi

Can you put some comment like what kind of problem you are facing in hardware? I have checked your configuration and seems OK. Atleast it should run but is there any program sequence it is missing or any logical problem it showing?

Re: Flowcode 4.5 and PIC16F648 - how to program

Posted: Fri Feb 22, 2013 7:27 pm
by siwo278
Hello

PortA hardware is tucked up with the 5K1 resistor to GND. The program apparently detecting the level of H on the port. When current is applied to the processor and pass through a macro "demo", the outputs portuB there are signs, although port_IN_A has not been activated. The power supply is properly filtered.

Re: Flowcode 4.5 and PIC16F648 - how to program

Posted: Fri Feb 22, 2013 8:52 pm
by Enamul
Hi
It's bit tough for me to understand what you write. Can you please write the info in your native language. I will translate that which i guess will be easier to understand. Sorry :oops:

Re: Flowcode 4.5 and PIC16F648 - how to program

Posted: Sun Feb 24, 2013 8:46 am
by siwo278
Witam

Znalazłam źródło problemu. Nie były to przyczyny sprzętowe, jak na początku sądziłam. Przyczyna leżała w kodzie programu, a dokładniej w braku wcześniejszej definicji wartości czterech zmiennych tz1,tz2,tz3,tz4.
Zmienne te w pierwszym momencie uruchomienia w realnym układzie przyjmowały dowolną wartość, stąd blednę działanie przy pierwszym uruchomieniu (w trakcie pracy zmienne te przyjmowały odpowiednią wartość).
Problem ten znalazłam dzięki podpowiedzi Kolegi Enamul. Który naprowadził mnie na to dzięki sugestii rozgraniczenia błędów oprogramowania od sprzętu.

Dziękuję.

Re: Flowcode 4.5 and PIC16F648 - how to program

Posted: Sun Feb 24, 2013 10:23 am
by Enamul
Miło wiedzieć, że posortowane. Daj nam znać, jeśli potrzebujesz innej pomocy.