Diamond Power Products MM-48-AT Board Configuration, Base Address, Interrupt Level Selection

Page 7

4. BOARD CONFIGURATION

Refer to the Drawing of Diamond-MM-48-AT on page 4 for locations of the configuration items mentioned here. All configuration except the A/D input range is done with jumper block J6.

4.1 Base Address

Each board in your system must have a unique I/O address range. The first address in this range is called the base address. Diamond-MM-48-AT uses an I/O range of 16 bytes. The base address of this range is set with a portion of jumper block J6, located along the lower portion of the board near the PC/104 bus connectors. Each of the six jumper locations marked 10, 9, 8, 7, 6, 5 corresponds to the same-numbered address bit in the board’s 10-bit I/O address. Bits 4-0 are always 0 for the base address, resulting in a 16-byte I/O address block located on a 32-byte boundary. A jumper out is equal to a 1, and a jumper in is equal to a 0. Although any address is selectable, certain locations are reserved or may cause conflicts with other system resources. The table below lists recommended base address settings for Diamond-MM-48-AT. The default setting is 300 Hex.

Base Address

 

 

Jumper Position

 

 

Hex

Decimal

10

9

8

7

6

5

200

512

In

Out

In

In

In

In

240

512

In

Out

In

In

Out

In

280

512

In

Out

In

Out

In

In

2C0

512

In

Out

In

Out

Out

In

300

768 (Default)

In

Out

Out

In

In

In

340

832

In

Out

Out

In

Out

In

380

896

In

Out

Out

Out

In

In

3C0

960

In

Out

Out

Out

Out

In

4.2 Interrupt Level Selection

In addition to the base address described above, J6 is used to configure hardware interrupt activity. Interrupts are used for several functions. They can be used to transfer A/D data from the board to memory at a rate higher than can be achieved through software sampling. In addition, they can be used to indicate to the application software when a change of state has occurred on the optocoupler or digital inputs.

During interrupt operation, the board will periodically generate an interrupt request, or IRQ. The processor will respond and run a user-supplied interrupt routine function, or the function supplied with the board’s driver software. The interrupt routine reads the data from the board and makes it available to the user application program.

DMM-48-AT allows you to select from levels 15, 14, 12, 11, 10, 9, 7, 6, 5, 4, and 3. Only one IRQ level may be used. To select the desired IRQ level install a jumper in that number’s location in the Interrupt area of jumper block J6.

On the PC/104 bus each IRQ level in use must have a 1Kpull-down resistor attached. To enable the pull-down resistor for this board, install a jumper in the R location on J6.

Typically each board in the computer will use a different interrupt level, or IRQ level. However in special circumstances multiple boards may share the same IRQ level. In this case only one

Diamond-MM-48-AT User Manual V1.01

Page 7

Image 7
Contents DIAMOND-MM-48-AT Table of Contents Description DIAMOND-MM-48-AT Board Drawing O Header Pinout and PIN Description Signal Name DefinitionJ3 Analog and Digital I/O J4 Relays and Optocouplers Signal Name Definition Relay output contactsOptoisolated input contacts Interrupt Level Selection Board ConfigurationBase Address Base Address Jumper Position Hex DecimalReserved Optocoupler PolarityAnalog Input Range Base + Write Function Read Function OverviewLSB MSB Read operations Register Map Bit AssignmentsWrite operations DA7 DA6 DA5 DA4 DA3 DA2 DA1 DA0Base + Read Register DefinitionsBase + Write DefinitionsBase + Read/Write A/D Channel Register AD9 AD8HIGH3 HIGH2 HIGH1 HIGH0 LOW3 LOW2 LOW1 LOW0 DIR3 DIR2 DIR1 DIR0 Base + Read/Write Digital I/O Configuration RegisterBase + Read/Write Relay Control Port RELAY7 RELAY6 RELAY5 RELAY4 RELAY3 RELAY2 RELAY1 RELAY0OEN3 OEN2 OEN1 OEN0 POL3 POL2 POL1 POL0 DIO3 DIO2 DIO1 DIO0Base + Read Digital I/O Data and Edge Status DEDGE3 DEDGE2 DEDGE1 DEDGE0 DIO3 DIO2 DIO1 DIO0Daupdt DACH2 DACH1 DACH0 Base + Write Channel and Control RegisterOEDGE3 OEDGE2 OEDGE1 OEDGE0 OPTO3 OPTO2 OPTO1 OPTO0 Dapre Daprld Reset Fiforst Adstart Base + Write Command RegisterPOL ADCH3 ADCH2 ADCH1 ADCH0 Base + Read Status RegisterCKSEL1 CKFRQ1 CKFRQ0 Scnint Clken Clksel Base + Write Configuration RegisterAdbusy Dabusy CKSEL1 CKFRQ1 CKFRQ0 Scnint Clken Clksel Base + Read Configuration & Status RegisterOVF Fifoth Fifoen Scanen Base + Write Fifo Control RegisterFifoth Fifoen Scanen Base + Read Fifo Status RegisterClrt Clrd Clro Clra Tinte Dinte Ointe Ainte Base + Write Interrupt Control RegisterTint Dint Oint Aint Tinte Dinte Ointe Ainte Base + Read Interrupt Status RegisterBase + Read/Write Counter/Timer D15 Base + Read/Write Counter/Timer D7Base + Read/Write Counter/Timer D23 Ctrno Latch Gtdis Gten Ctdis Cten Load CLR Base + Write Counter/Timer Control RegisterCtrno Base + Read/Write Eeprom / TrimDAC Address Register Base + Read/Write Eeprom / TrimDAC Data RegisterBase + Read Fpga Revision Code Base + Write Eeprom Access Key RegisterBase + Write Calibration Control Register Base + Read Calibration Status RegisterSingle Ended and Differential Inputs Analog Input Ranges and ResolutionResolution Input RangesPerforming AN A/D Conversion LSB = readbase MSB = readbase+1 Data = MSB * 256 + LSB Trigger an A/D conversion on the current channelInput voltage = A/D value / 32768 * Full-scale voltage Conversion or Scan D SCAN, FIFO, and Interrupt OperationTrigger Clken ClkselFifoen = Fifo OperationInterrupt Operation Fifoen Fifoth ScanenOperation Table Guidelines for Selecting Fifo Use Fifoen and FifothAinte Fifoen Scanen Analog Output Overview Generating AN Analog Output 12.3 D/A Calibration Autocalibration OperationReference Voltages 12.2 A/D calibrationDigital I/O Operation Optocoupler Operation Procedure for enabling interrupts on selected edgesPolarity and logic readback Edge detection assumes OENn = 1 to enable edge detectionRelay Operation Counter 0 A/D Sample Control COUNTER/TIMER OperationCounter 1 Counting/Totalizing Functions Counter Command SequencesCounter Outpbase+15,0x01 Outpbase+15,0x81 Autocalibration SpecificationsGeneral