
Hercules-EBX CPU User Manual V1.02 Page 3
8.2.1 RS-232 Mode ..........................................................................................................................................51
8.2.2 RS-485 Mode ..........................................................................................................................................51
8.3 PS/2 Ports................................................................................................................................ 52
8.4 USB Ports................................................................................................................................ 52
9. NOTES ON OPERATING SYSTEMS AND BOOTING PROCEDURES ............................................... 53
9.1 Windows Operating Systems Installation Issues ..................................................................... 53
9.1.1 Driver installation ...................................................................................................................................53
9.1.2 BIOS Settings for Windows....................................................................................................................53
9.1.3 CompactFlash Under Windows...............................................................................................................54
9.2 DOS Operating Systems Installation Issues ............................................................................ 54
9.3 CompactFlash Compatability Issues under DOS .......................Error! Bookmark not defined.
10. DATA ACQUISITION CIRCUIT – I/O MAP AND REGISTER DESCRIPTIONS ...................................... 55
10.1 Data Acquisition Circuitry I/O Map........................................................................................ 56
10.1.1 Base Address.........................................................................................................................................56
Register Map Bit Assignments.........................................................................................................................58
10.1.2 Page 0 Register Definitions...................................................................................................................62
10.1.3 Page 1 Register Definitions...................................................................................................................72
10.1.4 Page 2 Register Definitions...................................................................................................................76
10.1.5 Page 3 Register Definitions...................................................................................................................77
11. DATA ACQUISITION CIRCUIT CONFIGURATION ............................................................................ 78
12. ANALOG-TO-DIGITAL INPUT RANGES AND RESOLUTION ............................................................. 79
12.1.1 Overview...............................................................................................................................................79
12.1.2 Input Range Selection ...........................................................................................................................79
12.1.3 Input Range Table.................................................................................................................................79
12.2 Performing an A/D Conversion............................................................................................... 80
12.2.1 Select the input channel ........................................................................................................................80
12.2.2 Select the input range............................................................................................................................80
12.2.3 Wait for analog input circuit to settle....................................................................................................80
12.2.4 Perform an A/D conversion on the current channel ..............................................................................81
12.2.5 Wait for the conversion to finish...........................................................................................................81
12.2.6 Read the data from the board ................................................................................................................81
12.2.7 Convert the numerical data to a meaningful value ................................................................................83
12.3 A/D Scan, Interrupt, and FIFO Operation .............................................................................. 84
12.4 Hercules-EBX A/D Operating Modes...................................................................................... 85
13. DIGITAL-TO-ANALOG OUTPUT RANGES AND RESOLUTION.......................................................... 87
13.1 Description.............................................................................................................................. 87
13.2 Resolution................................................................................................................................ 87
13.3 Output Range Selection ........................................................................................................... 87
13.4 D/A Conversion Formulas and Tables .................................................................................... 88
13.4.1 Generating an Analog Output ...............................................................................................................90
13.4.2 Compute the D/A code for the desired output voltage ..........................................................................90
13.4.3 Write the value to the selected output channel Registers ......................................................................90
13.4.4 Set Registers for Channel......................................................................................................................90
13.4.5 Wait for the D/A to update....................................................................................................................91
13.5 Analog Circuit Calibration Resources .................................................................................... 92
13.6 Analog Circuit Calibration Procedures .................................................................................. 93
13.7 Using EEPROM ...................................................................................................................... 94
13.7.1 Reading Value from EEPROM .............................................................................................................94
13.7.2 Writing value to EEPROM ...................................................................................................................94
13.8 Digital I/O Operation.............................................................................................................. 95
13.9 Special Digital I/O Operation – Port E................................................................................... 96
13.9.1 DIO Handshaking Operation.................................................................................................................97
13.9.2 DIO Pull-up/Down Settings ..................................................................................................................97
14. COUNTER/TIMER OPERATION..................................................................................................... 99
14.1 Counter 0 – A/D Sample Control ............................................................................................ 99
14.2 Counter 1 – Counting/Totalizing Functions ............................................................................ 99
14.3 Command Sequences............................................................................................................. 100
15. PULSE-WIDTH MODULATION OPERATION ................................................................................ 102
15.1 Pulse-Width Modulation Example......................................................................................... 103
16. WATCHDOG TIMER PROGRAMMING.......................................................................................... 105
16.1 Example : Watchdog Timer With Software Trigger .............................................................. 105
16.2 Example : Watchdog Timer With Hardware Trigger ............................................................ 106
17. DATA ACQUISITION SPECIFICATIONS........................................................................................ 107