71m6543h-igtr/f Maxim Integrated Products, Inc., 71m6543h-igtr/f Datasheet - Page 118

no-image

71m6543h-igtr/f

Manufacturer Part Number
71m6543h-igtr/f
Description
Energy Meter Ic
Manufacturer
Maxim Integrated Products, Inc.
Datasheet
}
#endif //#if HIGH_PRECISION_METER
71M6543F/H Data Sheet
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) {
118
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
v1.0

Related parts for 71m6543h-igtr/f