16F628A EEPROM compile error.

Moderator: Benj

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

16F628A EEPROM compile error.

Post by medelec35 »

When using EEPROM component, flowchart does not successfully compile.
So I changed Define3=#define MX_EE_TYPE3
to
Define3=#define MX_EE_TYPE1
within attached 16F628A.fcd
Now flowchart compiles OK.

Unable to test with real hardware as I was PM'd by someone who could not compile flowchart, so I have not got correct chip to test with.
However It works in the simulator I use for testing.

Would someone who has 16F628A mind testing solution and confirm if works on real hardware please.


The test flowchart:
If EEPROM is reading and writing OK, then LEDS connected to RA0 and RA1 will both change state after 2 seconds.
LED connected to RA2 is just flashing at 1Hz to test configuration settings and OSC speed are correct.
Thanks

Martin
Attachments
16F628A_EEPROM test.fcf
(8 KiB) Downloaded 404 times
16F628A.fcd
(10.4 KiB) Downloaded 413 times
Martin

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

Re: 16F628A EEPROM compile error.

Post by medelec35 »

It has just been confirmed, using the attached fcd file will allow EEPROM to work on 16F628A hardware without any issues.

Martin
Martin

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: 16F628A EEPROM compile error.

Post by Benj »

Cheers Martin,

I will add this information to my working set of FCD files.

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

Re: 16F628A EEPROM compile error.

Post by medelec35 »

No problem Ben.
So long as it helps.

Martin
Martin

mauro
Posts: 8
Joined: Tue Jul 12, 2011 8:09 pm
Has thanked: 41 times
Been thanked: 1 time
Contact:

Re: 16F628A EEPROM compile error.

Post by mauro »

Thank you Martin,

Checked on hardware... all ok.. :D

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

Re: 16F628A EEPROM compile error.

Post by medelec35 »

mauro wrote:Thank you Martin,

Checked on hardware... all ok.. :D
Your welcome mauro.
Thanks for confirming fix works on hardware.

Martin
Martin

Post Reply