Omega DAQP-208, 208H, 308 user manual

Page 48

5.2.3 Status Register (base + 2)

The status register is read only and shares the same offset as the control register. It reports data FIFO flag, A/D interrupt and A/D conversion status. Table 5-13 lists the status register bit definition.

Table 5-13. Status Register Bit Definition

 

Bit

 

Status

 

Explanation

 

 

 

 

 

 

7

 

Scanning status

 

0/1 : busy / idle

 

 

 

6

 

A/D running status

 

0/1 : no / yes

 

 

 

5

 

Data lost event

 

0/1 : no / yes

 

 

 

4

 

End of scan event

 

0/1 : no / yes

 

 

 

3

 

FIFO threshold event

 

0/1 : no / yes

 

 

 

2

 

Data FIFO full

 

0/1 : false / true

 

 

 

1

 

Data FIFO almost full

 

0/1 : false / true

 

 

 

0

 

Data FIFO empty

 

0/1 : false / true

 

 

 

 

 

 

 

 

 

 

Bit 7 shows the scan status and is set to “0” when the DAQP card is scanning the input channels specified by the scan list and then “1” upon scan completion.

Bit 6 is the A/D running flag. A “1” here indicates indicates the DAQP card has been triggered and is acquiring data (busy), while a “0” means it is idle. If the pre-trigger is selected, this bit will be set as soon as the arm command is received. If pre-trigger is not selected, then this bit will be set after a trigger is received.

Bit 3, 4 and 5 are the event latches. When an event is detected, the corresponding bit will be set to “1” until the status register is read which then clears all event bits to “0”. Bit 5 is used for data lost events, bit 4 for end-of-scan (EOS) events and bit 3 for the FIFO threshold event. When the corresponding interrupt is enabled, a “1” in bit 3 (or bit 4) will also cause an interrupt. Bits 0, 1 and 2 are the data FIFO flags.

Each time the status register is read, the latched events (bits 3, 4 and 5) will be cleared. This structure is very efficient, yet it can cause events to be lost if the read action overwrites the event setting so that the corresponding event gets lost. This can be critical in a tight “check-and-wait” loop where the status register is read and checked for the expected events to occur.

DAQP-208/208H/308 Users Manual

48

Image 48
Contents DAQP-208/208H/308 Type II Pcmcia Data Acquisition Adapter sWARRANTY/DISCLAIMER Servicing North America For immediate technical or application assistanceServicing 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