background image

Page 6-7

Manual MPAD128.D1g

Mode 0

 is the most frequently used mode of operation wherein:

a.

There are two 8-bit ports (A and B) and two unavailable 4-bit ports (C Hi and
Lo).  

b.

Any port can be configured as an input or an output.

c.

Outputs are latched.

d.

Inputs are not latched.

Mode 1 

is used for strobed input/output.  In this mode Port A and Port B use the lines

of Port C to generate and accept control signals associated with data transfer.  See the
8255-5 PPI specification for control line assignments. 

Mode 2 

is used for bi-directional 8-bit bus applications.  See the 8255-5 specification.

Bit D4, A, sets input or output for port A (DIO 0-7).  1=input, 0=output.
Bit D1, B, sets input or output for port B (DIO 8-15).  1=input, 0=output.

Analog Inputs

Programming the Analog Inputs is a straightforward task, consisting of a few consistent
steps.  Refer to the register definitions in the sections above when reading these
instructions.

The first step every time you use the card is to initialize it.  This five step process is as
follows:

Reset the Card and Point List Index:

Base + 10 bit 1

Calibrate the Card:

Base + 10 bit 3

Setup the Points:

Base addresses 0 through E, even.

Configure the A/D Control Register:

Base + 10

Reset the Card and Point List Index:

Base + 10 bit 1

"Setup the Points" is up to 8 writes, to addresses 0, 2, 4, etc, with the last write setting
the Loop bit as well as the channel information.  Additionally, each point can have the
Timer or Pause bit set to determine various timing characteristics.  It is important that
writing to the point list not be performed while the A/D chip is working.  Make sure you
issue a Stop (Base+10 bit 0) or a Reset (Base+10 bit 1) before loading the point list.
Also, when done loading points in the list, you must issue a Reset (Base+10 bit 1).

Once the card is initialized, data acquisition can begin.  This is accomplishable in a
variety of methods, two of which we will discuss here.  For more information on
acquisition methods, consult the LM12H458 chip specification.

Содержание PAD128

Страница 1: ...ACCES I O PRODUCTS INC 10623 Roselle Street San Diego CA 92121 TEL 858 550 9559 FAX 858 550 7322 MODEL PAD128 USER MANUAL FILE MPAD128 D1g...

Страница 2: ...Page ii...

Страница 3: ...tain or reference information and products protected by copyrights or patents and does not convey any license under the patent rights of ACCES nor the rights of others IBM PC PC XT and PC AT are regis...

Страница 4: ...not excluded by warranty Warranty commences with equipment shipment Following Years Throughout your equipment s lifetime ACCES stands ready to provideon site or in plant service at reasonable rates si...

Страница 5: ...cations 1 2 Regulatory Compliance 1 3 Chapter 2 Installation 2 1 CD Installation 2 1 3 5 Inch Diskette Installation 2 1 Directories Created on the Hard Disk 2 2 Installing the Card 2 4 Chapter 3 Cable...

Страница 6: ...Page vi List of Figures Figure 1 1 PAD128 Block Diagram 1 4 List of Tables Table 4 1 Standard Address Assignments for 286 386 486 Computers 4 1 Table 6 1 PAD128 Register Definition Map HEX 6 1...

Страница 7: ...l inputs Or you could have two single ended inputs and three differential inputs If you are using differential inputs you must use channels with the same full scale range In the standard card there ar...

Страница 8: ...the card slot drive these services are normally provided by Windows The diskette CD includes a program called FINDBASE that helps you find an unused base address to use with the card when using DOS P...

Страница 9: ...es depending on range from 1 LSB for 10V range to 2 LSB on the 0 100mV range Digital Input Output Inputs Logic High 2 0 to 5 0 VDC Logic Low 0 3 to 0 8 VDC Input Load high 3 2 A Input Load low 250 A O...

Страница 10: ...PAD128 Manual Page 1 4 Manual MPAD128 D1g Figure 1 1 PAD128 Block Diagram...

Страница 11: ...mpts to install the software for this card WIN95 98 NT 2000 1 Place the CD into your CD ROM drive 2 The CD should automatically runthe install programafter 30 seconds If the install program does not r...

Страница 12: ...E that contains C samples Win32 language Subdirectories containing samples for Win95 98 and NT WinRISC exe A Windows dumb terminal type communication program designed for RS422 485 operation Used prim...

Страница 13: ...programs in DOS PCIFind exe A utility for DOS and Windows to determine what base addresses and IRQs are allocated to installed PCI cards This program runs two versions depending on the operating syste...

