English
Language : 

71M6543F Datasheet, PDF (119/157 Pages) Maxim Integrated Products – Selectable Gain of 1 or 8 for One Current Energy Meter ICs Metrology Compensation
71M6543F/H and 71M6543G/GH Data Sheet
The byte values containing less than 8 valid bits are LSB justified. For example Info Page offset 0x90 is
an 8-bit object, whose three LSBs are bits [10:8] of the complete TEMP_85[10:0] 11-bit object. The Info
Page data objects are 2’s complement format and should be sign extended when read into a 16-bit data
type (see case _TEMP85 in the code example).
#if HIGH_PRECISION_METER
int16_t read_trim (enum eTRIMSEL select) {
uint8r_t *px;
int16_t x;
px = ((uint16_t)select) + ((uint8r_t *)(CE3 << 10));
switch (select)
{
default:
case _TRIMBGD:
INFO_PG = 1;
x = *px;
INFO_PG = 0;
break;
case _TRIMBGB:
INFO_PG = 1;
x = *(uint16r_t*)px;
INFO_PG = 0;
break;
case _TEMP85:
INFO_PG = 1;
x = *(uint16r_t*)px;
INFO_PG = 0;
if (x & 0x800)
x |= 0xF800;
break;
}
return (x);
}
#endif //#if HIGH_PRECISION_METER
v1.2
© 2008–2011 Teridian Semiconductor Corporation
119