beautypg.com

Spectrum Brands MI.20xx User Manual

Page 4

background image

4

Programming the Board .................................................................................................. 36

Overview .......................................................................................................................................................................... 36
Register tables ................................................................................................................................................................... 36
Programming examples....................................................................................................................................................... 36
Error handling.................................................................................................................................................................... 36
Initialization....................................................................................................................................................................... 37

Starting the automatic initialization routine ...................................................................................................................... 37
PCI Register ................................................................................................................................................................. 37
Hardware version......................................................................................................................................................... 38
Date of production........................................................................................................................................................ 38
Serial number .............................................................................................................................................................. 38
Maximum possible sample rate ...................................................................................................................................... 38
Installed memory .......................................................................................................................................................... 38
Installed features and options ......................................................................................................................................... 39
Used interrupt line ........................................................................................................................................................ 39
Used type of driver ....................................................................................................................................................... 39

Powerdown and reset ......................................................................................................................................................... 40

Analog Inputs.................................................................................................................. 41

Channel Selection .............................................................................................................................................................. 41

Important note on channels selection............................................................................................................................... 41

Setting up the inputs ........................................................................................................................................................... 42

Input ranges................................................................................................................................................................. 42
Input offset................................................................................................................................................................... 43
Input termination........................................................................................................................................................... 44
Automatical adjustment of the offset settings..................................................................................................................... 44

Standard acquisition modes ............................................................................................ 45

General Information ........................................................................................................................................................... 45
Programming ..................................................................................................................................................................... 45

Memory, Pre- and Posttrigger ......................................................................................................................................... 45
Starting without interrupt (classic mode)........................................................................................................................... 46
Starting with interrupt driven mode ................................................................................................................................. 46
Data organization ........................................................................................................................................................ 47
Sample format.............................................................................................................................................................. 47
Reading out the data with SpcGetData............................................................................................................................ 47

FIFO Mode....................................................................................................................... 49

Overview .......................................................................................................................................................................... 49

General Information...................................................................................................................................................... 49
Background FIFO Read ................................................................................................................................................. 49
Speed Limitations.......................................................................................................................................................... 49

Programming ..................................................................................................................................................................... 50

Software Buffers ........................................................................................................................................................... 50
Buffer processing.......................................................................................................................................................... 51
FIFO mode .................................................................................................................................................................. 52
Example FIFO acquisition mode ..................................................................................................................................... 52
Data organization ........................................................................................................................................................ 52
Sample format.............................................................................................................................................................. 53

Clock generation ............................................................................................................. 54

Overview .......................................................................................................................................................................... 54
Internally generated sample rate .......................................................................................................................................... 54

Standard internal sample rate ........................................................................................................................................ 54
Using plain quartz with no PLL........................................................................................................................................ 55
Direct external clock ..................................................................................................................................................... 55
External clock with divider ............................................................................................................................................. 57

Trigger modes and appendant registers .......................................................................... 58

General Description............................................................................................................................................................ 58
Software trigger ................................................................................................................................................................. 58
External TTL trigger ............................................................................................................................................................. 58

Edge triggers ............................................................................................................................................................... 59
Pulsewidth triggers........................................................................................................................................................ 60

Channel Trigger ................................................................................................................................................................. 62

Overview of the channel trigger registers......................................................................................................................... 62
Triggerlevel.................................................................................................................................................................. 63
Detailed description of the channel trigger modes............................................................................................................. 65