Omega 208H, DAQP-208, 308 user manual A/D State Machine, Fifo

Page 34

4.9 A/D State Machine

The DAQP card has an internal state machine that controls A/D operation, (see Figure 4-1). The state machine defaults to S0 after power up or reset. The normal state flow would be first S0 to S3, initiated by a scan list (queue) flush command (RSTQ). Then the queue must be programmed by writing into the queue (base + 1). With the queue being programmed, the next step is moving the state machine from S3 back to S0. This is done by issuing a flush data FIFO command (RSTF), which sets up the gain and channel selections for the first channel in the scan list and then waits for a trigger to start the scan. When the trigger (ADCLK) comes, the state machine moves from S0 to S1 and then A/D conversion is started. The state machine will wait at S2 until the conversion is completed. It then moves to S4, where the A/D conversion result is written into the data FIFO. The scan rate is determined by the time the state machine moves from S1 to S4, which can be programmed as either 10, 20 or 40 ms. If there are more channels left in the scan list, the state machine will skip to S1 for another conversion loop. Otherwise it will return to S0, waiting for another trigger (or a sampling pulse from the pacer clock if in continuous trigger mode). Any time during data acquisition, an A/D stop command will stop the data acquisition by moving the state machine back to S0.

ADCLK (trigger)

Wait (A/D conversion)

 

 

S0

S1

S2

RSTF >

< RSTQ

 

< Channels

scan

 

remaining

data

list flush

 

 

FIFO

 

 

 

flush

S3

 

S4

 

 

 

 

 

< Scan list completed

Figure 4-1. Transition Diagram of A/D Conversion Process

It is important that the sequence of S0-S3-S0 be followed as described above. The user must issue two commands to the DAQP card: the flush scan list command (RSTQ) and the flush data FIFO command (RSTF). This guarantees that the scan list and the data FIFO are flushed properly for the expected data acquisition. Once the flush data FIFO command is issued, the DAQP card will prepare the first channel in the scan list and then return to state S0 waiting for the first trigger. Anytime the data FIFO is flushed, the default threshold setting will be restored (7 bytes to full) by the hardware. The data FIFO threshold should always be programmed after flushing if the required threshold is different from the default threshold.

DAQP-208/208H/308 Users Manual

34

Image 34
Contents DAQP-208/208H/308 Type II Pcmcia Data Acquisition Adapter sWARRANTY/DISCLAIMER For immediate technical or application assistance Servicing North AmericaServicing Europe Page Page Table of Contents Page Daqp Series Card Output Connector List of Figures and TablesIntroduction Hardware Configuration and Initial Setup Page Software Installation Windows NT Page Data Acquisition Software and Drivers DAQPACL.SYS DAQPAEN.EXE Page Device = C\DAQPACL.SYS Device = C\DAQPACL.SYS b300,i5 Page Page Page Device = C\DAQPAEN.EXE S0,r Field Wiring GND DA0 DA1CP-DAQPA Cable Assembly GNDDaqp Series Card Cable Mapping UIO-37 Screw Terminal Block UIO-37 Terminal BlockDC/DC Power Supply Theory of OperationAnalog Input Multiplexer Programmable Gain Control AmplifierScan List Register Trigger Circuit A/D Converter and Data Fifo Interrupt and Status Digital I/OA/D State Machine FifoTimer/Counter 10 D/A CircuitPage O Registers Pcmcia InterfaceSreset Address Map Bit Page Data Fifo Threshold Setting LSB 1080 Select channel 0, gain 2, 1st entry Page Page Page Page Digital input bit External gain select, high bit All Output Flush scan list command High byte of the almost full threshold 15 2K option 18. D/A Data Port Bit Definition Bits Explanation 15-13 19. D/A Update Modes 20. Timer/Counter Modes Page Page Page Specifications TTL DAQP-208/208H/308 Version April 12