![]() |
||||||||||||||||||||
Home |
This format is used by the monitor EMON52, developed by the European electronics magazine Elektor (Elektuur in Holland). Elektor wouldn't be Elektor if they didn't try to invent the wheel againg. It's a mystery to me why they didn't use an existing format for this project. Only the Elektor Assembler will produce this file format, reducing the choice of development tools dramatically. I've added the EMON52 file format to my own SB-Assembler for a friend who owns a system with this EMON52 monitor. If you look at the formatting you should agree with me that they did a wonderful job at Elektor ;-)
All data lines are called records and each record contains the following 4 fields: cc aaaa:dd ssss
I don't know if the EMON52 accepts both upper and lower case characters. Therefore I suggest to use only upper case. Please note that there is no End Of File record defined.
The byte count cc counts the actual data bytes in the current record. Usually records have 16 data bytes. I don't know what the maximum number of data bytes is. It depends on the size of the data buffer in the EMON52.
This is the address where the first data byte of the record should be stored.
After storing that data byte the address is incremented by 1 to point to the address for the next data byte of the record.
And so on, until all data bytes are stored.
This is the actual payload of the record is formed by the Data field. The number of data bytes expected is given by the Byte Count field.
The checksum is a 16 bit result from adding all data bytes of the record together.
10 0000:57 6F 77 21 20 44 69 64 20 79 6F 75 20 72 65 61 0564
In the example above you can see a piece of code in EMON52 format.
It is fairly obvious why I don't approve of this format very much.
The lines are very long because each byte is separated by a space.
This makes it easier for us humans to read it, but I don't think that's the intention of these files.
|