![ICP DAS USA PIO-D64 User Manual Download Page 34](http://html1.mh-extra.com/html/icp-das-usa/pio-d64/pio-d64_user-manual_3741676034.webp)
PIO-D64/PIO-
D64U User’s Manual ( Ver.1.
6, Mar. 2015, PMH-007-16 ) ----- 34
3.3.7 Read/Write 8254
8254 control word
SC1
SC0
RL1
RL0
M2
M1
M0
BCD
SC1,SC0
: 00: counter0
01: counter1
10: counter2
11: read -back command
RL1,RL0
: 00: counter latch instruction
01: read/write low counter byte only
10: read/write high counter byte only
11: read/write low counter byte first, then high counter byte
M2,M1,M0
: 000: mode0 interrupt on terminal count
001: mode1 programmable one-shot
010: mode2 rate generator
011: mode3 square-wave generator
100: mode4 software triggered pulse
101: mode5 hardware triggered pulse
BCD
: 0: binary count
1: BCD count
3.3.8 Read Card ID
(Read): wBase+0xf4
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
0
0
ID3
ID2
ID1
ID0
wCardID = inportb(wBase+0xF4); /* read Card ID
Note: The Card ID function supports the model:
PIO-D64U (Ver1.0 or above)
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru