EE-Prom 30F6012A

Support-Forum für Deutschsprachige, die in ihrer Muttersprache schreiben möchten.

Moderator: Benj

Post Reply
saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

EE-Prom 30F6012A

Post by saschech@gmx.de »

Hallo Matrix Team

Möchte im internen EE_Prom gerne die Zustandswerte für ein paar Tasten ablegen.
Es funktioniert im internen EE_prom eines 18F67K22 zur vollen Zufriedenheit.
Habe den Code in DS-Pic 30F6012A importiert und muß feststellen,das das eeprom-macro nicht richtig funktioniert!(manchmal ok manchmal nicht ok).
Ursprüngliche Adresse 1 bis 6.Habe dann Adresse 11 bis 16 genommen mit dem selben Ergebnis.
Habe auf meinem Print ein I2C 24FC1025_EEprom integriert,das EE-prom macro gegen entsprechende i2c-Macros ausgetauscht und es funktioniert!
das heißt für mich,es muß ein Fehler im EE_Prom Macro für den 30F6012A sein.Bitte um Hilfe.

Gruss Wolfgang

User avatar
Steve
Matrix Staff
Posts: 3424
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: EE-Prom 30F6012A

Post by Steve »

Danke, Wolfgang. Wir werden untersuchen.

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: EE-Prom 30F6012A

Post by Benj »

Hallo Wolfgang,

Es gibt einen Unterschied zwischen den EEPROM auf der 16-Bit-Geräten und dem 8-Bit-Geräten, vor allem, dass die Größe der Daten 16-Bit-und nicht 8-Bit ist. Könnte dies die Ursache des Problems? Sie sagen, dass es manchmal funktioniert und manchmal nicht. Können Sie sagen, unter welchen Umständen es korrekt funktioniert nicht. ZB gibt es eine reproduzierbare Abfolge von Ereignissen, die einen Fehler verursacht?


Hello Wolfgang,

There is a difference between the EEPROM on the 16-bit devices and the 8-bit devices, mainly that the size of the data is 16-bit and not 8-bit. Could this be the cause of your problem? You say it sometimes works and sometimes doesn't. Can you tell under which circumstances it fails to work correctly. Eg is there a replicable sequence of events that causes a failure?

saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

Re: EE-Prom 30F6012A

Post by saschech@gmx.de »

Hallo Benj

Habe die Variablen für das EE_Prom Macro von Byte in Integer umgewandelt >> jetzt scheint es zu gehen (kurztest).
Deine Vermutung scheint richtig zu sein!!!!

Ich lege nur eine "0x00000000" oder "0x00000001" in der Speicherzelle ab;
spielt da eine Rolle ob es Byte - oder Integer -Variablen sind ????
Ist es zwingend notwendig den Variablen-Type , welcher in Parameters vorgeschlagen wird zu verwenden?! (bezieht sich auf alle Macros)
Flowcode nimmt beide ohne zu murren.

Gruss Wolfgang

Post Reply