Omega DAQP-208, 208H, 308 user manual

Models: 308 DAQP-208 208H

1 61
Download 61 pages 47.35 Kb
Page 48
Image 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

Page 48
Image 48
Omega DAQP-208, 208H, 308 user manual