Download Manual

Transcript
DMM-32DX-AT
16-Bit Analog I/O PC/104 Module With Autocalibration
TABLE OF CONTENTS
1.
2.
3.
4.
DESCRIPTION ......................................................................................................................................................4
FEATURES ...........................................................................................................................................................5
DMM-32DX-AT BOARD DRAWING ...................................................................................................................6
I/O HEADERS PINOUT AND PIN DESCRIPTION......................................................................................................7
4.1
Analog I/O Header – J3.............................................................................................................................7
4.2
Digital I/O Header – J4 .............................................................................................................................8
4.3
Serial I/O Header – J11.............................................................................................................................9
5. BOARD CONFIGURATION...................................................................................................................................10
5.1
Base Address............................................................................................................................................10
5.2
Interrupt level ..........................................................................................................................................10
5.3
DMA level ................................................................................................................................................10
5.4
Single-Ended / Differential A/D Channels...............................................................................................11
5.5
D/A Configuration ...................................................................................................................................12
5.6
Digital I/O Pull-Up / Pull-Down .............................................................................................................12
5.7
16-Bit Data Bus .......................................................................................................................................12
6. I/O REGISTER MAP ...........................................................................................................................................13
6.1
I/O Map Description................................................................................................................................13
6.2
I/O Map Reference – Write ......................................................................................................................14
I/O Map Reference – Read ..................................................................................................................................15
6.3
I/O Map Details .......................................................................................................................................17
6.4
Page 0: 82C54 Counter/Timer Access.....................................................................................................27
6.5
Page 1: 82C55 Digital I/O Circuit ..........................................................................................................28
6.6
Page 2: Expanded FIFO Control ............................................................................................................29
6.7
Page 3: Autocalibration Registers...........................................................................................................29
6.8
Page 4: dsPIC Interface ..........................................................................................................................31
6.9
Page 5: D/A Waveform Generator ..........................................................................................................33
6.10 Page 6: CPLD I/O Window .....................................................................................................................34
6.11 Page 7: D/A Output Channel Control .....................................................................................................34
7. ENABLING ENHANCED FEATURES ......................................................................................................................37
7.1
Enabling Enhanced Features (Enhanced Mode).....................................................................................37
7.2
Disabling Enhanced Features (Normal Mode)........................................................................................37
8. ANALOG INPUT RANGES AND RESOLUTION.......................................................................................................38
8.1
Unipolar and Bipolar Inputs ...................................................................................................................38
8.2
Input Ranges and Resolution ...................................................................................................................38
8.3
A/D Conversion Formulas .......................................................................................................................39
8.4
Correlation between A/D Code and Input Voltage..................................................................................39
9. PERFORMING AN A/D CONVERSION ..................................................................................................................41
9.1
Select the input channel or input channel range .....................................................................................41
9.2
Select the analog input range ..................................................................................................................42
9.3
Wait for the analog circuit to settle .........................................................................................................42
9.4
Start an A/D conversion on the current channel .....................................................................................42
9.5
Wait for the conversion to finish..............................................................................................................42
9.6
Read the A/D data....................................................................................................................................42
9.7
Convert the numerical data to a meaningful value..................................................................................42
10.
A/D SAMPLING METHODS ............................................................................................................................43
10.1 Sampling Modes ......................................................................................................................................43
10.2 FIFO Description ....................................................................................................................................44
10.3 Scan Sampling .........................................................................................................................................44
10.4 Sequential Sampling ................................................................................................................................44
11.
HOW TO PERFORM A/D CONVERSIONS USING INTERRUPTS ..........................................................................45
12.
ANALOG OUTPUT RANGES AND RESOLUTION ...............................................................................................46
12.1 Description ..............................................................................................................................................46
12.2 Resolution ................................................................................................................................................46
12.3 Full-Scale Range Selection......................................................................................................................46
DMM-32DX-AT User Manual Rev A
Page 2