Contec RRY-16C(PCI)H, RRY-32(PCI)H 取扱説明書

  • こんにちは!私はコンテックのデジタル出力ボード、RRY-16C(PCI)HとRRY-32(PCI)Hのテクニカルリファレンスを熟読しました。I/Oポートの割り当て、操作方法、オンボードシステムタイマなど、このデバイスに関するご質問にお答えできます。お気軽にご質問ください!
  • RRY-16C(PCI)HとRRY-32(PCI)Hの違いは何ですか?
    オンボードシステムタイマの解像度はどれくらいですか?
    出力ポートの状態をモニタするにはどうすればよいですか?
    ワードアクセスを行う際の注意点は何ですか?
    RRY-32(PCI)Hでダブルワードアクセスを行う際の注意点は何ですか?
RRY-16C(PCI)H
RRY-32(PCI)H
1. .......................................................................................................................2
1.1. ..................................................................................2
2. ...............................................................................................................2
2.1. Vendor ID Device ID ........................................................................................2
2.2. ..........................................................................................2
3. I/O ....................................................................................3
3.1. RRY-16C(PCI)H I/O ........................................................3
3.2. RRY-32(PCI)H I/O ...........................................................4
4. .......................................................................................................................5
5. ...............................................................................................................................6
5.1. ......................................................................6
<RRY-16C(PCI)H, RRY-32(PCI)H>
2/6
2005 9 5
1.
I/O
Windows
1.1.
I/O 8 8
1
API-PAC(W32)
I/O
I/O I/O I/O
I/O
2.
2.1. Vendor ID Device ID
Vendor ID 1221h
Device ID
Board Name Device ID
RRY-16C(PCI)H A192
RRY-32(PCI)H A1A2
Revision ID ID (SW1) 00h - 0Fh
PCI
2.2.
MS-DOS PCI (I/O
) (http://www.contec.co.jp)
<RRY-16C(PCI)H, RRY-32(PCI)H>
3/6
2005 9 5
3. I/O
3.1. RRY-16C(PCI)H I/O
RRY-16C(PCI)H
I/O D7 D6 D5 D4 D3 D2 D1 D0
+0h 0
O-07 O-06 O-05 O-04 O-03 O-02 O-01 O-00
+1h 1
O-17 O-16 O-15 O-14 O-13 O-12 O-11 O-10
+2h
|
+1Bh
( )
+1Ch
Data-07 Data-06 Data-05 Data-04 Data-03 Data-02 Data-01 Data-00
+1Dh
Data-15 Data-14 Data-13 Data-12 Data-11 Data-10 Data-09 Data-08
+1Eh
Data-23 Data-22 Data-21 Data-20 Data-19 Data-18 Data-17 Data-16
+1Fh
Data-31 Data-30 Data-29 Data-28 Data-27 Data-26 Data-25 Data-23
O-xx ( )
(2 )
2 I/O
RRY-16C(PCI)H
I/O D7 D6 D5 D4 D3 D2 D1 D0
+0h 0
O-07 O-06 O-05 O-04 O-03 O-02 O-01 O-00
+1h 1
O-17 O-16 O-15 O-14 O-13 O-12 O-11 O-10
+2h
|
+1Fh
( )
O-xx
(2 )
2 I/O
<RRY-16C(PCI)H, RRY-32(PCI)H>
4/6
2005 9 5
3.2. RRY-32(PCI)H I/O
RRY-32(PCI)H
I/O D7 D6 D5 D4 D3 D2 D1 D0
+0h 0
O-07 O-06 O-05 O-04 O-03 O-02 O-01 O-00
+1h 1
O-17 O-16 O-15 O-14 O-13 O-12 O-11 O-10
+2h
2
O-27 O-26 O-25 O-24 O-23 O-22 O-21 O-20
+3h
3
O-37 O-36 O-35 O-34 O-33 O-32 O-31 O-30
+4h
|
+1Bh
( )
+1Ch
Data-07 Data-06 Data-05 Data-04 Data-03 Data-02 Data-01 Data-00
+1Dh
Data-15 Data-14 Data-13 Data-12 Data-11 Data-10 Data-09 Data-08
+1Eh
Data-23 Data-22 Data-21 Data-20 Data-19 Data-18 Data-17 Data-16
+1Fh
Data-31 Data-30 Data-29 Data-28 Data-27 Data-26 Data-25 Data-23
O-xx ( )
(2 ) (4 )
2 I/O 4 I/O
RRY-32(PCI)H
I/O D7 D6 D5 D4 D3 D2 D1 D0
+0h 0
O-07 O-06 O-05 O-04 O-03 O-02 O-01 O-00
+1h 1
O-17 O-16 O-15 O-14 O-13 O-12 O-11 O-10
+2h
2
O-27 O-26 O-25 O-24 O-23 O-22 O-21 O-20
+3h
3
O-37 O-36 O-35 O-34 O-33 O-32 O-31 O-30
+4h
|
+1Fh
( )
(2 ) (4 )
2 I/O 4 I/O
<RRY-16C(PCI)H, RRY-32(PCI)H>
5/6
2005 9 5
4.
4
C OS/
1
0
< >
O-07 I/O
port
outp(port,0x80);
-
outp(port,0x80);
< >
outp(port+0x08,0x00);
( )
I/O
< >
I/O +1
I/O port
outp(port+0x01,0xaa);
m_data=inp(port+0x01);
<RRY-16C(PCI)H, RRY-32(PCI)H>
6/6
2005 9 5
5.
API-PAC(W32)
5.1.
(Windows)
4MHz(250nsec ) 32
00000000h FFFFFFFFh 00000000h
1LSB 250nsec FFFFFFFFh
1,073,741,823,750nsec ( 18 )
< ( )>
I/O port
dwLow = impw(port+0x1c); /* */
dwHigh = impw(port+0x1e); /* */
dwTim = (dwLow | ((dwHigh << 16) & 0xffff0000));
dwTim1, dwTim2 sec
(dwTim1: dwTim2: dwLap: [ sec])
if(dwTim2 >= dwTim1){
dwLap = (DWORD)((dwTim2 - dwTim1) >> 2); /* sec */
}
else{ /* FFFFFFFFh 00000000h */
dwLap = (DWORD)((0xffffffff - dwTim1 + dwTim2) >> 2);
}
A-48-058
LYFF621
/