CAEN
Electronic Instrumentation
UM5175
–
V2495/VX2495 User Manual rev. 1
50
11.4
Gate Pattern Demo Description
Introduction
In this example, a logic combination of the input port signals A and B is sent to the C connector (32 lines). The user can
choose the output among 10 available options by setting the 4 LSBs of the control register (see the register list). Apart
from the value of A, B, A AND B and A OR B, the aforementio
ned signals in “capture” mode (a
bit is set whenever a
signal shows up) can be selected.
Register Map
In this example, 9 registers are used, 5 of which (MONITOR registers) can only be read and 4 (CONTROL registers) can
be both read and written. All registers are 32 bit wide and can be accessed in single access mode.
ADDRESS
REGISTER/CONTENT
ACCESS MODE
Read/Write
Base + 0x1000
Base + 0x1004
Base + 0x1008
Base + 0x100C
Base + 0x1010
Base + 0x1800
Base + 0x1804
Base + 0x1808
Base + 0x180C
Firmware version
Value of port A (input)
Value of port B (input)
Value of port C (output)
Status register
Mask of input port A
Mask of input port B
Control register
User Value of port C
A24/A32
A24/A32
A24/A32
A24/A32
A24/A32
A24/A32
A24/A32
A24/A32
A24/A32
D16/D32
D16/D32
D16/D32
D16/D32
D16/D32
D16/D32
D16/D32
D16/D32
D16/D32
R
R
R
R
R
R/W
R/W
R/W
R/W
Register Description
➢
FIRMWARE REVISION register:
Contains the firmware revision number.
Address:
0x1000.
Mode:
Read only.
Bit
Description
[31:0]
Firmware revision progressive number
➢
A-PORT VALUE register:
Contains the 32 input bits of port A.
Address:
0x1004.
Mode:
Read only.
Bit
Description
[31:0]
Input value of Port A
➢
B-PORT VALUE register:
Contains the 32 input bits of port B.
Address:
0x1008.
Mode:
Read only.
Bit
Description
[31:0]
Input value of Port B
➢
C-PORT VALUE register:
Contains the 32 output bits of port C (selectable by the user in this demo).
Address:
0x100C.
Mode:
Read only.
Bit
Description
[31:0]
Output value of port C