71M6543GH MAXIM [Maxim Integrated Products], 71M6543GH Datasheet - Page 119

no-image

71M6543GH

Manufacturer Part Number
71M6543GH
Description
Selectable Gain of 1 or 8 for One Current Energy Meter ICs Metrology Compensation
Manufacturer
MAXIM [Maxim Integrated Products]
Datasheet
}
#endif //#if HIGH_PRECISION_METER
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) {
v1.2
uint8r_t *px;
int16_t x;
px = ((uint16_t)select) + ((uint8r_t *)(CE3 << 10));
switch (select)
{
}
return (x);
default:
case _TRIMBGD:
case _TRIMBGB:
case _TEMP85:
INFO_PG = 1;
x = *px;
INFO_PG = 0;
break;
INFO_PG = 1;
x = *(uint16r_t*)px;
INFO_PG = 0;
break;
INFO_PG = 1;
x = *(uint16r_t*)px;
INFO_PG = 0;
if (x & 0x800)
break;
x |= 0xF800;
© 2008–2011 Teridian Semiconductor Corporation
71M6543F/H and 71M6543G/GH Data Sheet
119

Related parts for 71M6543GH