EMM-8EL-XT Driver User Manual A.0 www.diamondsystems.com Page 2
CONTENTS
1. Introduction ....................................................................................................................................................... 3
2. Hardware overview ........................................................................................................................................... 4
2.1 Description .................................................................................................................................................. 4
2.2 Specifications ............................................................................................................................................. 4
3. General programming guidelines .................................................................................................................... 5
3.1 Initialization and exit function calls ............................................................................................................. 5
3.2 Error handling ............................................................................................................................................. 6
4. Emerald-MM-8EL Driver API Description ........................................................................................................ 7
4.1 EMM8EL_GetConfig .................................................................................................................................. 7
4.2 EMM8EL_SetConfig ................................................................................................................................... 7
4.3 EMM8EL_SerialPortConfig ........................................................................................................................ 8
4.4 EMM8EL_SerialPortEnable ........................................................................................................................ 9
4.5 EMM8EL_SerialPowerConfig ................................................................................................................... 10
4.6 EMM8EL_IOConfig .................................................................................................................................. 10
4.7 EMM8EL_ADConfig ................................................................................................................................. 11
4.8 EMM8EL_ADConvert ............................................................................................................................... 11
4.9 EMM8EL_DIOInput .................................................................................................................................. 12
4.10 EMM8EL_DIOInputBit .............................................................................................................................. 12
4.11 EMM8EL_DIOOutput ............................................................................................................................... 13
4.12 EMM8EL_DIOOutputBit ........................................................................................................................... 13
4.13 EMM8EL_LED .......................................................................................................................................... 14
4.14 EMM8EL_INIT .......................................................................................................................................... 14
4.15 EMM8EL_Write ........................................................................................................................................ 15
4.16 EMM8EL_Read ........................................................................................................................................ 15
4.17 EMM8EL_Reset ....................................................................................................................................... 16
4.18 EMM8EL_Status....................................................................................................................................... 16
5. Emerald-MM-8EL Driver Demo Application Description ............................................................................. 17
5.1 EMM8ELXT .............................................................................................................................................. 17
6. EMERALD-MM-8EL Driver Demo Application Usage Instructions ............................................................ 18
6.1 EMM8ELXT .............................................................................................................................................. 18
7. Common Task Reference ............................................................................................................................... 20
7.1 Data Acquisition Feature Overview .......................................................................................................... 20
7.2 Data Acquisition Software Task Reference .............................................................................................. 20
7.3 Performing Digital IO Operations ............................................................................................................. 21
7.4 Performing A/D Sample ............................................................................................................................ 22
8. Interface Connector Details ........................................................................................................................... 23
8.1 Serial Ports 1-8 (Port 1-8) ........................................................................................................................ 23
8.2 Data Acquisition (DAQ) ............................................................................................................................ 24