(SOLVED)
Answer from AMS: “The energy value is a 20 bit value which is divided into a LSB (lowest 8bit in Reg 0x04), and MSB (medium 8 bit in Reg 0x05) and a MMSB (upper 4 bit value, lower nibble in Reg 0x06). MMSB is not between LSB and MSB”.
The AMS AS3935 lightning detector calculates a unitless value for the energy of the discharge. It is a 21-bit value stored in three registers:
LSByte = 0x04
MSByte = 0x05
MMSByte = 0x06, bits<4:0>
In my experience, MMSB means "middle" MSB, i.e., a byte between the MSB and LSB (likewise for MLSB). When both MMSB and MLSB are present, the byte order seems obvious. Moreover, if one looks at the 14-bit encoders from AMS and other vendors, the upper byte is the smaller.
In this instance, I can deal with the "middle" byte being only 5 bits, but it would be easier if the 5-bit byte were the highest byte.
Duplication of an adverb is commonly (and unfortunately) used for emphasis, like "being very,very sure." By analogy, could it mean "most, most" or "maximum, most" or other silly things?
Is anyone "really,really sure" of the meaning of MMSB for this device?
![Grin ;D](https://www.eevblog.com/forum/Smileys/default/grin.gif)
Yes, I can test it and read the registers to find out, but asking here is easier.
Regards, John