Kommentar: Einfügen von HTML im Kommentar: Link einfügen: <a href="LINKURL" target="_blank">LINKTITEL</a> Bild einfügen: <img src="BILDURL"> Text formatieren: <b>fetter Text</b> <i>kursiver Text</i> <u>unterstrichener Text</u> Kombinationen sind auch möglich z.B.: <b><i>fetter & kursiver Text</i></b> C Quellcode formatieren: <code>Quellcode</code> BASIC Quellcode formatieren: <basic>Quellcode</basic> (Innerhalb eines Quellcodeabschnitts ist kein html möglich.) Wichtig: Bitte mache Zeilenumbrüche, bevor Du am rechten Rand des Eingabefeldes ankommst ! -> I > > > Hi all, > > > > > > I want to write signed integers to the internal EEPROM of the MEGA128 and then read them and > > > send them to the output window of the IDE. All this off course with minimal code (in cc). > > > I tried this: > > > > > > int i; > > > i = -42; > > > EEPROM_WriteWord(EEPROM_addr, i); > > > Msg_WriteInt(EEPROM_ReadWord(EEPROM_addr)); > > > > > > This works with i from -209 to 209 but other values give unexpected results. Why? > > > Has anyone a suggestion for an alternative? > > > > > > Thanks for any help. > > > Pepe > > > > I will take a look. > > > > Regards > > > > Peter > > Hi Peter, > > Don't bother to go into this. It appears the above lines work fine in a test program so something > must be wrong elsewhere in my code. > Sorry, I should have tested more thoroughly before writing to the forum. > > Regards, > Pepe