|
BC (board controller) instructions are preceeded by the keyword BC .
All BC READ instructions read the data from the BC's into the RCU result memory.
The BC instructions are
- WRITE TEMPERATURE THRESHOLD < chip_address | BROADCAST > value(
T_TH ) - Write the temperature threshold. Default is
which is equivilant to 0xA0 . That is, each increment is .
- READ TEMPERATURE THRESHOLD < chip_address >(
T_TH ) - Read the temperature threshold of a board.
- WRITE ANALOG VOLTAGE THRESHOLD < chip_address | BROADCAST > value(
AV_TH ) - Write the analog voltage threshold. Default is
which is equivilant to 0x330 . That is, each increment is roughly .
- READ ANALOG VOLTAGE THRESHOLD < chip_address (
AV_TH ) > - Read the analog voltage threshold of a board.
- WRITE ANALOG CURRENT THRESHOLD < chip_address | BROADCAST > value(
AC_TH ) - Write the analog current threshold. Default is
which is equivilant to 0x2C . That is, each increment is roughly .
- READ ANALOG CURRENT THRESHOLD < chip_address (
AC_TH ) > - Read the analog current threshold of a board.
- WRITE DIGITIAL VOLTAGE THRESHOLD < chip_address | BROADCAST > value(
DV_TH ) - Write the digitial voltage threshold. Default is
which is equivilant to 0x280 . That is, each increment is roughly .
- READ DIGITIAL VOLTAGE THRESHOLD < chip_address (
DV_TH ) > - Read the digitial voltage threshold of a board.
- WRITE DIGITIAL CURRENT THRESHOLD < chip_address | BROADCAST > value(
DC_TH ) - Write the digitial current threshold. Default is
which is equivilant to 0x40 . That is, each increment is roughly .
- READ DIGITIAL CURRENT THRESHOLD < chip_address (
DC_TH ) > - Read the digitial current threshold of a board.
- READ TEMPERATURE < chip_address (
TEMP ) > - Read the temperature of a board. One count is
- READ ANALOG VOLTAGE < chip_address (
AV ) > - Read the analog voltage of a board. One count is
- READ ANALOG CURRENT < chip_address (
AC ) > - Read the analog current of a board. One count is
- READ DIGITAL VOLTAGE < chip_address (
DV ) > - Read the digital voltage of a board. One count is
- READ DIGITAL CURRENT < chip_address (
DC ) > - Read the digital current of a board. One count is
- READ TRIGGER ONE COUNTER < chip_address (
L1CNT ) > - Read the trigger one counter of a board.
- READ TRIGGER TWO COUNTER < chip_address (
L2CNT ) > - Read the trigger two counter of a board.
- READ SAMPLE CLOCK COUNTER < chip_address (
SLCKCNT ) > - Read the sample clock counter of a board.
- READ DATA STROBE COUNTER < chip_address (
DSTBCNT ) > - Read the data strobe counter of a board.
- WRITE TEST MODE WORDS < chip_address | BROADCAST > value(
TSMWORD ) - Write the test mode words. Default is
0x1
- READ TEST MODE WORDS < chip_address > (
TSMWORD ) - Read the test mode words of a board.
- WRITE UNDER SAMPLE < chip_address | BROADCAST > value(
USRATIO ) - Write the under sample. Default is
0x1
- READ UNDER SAMPLE < chip_address > (
USRATIO ) - Read the under sample of a board.
- WRITE ZERO CONFIG < chip_address | BROADCAST > value(
CSR0 ) - Write the zero config. Default is
0x3FF .
bits | Flag |
0-7 | Interrupt mask |
8-9 | Error mask |
10 | enable for continues mode. |
- READ ZERO CONFIG < chip_address > (
CSR0 ) - Read the zero config of a board.
- WRITE FIRST CONFIG < chip_address | BROADCAST > value(
CSR1 ) - Write the first config (error flags). Default is
?
bit | Flag |
0 | temperature over threshold |
1 | analog voltage over threshold |
2 | analog current over threshold |
3 | digital voltage over threshold |
4 | digital current over threshold |
5 | PASA power supply error |
6 | ALTRO power supply error |
7 | missed sample clocks |
8 | parity error |
9 | instruction error |
10 | ALTRO error flag |
11 | Slow control error flag |
12 | General error |
13 | interrupt |
- READ FIRST CONFIG < chip_address > (
CSR1 ) - Read the first config of a board.
- WRITE SECOND CONFIG < chip_address | BROADCAST > value(
CSR2 ) - Write the second config. Default is
0xF .
bit(s) | Flag |
0 | ALTRO switch |
1 | PASA switch |
2 | Readout clock enable |
3 | ADC clock enable |
4-5 | (Test mode) ADC address |
6-8 | (Test mode) ALTRO address |
9 | (Test mode) continous test mode | |
10 | (Test mode) card isolated | |
11-15 | Card address | |
- READ SECOND CONFIG < chip_address > (
CSR2 ) - Read the second config of a board.
- WRITE THIRD CONFIG < chip_address | BROADCAST > value(
CSR3 ) - Write the third config. Default is
0x2220 .
bit(s) | Flag |
0-7 | Read-out / sample clock warning ratio |
8-14 | ALTRO master watch dog |
15 | Conversion end |
- READ THIRD CONFIG < chip_address > (
CSR3 ) - Read the third config of a board.
|