4. Using the I/O Address Map
22
ADI16-4(FIT)GY
-
EEPROM Busy Flag [D2]:
The status is set upon input/output of data to/from EEPROM. The status is reset upon completion
of the read/write.
*Each status is also cleared to 0 by the following condition
- Initialization command output
Given below are samples for setting calibration data.
(1) Example to output factory-set gain calibration data to the potentiometer
outp( ADR+24, 0xb );
/* Get gain calibration data from EPROM. */
outp( ADR+28, 0x20 );
while( (inp( ADR+23 ) &4 );
GainData = inp( ADR+29 );
outp( ADR+24, 0xa );
/* Output data to the digital potentiometer. */
outp( ADR+28, 0x0 );
outp( ADR+29, GainData );
while( (inp( ADR+23 ) &8 );