
ACROSSER TECHNOLOGY
25
Where
SIGN -
Sign bit. This bit indicates the sign of input data.
If SIGN = 0, the input voltage is above 0 Volt. If SIGN =
1, the input voltage is below 0 volt.
AD0 to AD11
- Analog data. AD0 is LSB and AD11 is
MSB. Data is stored as 12-bit binary and ranges between
000H and FFFH.
Example
MOV AH,2
;Specify function 2
MOV DX,3E0H
;Base address
CALL ADCLIB
;
OR
AL,AL
JNZ
ERR_HAND
;Error handling
;
GOOD_RET:
;data is returned in CX register.
.....
;
;Error handling program
ERR_HAND:
.....
All manuals and user guides at all-guides.com