7.5 BADR3

The I/O Region defined by BADR3 contains data and control registers for the ADC Pacer, Pre/Post-Trigger Counters, User Counters and Digital I/O bytes. The PCI-DAS1000 has two 8254 counter/timer devices. These are referred to as 8254A and 8254B and are assigned as shown below:

Device

Counter #

Function

 

 

 

8254A

0

ADC Post-Trigger Sample Counter

 

 

 

8254A

1

ADC Pacer Lower Divider

 

 

 

8254A

2

ADC Pacer Upper Divider

 

 

 

8254B

0

User Counter #3 & ADC Pre-Trigger Index

 

 

Counter

 

 

 

8254B

1

User Counter #4

 

 

 

8254B

2

User Counter #5

 

 

 

 

 

 

All reads/writes to BADR3 are byte operations.

7.5.1 ADC PACER CLOCK DATA AND CONTROL REGISTERS

8254A COUNTER 0 DATA - ADC POST TRIGGER CONVERSION COUNTER

BADR3 + 0

READ/WRITE

7

6

5

4

2

3

1

0

 

 

 

 

 

 

 

 

D7

D6

D5

D4

D3

D2

D1

D0

 

 

 

 

 

 

 

 

Counter 0 is used to stop the acquisition when the desired number of samples have been gathered. It essentially is gated on when a 'residual' number of conversions remain. The main counting of samples is done by the Interrupt Service Routine, which will increment each time by 'packets' equal to 1/2 FIFO. Generally the value loaded into Counter 0 is N mod 1024, where N is the total count, or the post trigger count, since Total count is not known when pre-trigger is active. Counter 0 will be enabled by use of the ARM bit (BADR1 + 4) when the next-to-last 1/2-full interrupt is processed. Counter 0 is to operated in Mode 0.

8254A COUNTER 1 DATA - ADC PACER DIVIDER LOWER

BADR3 + 1

READ/WRITE

7

6

5

4

2

3

1

0

 

 

 

 

 

 

 

 

D7

D6

D5

D4

D3

D2

D1

D0

 

 

 

 

 

 

 

 

26

Page 29
Image 29
Omega Speaker Systems PCI-DAS1001 manual ADC Pacer Clock Data and Control Registers, BADR3 +, Device Counter # Function