Download Print this page

Advantech PCL-848A/B User Manual page 28

Multifunction ieee-488 interface card

Advertisement

For more information about bit 12,14,15 of setting, please refer to Section 5. AD-
VANCED PROGRANMING TECUNIQUES.
Bus Activity :
This command takes following action when it is called.
1. Initialize the NEC7210 GP-IB controller.
2. Set relative parameters for the NEC7210.
3. Store the I/O base address, IRQ level and DMA level into working RAM.
Examples :
1) Set IEEE-488 interface card to mode : Non-system controller, No IRQ, No DMA.
Bus address is 21. I/O port address is hex 2B8 (SW1 is set at hex 2B0).
50 INIT% = 0
60 MYADDR% = 21
70 IOPORT% = &u2B8
80 SETTING% = &H008F
90 CALL INIT%(IOPORT%,MYADDR%,SETTING%)
.
.
2) Set IEEE-488 interface card to mode : System controller, IRQ level 7 and DMA
level 1. IEEE-488 address is 0. I/O port address is hex 3C8 (SW1 is set at hex 3C0).
.
.
50 INIT% = 0
60 MYADDR% = 0
70 IOPORT% = &H3C8
80 SETTING% = &H001D ' Bit 0, 2, 3, 4 are all 1
90 CALL INIT%(IOPORT%,MYADDR%,SETTING%)
.
.
3) Set IEEE-488 interface card to BASIC Compiler mode, System controller, No IRQ,
DMA level 2. Bus address is 21. I/O port address is hex 2B8.
.
.
50 INIT% = 0
60 MYADDR% = 21
70 IOPORT% = &H2B8
80 SETTING% = &H0102
90 CALL INIT%(IOPORT%,MYADDR%,SETTING%)
.
.
2 2
PCL-848AB
User's Manual

Advertisement

loading