x9521v20iz-b Intersil Corporation, x9521v20iz-b Datasheet - Page 23

no-image

x9521v20iz-b

Manufacturer Part Number
x9521v20iz-b
Description
Dual Dcp, Eeprom Memory
Manufacturer
Intersil Corporation
Datasheet
APPENDIX 2
DCP1 (100 Tap) tap position to Data Byte translation algorithm example. (Example 2)
unsigned DCP100_TAP_Position(int tap_pos)
{
/* optional range checking
*/ if (tap_pos < 0) return ((unsigned)0);
/* 100 Tap DCP encoding formula */
if (tap_pos > 74)
}
else if (tap_pos >99) return ((unsigned) 96);
return ((unsigned) (195 - tap_pos));
else if (tap_pos > 49)
return ((unsigned) (14 + tap_pos));
else if (tap_pos > 24)
return ((unsigned) (81 - tap_pos));
else return (tap_pos);
23
X9521
/* set to max val */
/* set to min val */
January 3, 2006
FN8207.1

Related parts for x9521v20iz-b