background image

TAMS 81622 Enhancements beyond the HP 2074/5

TAMS 81622 PCI DMA.

The TAMS 81622 interface has two modes of transfer: DMA and interrupt driven.
A program may control transfer mode used by calls to 

ihint()

.  See the 

SICL

Reference Manual

 for more information.There are six values that could be

specified to this call:

I_HINT_USEPOLL

I_HINT_USEINTR

I_HINT_USEDMA

I_HINT_IO

I_HINT_SYSTEM

I_HINT_DONTCARE

If I_HINT_USEPOLL is specified, interrupt mode (I_HINT_USEINTR) is used.
This is due to the fact that with advances in hardware and operating systems,
there is no situation that using polled mode would have an advantage over
interrupt mode. Interrupt mode is not noticeably slower than polled and it
releases the processor while waiting for interrupts greatly improving system
overall performance.

If I_HINT_USEINTR is used, all inbound and outbound transfer will be performed
in interrupt mode. Each transfer of a single 8 or 16-bit data item (depending on
configured GPIO width) will be initiated, and the processor freed to perform other
tasks. Once the transfer is complete, the processor will initiate another transfer.

If the transfer is inbound and a termination and/or end character is specified, the
driver will check if the termination condition occurred before initiating another
transfer.

The 

igpioctrl(id, I_GPIO_READ_EOI,

 <end_char>)

 and

 

itermchr(id,

 <term_chr>)

 calls control end and termination characters.

If I_HINT_USEDMA is specified, DMA will always be used for outbound transfer.
For inbound transfer, if no termination nor end character is specified, DMA is
used. Otherwise interrupt mode (I_HINT_USEINTR) will be used. This will only
happen for the current transfer. No call to 

ihint()

 is required to restore DMA

transfer mode. For the next transfer, DMA will be resumed for outbound and if no
termination and/or end character is specified, for inbound transfers.

14

Содержание 81622

Страница 1: ...TAMS 81622 PCI GPIO Card for Linux Installation Operation Instructions...

Страница 2: ...ion Operation Instructions Test Measurement Systems Inc 750 14th Street SW Loveland CO 80537 USA Telephone 970 669 6553 Fax 970 669 3090 Web Site www tamsinc com Email info tamsinc com Copyright Test...

Страница 3: ...entation 11 Standard Instrument Control Library for Linux BASIC For Linux Additional GPIO Documentation Online Technical Information 12 Connector Pinouts TAMS 81622 Enhancements beyond the HP 2074 5 1...

Страница 4: ...ne its contents Note The name of the product you have purchased is the TAMS 81622 GPIO Card for Linux It includes the TAMS 622 66501 GPIO card and the t61622 card driver for Red Hat Linux See the Read...

Страница 5: ...is guide also provides an explanation of the configuration process as it relates to SICL A detailed description of the TAMS GPIO s functionality is included to aid in this configuration process The TA...

Страница 6: ...that the rotary DIP switches each be set to a unique number which is guaranteed if you set the switch to the slot number Be sure to note the position of the rotary DIP switch as you will need to know...

Страница 7: ...I O Libraries T82091 for Linux are installed 2 Insert the installation CD ROM into the drive and wait for the busy light to remain off 3 Mount the CD ROM For example bin mount dev cdrom mnt cdrom On s...

Страница 8: ...unted you may remove the media from the drive and store it in a safe place In general the installation procedure places the files in the necessary directories by default Appendix B is a reference for...

Страница 9: ...uide for Linux For each TAMS 622 66501 card that you want to configure in your system you need to add a line to the hwconfig cf file While most users do not need to see or use this file directly havin...

Страница 10: ...igit configures the data port HP 98622 compatibility mode 0 No DOUT clear at reset 1 Clear DOUT at reset Enhanced bi directional DINs data port 2 No DOUT clear at reset 3 Clear DOUT at reset The least...

Страница 11: ...lay is expressed in nanoseconds the decimal value representing that delay should be suffixed with ns If the delay is expressed in microseconds the decimal value representing delay should be suffixed w...

Страница 12: ...GPIO interface is supported on version 11 0 of TAMS BASIC for Linux When the GPIO interface has been configured for SICL it is also ready to be used from within BASIC for Linux BASIC users will need...

Страница 13: ...MS 622 66501 card refer to your software documentation to configure your I O application software for the TAMS 622 66501 card See the Related Software Documentation section of this guide This section...

