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?
Flowcode 4.5 and PIC16F648 - how to program
Moderator: Benj
-
- Posts: 39
- Joined: Tue Feb 12, 2013 9:07 am
- Has thanked: 4 times
- Been thanked: 5 times
- Contact:
Flowcode 4.5 and PIC16F648 - how to program
- Attachments
-
- automat9d.fcf
- (38.66 KiB) Downloaded 293 times
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: Flowcode 4.5 and PIC16F648 - how to program
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?
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?
-
- Posts: 39
- Joined: Tue Feb 12, 2013 9:07 am
- Has thanked: 4 times
- Been thanked: 5 times
- Contact:
Re: Flowcode 4.5 and PIC16F648 - how to program
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.
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.
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: Flowcode 4.5 and PIC16F648 - how to program
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
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
-
- Posts: 39
- Joined: Tue Feb 12, 2013 9:07 am
- Has thanked: 4 times
- Been thanked: 5 times
- Contact:
Re: Flowcode 4.5 and PIC16F648 - how to program
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ę.
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ę.
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: Flowcode 4.5 and PIC16F648 - how to program
Miło wiedzieć, że posortowane. Daj nam znać, jeśli potrzebujesz innej pomocy.