Страница 14: ...jumpers to set Everything on the PAD128 card is programmable including address and interrupt level If you havetwo PCMCIA slots you canplug two PAD128 devices inthe same Windows based computer DOS or...

Страница 15: ...key named Industrial Computer Source then add a new subkey to the Industrial Computer Source key you just created named PAD128 In the PAD128 key add a new string with the name Driver and the value pad...

Страница 16: ...PAD128 Manual Page 2 6 Manual MPAD128 D1g...

Страница 17: ...7 Digital I O 14 7 8 Digital I O 13 8 9 Digital I O 12 9 10 Digital I O 11 10 11 Digital I O 10 11 12 Digital I O 9 12 13 Digital I O 8 13 14 Digital I O 0 14 15 Digital I O 1 15 16 Digital I O 2 16 1...

Страница 18: ...PAD128 Manual Page 3 2 Manual MPAD128 D1g...

Страница 19: ...ng systems you can skip this chapter Hex Range Usage 000 01F DMA Controller 1 020 03F INT Controller 1 Master 040 05F Timer 060 06F 8042 Keyboard 070 07F Real Time Clock NMI Mask 080 09F DMA Page Regi...

Страница 20: ...PAD128 Manual Page 4 2 Manual MPAD128 D1g...

Страница 21: ...try required to allow NT to detect and install the card correctly This program need only be executed once per system Sample Programs The sample programs are in forms suitable for use with DOS Borland...

Страница 22: ...PAD128 Manual Page 5 2 Manual MPAD128 D1g...

Страница 23: ...D Point Readback Base Address C A D Point Setup A D Point Readback Base Address E A D Point Setup A D Point Readback Base Address 10 A D Control A D Control Readback Base Address 14 advanced features...

Страница 24: ...ts DF through DC SettleTime are optional use 0000 for most input sources If a larger settle time is desired for example for source impedances R greater than 100 ohms the following equation will calcul...

Страница 25: ...nts Bit DB Diag places the chip in diagnostic mode In this mode the channel numbers take on special meaning allowing readback of various reference and ground voltages When Diag is set CH set to 000 se...

Страница 26: ...DD DC DB DA D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 number of conversions in FIFO point being acquired used for advanced functions Bits DF through DB indicate how many points of data are in the FIFO It is impor...

Страница 27: ...DIO2 DIO1 DIO0 This port contains DIO0 through DIO7 s control and status bits Base Address 21 Digital I O 8255 Port B D7 D6 D5 D4 D3 D2 D1 D0 DIO15 DIO14 DIO13 DIO12 DIO11 DIO10 DIO9 DIO8 This port c...

Страница 28: ...PAD128 Manual Page 6 6 Manual MPAD128 D1g D6 M2 D5 M1 D2 M0 Mode X 0 0 Mode 0 X 1 1 Mode 1 1 X X Mode 2...

Страница 29: ...reading these instructions The first step every time you use the card is to initialize it This five step process is as follows Reset the Card and Point List Index Base 10 bit 1 Calibrate the Card Bas...

Страница 30: ...above with no Pause bits and set Loop on the last point Start a Conversion Base 10 bit 0 Wait for FIFO full Base 14 bits F B Read the Data Base 18 Loop to Wait for FIFO full Wait for FIFO Full is a lo...

Страница 31: ...orts that are available at the connector are controlled through the 8255 device located at Base 20 through Base 23 Programming Example The following example in C is provided as a guide to assist you i...

Страница 32: ...se 0x2D0 outportb Base 0x98 To read the inputs at Port A use the C inportb command X inportb Base Read Port A To set outputs high 1 at Port B outportb Base 1 0xff Turn on all Port B bits Each time the...

Страница 33: ...Page 6 11 Manual MPAD128 D1g...

Страница 34: ...Page A 1 Manual MPAD128 D1g Appendix A 8255 Data Sheet The following pages are extracted from the 8255 data sheets and are provided for your reference...

Страница 35: ...PAD128 Manual Page A 2 Manual MPAD128 D1g...

Страница 36: ...nual MPAD128 D1g Appendix B LM12H458 Data Sheet The following pages are extracted from the LM12H458 Data Sheet and are provided for your reference Reprinted with permission of National Semiconductor C...

Страница 37: ...PAD128 Manual Page B 2 Manual MPAD128 D1g...

Страница 38: ...ccesioproducts com Customer Comments If you experience any problems with this manual or just want to give us some feedback please email us at manuals accesioproducts com Please detail any errors you f...

Страница 39: ...PAD128 Manual Page B 4 Manual MPAD128 D1g...

Отзывы: