x9523v20iz-bt1 Intersil Corporation, x9523v20iz-bt1 Datasheet - Page 26

no-image

x9523v20iz-bt1

Manufacturer Part Number
x9523v20iz-bt1
Description
Dual Dcp, Por, Dual Voltage Monitors
Manufacturer
Intersil Corporation
Datasheet
APPENDIX 2
DCP1 (100 Tap) tap position to Data Byte translation algorithm example. (Example 1)
unsigned DCP1_TAP_Position(int tap_pos)
{
}
int block;
int i;
int offset;
int wcr_val;
offset= 0;
block = tap_pos / 25;
if (block < 0) return ((unsigned)0);
else if (block <= 3)
{
}
return((unsigned)01100000);
switch(block)
{
}
26
case (0): return ((unsigned)tap_pos) ;
case (1):
{
}
case (2):
{
}
case (3):
{
}
wcr_val = 56;
offset = tap_pos - 25;
for (i=0; i<= offset; i++) wcr_val-- ;
return ((unsigned)++wcr_val);
wcr_val = 64;
offset = tap_pos - 50;
for (i=0; i<= offset; i++) wcr_val++ ;
return ((unsigned)--wcr_val);
wcr_val = 120;
offset = tap_pos - 75;
for (i=0; i<= offset; i++) wcr_val-- ;
return ((unsigned)++wcr_val);
X9523
January 3, 2006
FN8209.1

Related parts for x9523v20iz-bt1