pROBLEM WITH 12f629
Moderator: Benj
pROBLEM WITH 12f629
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
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
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
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
Re: pROBLEM WITH 12f629
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.
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
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 (21.44 KiB) Viewed 12852 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
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!
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
Re: pROBLEM WITH 12f629
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.
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
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
Also there needs to be a current limiting resistor connected to LED
Martin
Re: pROBLEM WITH 12f629
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 (93.09 KiB) Viewed 12847 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
But what do you think about compiling error?
File is in the atachment. FC6 copmiling working normaly FC7 doesnt work.
File is in the atachment. FC6 copmiling working normaly FC7 doesnt work.
- Attachments
-
- flasher austrija.fcfx
- (10.1 KiB) Downloaded 306 times
- 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
Hello,
WOW that's a bright LED
Maybe try to apply the fixes posted here and hopefully this will solve things for you.
viewtopic.php?f=63&t=18760
WOW that's a bright LED
What compilation errors are you getting. Just tested the file and it's compiling correctly for me in v7.FC6 copmiling working normaly FC7 doesnt work.
Maybe try to apply the fixes posted here and hopefully this will solve things for you.
viewtopic.php?f=63&t=18760
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
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
I Can't get FC6 to compile as I get:
Could not compile with properties or supplementary code fix.
Martin
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
Martin
Martin
Re: pROBLEM WITH 12f629
Hello Medelec,
I compile it normaly with FC6 and FC7. But cant get it work when compiled in FC7.
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
Re: pROBLEM WITH 12f629
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 ?
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
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
http://ww1.microchip.com/downloads/en/D ... 80125H.pdf
http://ww1.microchip.com/downloads/en/D ... 80329B.pdf