Page 1 of 1
pROBLEM WITH 12f629
Posted: Mon Jul 10, 2017 2:29 pm
by dedajozo
Hello,
I have multiple projects with FC6 and FC7 with chips 16F877, atmega32 etc, and everything works fine.
But I'm having problem with 12F629. Could somebody take a look and tell me why my program is not working. It is working fine with atmega32 and 16F877.
THX
Re: pROBLEM WITH 12f629
Posted: Tue Jul 11, 2017 8:23 am
by medelec35
Hi dedajozo,
In what way is your project not working?
LED not light at all?
Can you post a full circuit diagram showing how the switches are wired.
Also have you tried
one second flasher to make sure hardware is running at the correct speed?
If LED not on when expected, can you measure the voltages of GP0 to GP2 and make sure they are as expected.
Martin
Re: pROBLEM WITH 12f629
Posted: Tue Jul 11, 2017 12:36 pm
by dedajozo
Hello Medelec,
I dont know why but it dont works. Now I tried to make same program on attiny13 and when I test it on Easy AVR board, it works normaly, but when I put it on experimental board it doesnt work.
Also when I trie to recompile my old program with FC7, but program is made in FC6, it doesnt work. Only works when I compile it with FC6.
Re: pROBLEM WITH 12f629
Posted: Tue Jul 11, 2017 1:41 pm
by dedajozo
I also tried with attiny 2313 works on AVR board but dont work on my experimental board. What am I doing wrong.
Re: pROBLEM WITH 12f629
Posted: Tue Jul 11, 2017 1:44 pm
by medelec35
So when you compile the same flowchart with FC6 hardware works.
When compile with FC7 hardware does not work.
Is that correct?
Also you have not got pull down resistors on any of the switches,
It's vital they are fitted!
Re: pROBLEM WITH 12f629
Posted: Tue Jul 11, 2017 1:51 pm
by dedajozo
This program doesnt work either on FC6 or FC7. I put resistors just didnt draw it on schematics.
Other program works when I compile it wit FC6 an when compile with FC7 doesnt work.
Re: pROBLEM WITH 12f629
Posted: Tue Jul 11, 2017 1:51 pm
by medelec35
For pull-down resistors see
https://www.flowcode.co.uk/wikiv7/index. ... _Switches)
Also there needs to be a current limiting resistor connected to
LED
Re: pROBLEM WITH 12f629
Posted: Tue Jul 11, 2017 1:53 pm
by dedajozo
Here is picture where you can see that it is working on EASY AVR board , but when I put it on experimental board it doesnt work.
Re: pROBLEM WITH 12f629
Posted: Tue Jul 11, 2017 2:04 pm
by dedajozo
Medelec THX, I found where I'm mistaking. 1 k resistor missing. thx.
Re: pROBLEM WITH 12f629
Posted: Tue Jul 11, 2017 2:10 pm
by medelec35
Glad, you're all sorted now.
Thanks for letting us know,
Martin
Re: pROBLEM WITH 12f629
Posted: Tue Jul 11, 2017 2:14 pm
by dedajozo
But what do you think about compiling error?
File is in the atachment. FC6 copmiling working normaly FC7 doesnt work.
Re: pROBLEM WITH 12f629
Posted: Tue Jul 11, 2017 3:17 pm
by Benj
Hello,
WOW that's a bright LED
FC6 copmiling working normaly FC7 doesnt work.
What compilation errors are you getting. Just tested the file and it's compiling correctly for me in v7.
Maybe try to apply the fixes posted here and hopefully this will solve things for you.
viewtopic.php?f=63&t=18760
Re: pROBLEM WITH 12f629
Posted: Tue Jul 11, 2017 4:11 pm
by medelec35
I Can't get FC6 to compile as I get:
Code: Select all
Starting preprocessor: "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\pp.exe" "flasher austrija.c" -i "C:\Program Files (x86)\Flowcode 6\compilers\pic\boostc\include" -d _PIC12F609 -la -c2 -o "flasher austrija.pp" -v -d _BOOSTC -d _PIC16 -d _CHAR_INDEX
..................
flasher austrija.c(136:25): error: unknown identifier 'FCP_TRIS_A'
flasher austrija.c(136:25): error: invalid operand 'FCP_TRIS_A'
flasher austrija.c(136:36): error: failed to generate expression
flasher austrija.c(136:56): error: unknown identifier 'FCP_PORT_A'
flasher austrija.c(136:56): error: invalid operand 'FCP_PORT_A'
flasher austrija.c(136:67): error: failed to generate expression
flasher austrija.c(136:56): internal error: failed to generate conditional expression
flasher austrija.c(136:53): error: failed to generate expression
flasher austrija.c(146:29): error: unknown identifier 'FCP_TRIS_A'
flasher austrija.c(146:29): error: invalid operand 'FCP_TRIS_A'
flasher austrija.c(146:40): error: failed to generate expression
flasher austrija.c(146:60): error: unknown identifier 'FCP_PORT_A'
flasher austrija.c(146:60): error: invalid operand 'FCP_PORT_A'
flasher austrija.c(146:71): error: failed to generate expression
flasher austrija.c(146:60): internal error: failed to generate conditional expression
flasher austrija.c(146:57): error: failed to generate expression
flasher austrija.c(171:25): error: unknown identifier 'FCP_TRIS_A'
flasher austrija.c(171:25): error: invalid operand 'FCP_TRIS_A'
flasher austrija.c(171:36): error: failed to generate expression
flasher austrija.c(171:56): error: unknown identifier 'FCP_PORT_A'
flasher austrija.c(171:56): error: invalid operand 'FCP_PORT_A'
flasher austrija.c(171:67): error: failed to generate expression
flasher austrija.c(171:56): internal error: failed to generate conditional expression
flasher austrija.c(171:53): error: failed to generate expression
flasher austrija.c(181:29): error: unknown identifier 'FCP_TRIS_A'
flasher austrija.c(181:29): error: invalid operand 'FCP_TRIS_A'
flasher austrija.c(181:40): error: failed to generate expression
flasher austrija.c(181:60): error: unknown identifier 'FCP_PORT_A'
flasher austrija.c(181:60): error: invalid operand 'FCP_PORT_A'
flasher austrija.c(181:71): error: failed to generate expression
flasher austrija.c(181:60): internal error: failed to generate conditional expression
flasher austrija.c(181:57): error: failed to generate expression
flasher austrija.c(206:25): error: unknown identifier 'FCP_TRIS_A'
flasher austrija.c(206:25): error: invalid operand 'FCP_TRIS_A'
flasher austrija.c(206:36): error: failed to generate expression
flasher austrija.c(206:57): error: unknown identifier 'FCP_PORT_A'
flasher austrija.c(206:57): error: invalid operand 'FCP_PORT_A'
flasher austrija.c(206:68): error: failed to generate expression
flasher austrija.c(206:57): internal error: failed to generate conditional expression
flasher austrija.c(206:54): error: failed to generate expression
flasher austrija.c(216:29): error: unknown identifier 'FCP_TRIS_A'
flasher austrija.c(216:29): error: invalid operand 'FCP_TRIS_A'
flasher austrija.c(216:40): error: failed to generate expression
flasher austrija.c(216:61): error: unknown identifier 'FCP_PORT_A'
flasher austrija.c(216:61): error: invalid operand 'FCP_PORT_A'
flasher austrija.c(216:72): error: failed to generate expression
flasher austrija.c(216:61): internal error: failed to generate conditional expression
flasher austrija.c(216:58): error: failed to generate expression
flasher austrija.c success
failure
Completed BoostC compilation, return = 1
Could not compile with properties or supplementary code fix.
Martin
Re: pROBLEM WITH 12f629
Posted: Sun Jul 30, 2017 7:11 pm
by dedajozo
Hello Medelec,
I compile it normaly with FC6 and FC7. But cant get it work when compiled in FC7.
Re: pROBLEM WITH 12f629
Posted: Wed Sep 27, 2017 7:03 pm
by dedajozo
Hello,
Problem with 12F629 still actual.
I tried few projects with this chip and program doesnt work when compiled with FC7, works normaly when compiled with FC6.
Enybody came on that problem ?
Re: pROBLEM WITH 12f629
Posted: Sat Sep 30, 2017 6:17 pm
by Slobodan
Hi. I don't know about code, but this PIC has some silicon anomalies, and Microchip has published errata files on it. Maybe some of that is causing you issues.
http://ww1.microchip.com/downloads/en/D ... 80125H.pdf
http://ww1.microchip.com/downloads/en/D ... 80329B.pdf