Страница 14: ...L F P d n a L T C P e k a h s d n a h g a l F l a r e h p i r e P d n a l o r t n o C l a r e h p i r e P O I l o r t n o c n o i t c e r i d t u p t u O t u p n I S T S P s u t a t S l a r e h p i r...

Страница 15: ...and outbound transfer will be performed in interrupt mode Each transfer of a single 8 or 16 bit data item depending on configured GPIO width will be initiated and the processor freed to perform other...

Страница 16: ...d prevent performance optimization The TAMS 81622 accepts values directly in nanoseconds The range extends from 90 nanoseconds to 245000 nanoseconds 245 microseconds allowing optimal transfer performa...

Страница 17: ...ace while it is reconfigured If for example a polarity setting is changed on an interface while an application is using it it may take effect in the middle of a transfer causing undesired effects Howe...

Страница 18: ...t e l o i V n o e t i h W d e R 3 I D 9 3 e u l B n o e t i h W e g n a r O 4 I D 8 3 n e e r G n o e t i h W w o l l e Y 5 I D 7 3 w o l l e Y n o e t i h W n e e r G 6 I D 6 3 e g n a r O n o e t i...

Страница 19: ...o l l e Y 5 I D 7 3 w o l l e Y n o e t i h W n e e r G 6 I D 6 3 e g n a r O n o e t i h W e u l B 7 I D 5 3 k n i P n o e t i h W t e l o i V 8 I D 4 3 n e e r G n o n w o r B d e R n w o r B e t i...

Страница 20: ...l B e t i h W 0 L T C 2 2 n a T n o n w o r B t e l o i V d e R e t i h W 1 L T C 3 2 n a T n o k n i P y e r G d e R e t i h W D R G 4 2 e t i h W n o n w o r B D R G y t e f a S 5 2 n a T n o e g n...

Страница 21: ...i r d l e n r e k 2 2 6 1 6 t d t i n i c t e e h t g n i d a o l n u r o f t p i r c s t r a t s p o t s g n i t a e r c n u h e t d n a e l u d o m l e n r e k s e l i f e c i v e d e h t 2 2 6 1 6...

Страница 22: ...These two functions are described below IGPIOCTRL Supported sessions interface Affected by functions ilock itimeout C Syntax include sicl h include t61622sicl h int igpioctrl id request setting INST i...

Страница 23: ...o d e d a o l e u l a V X A M _ Y L D _ 2 2 6 1 6 T 0 0 7 5 4 2 y a l e d L T C P a r o f m u m i x a M TAMS 81622 Filtering This feature allows filtering of DIN 0 15 STI0 STI1 and EIR lines for glitc...

Страница 24: ...n of the polarity is identical to the standard GPIO DIN polarity as described in the SICL documentation For the STI and EIR lines the standard GPIO interface does not provide polarity configuration Th...

Страница 25: ...s you read the latched lines I_GPIO_T61622_LAT_CL clears the latched lines Examples Enable T61622_DIN06 and T61622_EIR igpioctrl id I_GPIO_T61622_LAT_EN T61622_DIN06 T61622_EIR Read what lines are ena...

Страница 26: ...int TAMS 81622 Pull up Resistors I_GPIO_T61622_PUL controls if DOUT 0 15 CTL 0 1 PCTL I O and PRESET lines are pulled up with 4 7k resistors to 5V There is no control for individual lines All lines ar...

Страница 27: ...xamples Enable loop test mode igpioctrl id I_GPIO_TEST_ONLY T61622_HSHK_LOOP Get test settings igpiostat id I_GPIO_TEST_ONLY test Disable loop test mode igpioctrl id I_GPIO_TEST_ONLY 0 Important time...

Страница 28: ...T61622_ALL 0x000FFFFF all of above 20 bits Individual bits for DIN and STI T61622_DIN00 0x00000001 T61622_DIN01 0x00000002 T61622_DIN02 0x00000004 T61622_DIN03 0x00000008 T61622_DIN04 0x00000010 T616...

Страница 29: ...ives you specific legal rights and you may also have other rights which vary from state to state and from country to country This Warranty is in Lieu of all other express warranties which now or herea...

Страница 30: ...TAMS 81622 GP IO Card for Red Hat Linux Printed in USA E011 01 03 Part 81622 90004...

Отзывы: