Download Digital Gamma Finder (DGF)

Transcript
6. Wait for CSR bit 7
to be zero (DSP no
longer uses EM)
XXX
(PLX I/O
function)
Read_CSR
(F1,A0, CSR value)
7. Read Nw32 words
from EM
XXX
(PLX I/O
function)
USB readout, Nw8512 bytes
8. Clear CSR bit 2 to
release EM to DSP
XXX
(PLX I/O
function)
Write_CSR
(F17,A0, CSR value)
9. Set DBLBUFCSR
bit 1 to indicate host
has read.
XXX
(PLX I/O
function)
Write_TSAR
(F17,A1,
Address of DBLBUDCSR.)
Write_Data
(F16,A0, DBLBUFCSR value)
only save Nw8 bytes, not
Nw8512
10. Save to file.
omit upper half
of last 32bit
word if Nwords
is odd
EM address block 1 = 128K
EM address block 2 = 192K
9.6 MCA data readout
The procedure to read out the MCA data in the Pixie-4 and the DGF Rev. F is very similar to
reading list mode data from external memory (see above). MCA datacan be read at any time.
In the DGF Rev. E, the MCA data is paged through the DSP and can only be read when the
run is stopped. (as described in the DGF Rev. E user/programmer manuals).
Step
1. Set CSR bit 2 to
indicate host access
to EM
2. Wait for CSR bit
7 to be zero (DSP
no longer uses EM)
3. Read 128K
words from EM
Pixie-4
XXX
(PLX I/O function)
DGF Rev. F
Write_CSR
(F17,A0, CSR value)
XXX
(PLX I/O function)
Read_CSR
(F1,A0, CSR value)
XXX
(PLX I/O function)
USB readout, 512K
bytes
4. Clear CSR bit 2
to release EM to
DSP
5. Save to file
XXX
(PLX I/O function)
Write_CSR
(F17,A0, CSR value)
30
Notes
EM address is 0
DGF-4C – Pixie-4 Differences V1.2
© XIA 2009. All rights reserved.