PEX/PIO/PISO-DA Series Card
Analog Output Boards
User Manual/ Ver. 3.1/ Oct. 2013/ PMH-0010-31/ Page: 64
6.3.7 Read/Write 8254 Register
(Read/Write): wBase+0xc0=8254-counter-0
(Read/Write): wBase+0xc4=8254-counter-1
(Read/Write): wBase+0xc8=8254-counter-2
(Read/Write): wBase+0xcc=8254 control word
8254 Control Word
SC1
SC0
RL1
RL0
M2
M1
M0
BCD
[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
[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
[BCD]:
0:
binary count
1:
BCD count
ГК
Атлант
Инжиниринг
–
официальный
представитель
в
РФ
и
СНГ
+7(495)109-02-08 [email protected] www.bbrc.ru