
SIS Documentation
SIS3820
VME Scaler
Page 11 of 79
5 Getting
started
This section is intended for the first time SIS3820 user. In some cases it may be good enough
to use the provided header file and C examples to get acquainted to a couple of the modules
functions before looking at the other sections of the manual in more detail. If you have a
SIS1100/3100 PCI to VME interface under LINUX or under Win2K/XP with Visual C++ you
can use the provided example code without modifications.
5.1
Installation
•
Select addressing A32 or geographical address mode with J1 (factory default is A32)
•
Select base address with SW3 and SW4 in non geographical addressing (the default base
address setting is 0x38000000)
•
turn VME crate power off
•
install your SIS3820 board in the VME crate
•
connect inputs
•
turn VME crate power back on
•
verify, that the P (power) and R (ready) LEDs are on and all other LEDs are off after the
approximately 2s long power up self test cycle
5.2
LINUX example/test code
The file sis3820.tar.gz holds LINUX example programs, the sis3820.h header files and
Makefiles to generate the executables.
Initial VME access test
Both the user LED and readout of the Module Id. and firmware register provide a good way to
verify that proper initial communciation with the SIS3820 can be established.
5.2.1 User LED test
The program sis3820_led.c runs 30 cycles with the sequence user LED on, sleep(1), user LED
off, sleep(1).
5.2.2 Readout of Module Id. and firmware revision register
The program sis3820_readmodid.c reads and displays the module identification and firmware
register.
mki@mki:~/sis1100/sis3820> ./sis3820_readmodid
Module identification and firmware register reads: 38200102