pROBLEM WITH 12f629

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
dedajozo
Posts: 45
Joined: Sun Jan 03, 2016 5:48 pm
Has thanked: 8 times
Been thanked: 6 times

pROBLEM WITH 12f629

Post 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
Attachments
Webasto1.fcfx
(6.6 KiB) Downloaded 318 times

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

Re: pROBLEM WITH 12f629

Post 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
Martin

dedajozo
Posts: 45
Joined: Sun Jan 03, 2016 5:48 pm
Has thanked: 8 times
Been thanked: 6 times

Re: pROBLEM WITH 12f629

Post 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.

dedajozo
Posts: 45
Joined: Sun Jan 03, 2016 5:48 pm
Has thanked: 8 times
Been thanked: 6 times

Re: pROBLEM WITH 12f629

Post by dedajozo »

I also tried with attiny 2313 works on AVR board but dont work on my experimental board. What am I doing wrong.
Attachments
Webasto.fcfx
(10.29 KiB) Downloaded 340 times
webasto (1).jpg
webasto (1).jpg (21.44 KiB) Viewed 12851 times
Last edited by dedajozo on Tue Jul 11, 2017 1:48 pm, edited 1 time in total.

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

Re: pROBLEM WITH 12f629

Post 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!
Martin

dedajozo
Posts: 45
Joined: Sun Jan 03, 2016 5:48 pm
Has thanked: 8 times
Been thanked: 6 times

Re: pROBLEM WITH 12f629

Post 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.

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

Re: pROBLEM WITH 12f629

Post 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
Martin

dedajozo
Posts: 45
Joined: Sun Jan 03, 2016 5:48 pm
Has thanked: 8 times
Been thanked: 6 times

Re: pROBLEM WITH 12f629

Post 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.
Attachments
file-1_Easy-Resize.com.jpg
file-1_Easy-Resize.com.jpg (93.09 KiB) Viewed 12846 times

dedajozo
Posts: 45
Joined: Sun Jan 03, 2016 5:48 pm
Has thanked: 8 times
Been thanked: 6 times

Re: pROBLEM WITH 12f629

Post by dedajozo »

Medelec THX, I found where I'm mistaking. 1 k resistor missing. thx.

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

Re: pROBLEM WITH 12f629

Post by medelec35 »

Glad, you're all sorted now.
Thanks for letting us know,

Martin
Martin

dedajozo
Posts: 45
Joined: Sun Jan 03, 2016 5:48 pm
Has thanked: 8 times
Been thanked: 6 times

Re: pROBLEM WITH 12f629

Post by dedajozo »

But what do you think about compiling error?
File is in the atachment. FC6 copmiling working normaly FC7 doesnt work.
Attachments
flasher austrija.fcfx
(10.1 KiB) Downloaded 306 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: pROBLEM WITH 12f629

Post by Benj »

Hello,

WOW that's a bright LED :D
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

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

Re: pROBLEM WITH 12f629

Post 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
Martin

dedajozo
Posts: 45
Joined: Sun Jan 03, 2016 5:48 pm
Has thanked: 8 times
Been thanked: 6 times

Re: pROBLEM WITH 12f629

Post by dedajozo »

Hello Medelec,

I compile it normaly with FC6 and FC7. But cant get it work when compiled in FC7.
Attachments
rsz_screenshot_3.png
(160.27 KiB) Downloaded 5989 times

dedajozo
Posts: 45
Joined: Sun Jan 03, 2016 5:48 pm
Has thanked: 8 times
Been thanked: 6 times

Re: pROBLEM WITH 12f629

Post 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 ?

Slobodan
Posts: 25
Joined: Sat Sep 30, 2017 11:43 am
Has thanked: 8 times
Been thanked: 4 times

Re: pROBLEM WITH 12f629

Post 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

Post Reply