Epson Research and Development
Page 65
Vancouver Design Center
Programming Notes and Examples
S1D13503
Issue Date: 01/01/30
X18A-G-002-06
ChipID = ID_NOT_DETECTED;
//
// If the chip was just powered up, and no registers have been initialized,
// then use the following code:
//
outp(PortAddr, 0x0e);
switch (inp(P1) & 0x30)
{
case 0x00:
ChipID = ID_13503;
break;
case 0x20:
ChipID = ID_13502;
break;
case 0x30:
ChipID = ID_13502;
break;
default:
ChipID = ID_NOT_DETECTED;
break;
}
return(ChipID);
}
electronic components distributor