PISO-813 Series Card
32-channel Single-Ended Isolated A/D Board
User Manual, Ver. 1.5, Feb. 2014, PMH-003-15, Page: 33
6.3.2 A/D Data Register
(Read): wBase+0xd0
Low Byte of A/D Conversion Data
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
D7
D6
D5
D4
D3
D2
D1
D0
(Read): wBase+0xd4
High Byte of A/D Conversion Data
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
-
-
-
Status
D11
D10
D9
D8
For example:
do
{
HighByte=inportb(wBase+0xd4);
}while(HighByte&0x10);
/* check status until conversion complete */
LowByte=inportb(wBase+0xd0);
Data=(HighByte<<8)+LowByte;
Status:
The status bit is used as an indicator
for A/D conversion. It is used for software
polling. Setting values are as follows:
0
A/D conversion is completed
1
A/D conversion is not completed
D0 to D11:
A/D Conversion Data
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru