Conversion of bytes to word
Hello. In short:
-converted word to write it with
Code:
WRITE 0, WValue.BYTE0
WRITE 1, WValue.BYTE1
-numbers are written to the pic i can see them having read it with my programmer
-how to convert these two hex-values to one word again ?
Regards
selbstdual
A good question is always half the answer ...
A good question could be WHAT do you want to use to read your EEPROM ???
- LCD DISPLAY : Mr E Gave you the answer ...
- IDE : ah ...yes, maybe here we are !!!
I use MPLAB, and ... I use a side calculator ( Win.calc or here Casio Fx 880 ) !!!
No Other way in MPLAB ...
Alain
Selbstdual, Maybe ... but half brain !!!
Quote:
Originally Posted by
selbstdual
You couldn't even distinguish a chair from a table and would sit on the table while wondering how to eat on the chair. This is great for comedy.
1) a Fair answer to those who can't follow your "High level Brain" wouldn't be too much, moreover it could show you're a bit clever.
2) The last program I wrote kept side by side bits, Bytes and Words in the EEPROM ... How do you think your IDE could know by itself where are the different variable kinds ???
3) Try to learn how to use the WRITECODE and READCODE function ( with the convenient PIC !!! ) ... If his majesty would dare !!! ... dude.
4) another solution is to export the EEPROM content as a text File ... and decode it with an Excel sheet ( using VB Macros ...).
'Have to Learn a bit before wanting to seat at the PIC Gurus table. ( I just serve the wine there ... and I'm really proud of it !!! )
Alain