![Spectrum PCI.212 Hardware Manual, Driver Manual Download Page 18](http://html.mh-extra.com/html/spectrum/pci-212/pci-212_hardware-manual-driver-manual_1344471018.webp)
PCI.212 Manual
31.03.2004
Page 18 of 25
Hints for programming the boards
Programming an ISA board is done in the following steps:
initialise and define boards with function
SpcInitBoard
(Windows NT: utility DRVCONFG.EXE)
set installation parameters like address, installed memory, version with function
SpcSetParam
set user specific parameters and start board (loop)
Programming an PCI board is done by the following steps:
initialise PCI boards automatically with function
SpcInitPCIBoards
read out installation parameters for all found PCI boards like version, installed memory
set user specific parameters and start board (loop)
If you are using ISA and PCI boards in one system at the same time, use the function
SpcInitPCIBoards
first and initialise the ISA
boards after this. The function
SpcInitPCIBoards
uses the first board numbers and will overwrite other definitions.
It is only necessary to define the boards once for the driver with the functions
SpcInitPCIBoards
and
SpcInitBoard
. If you are defining the
boards again, you will get an error code from the function and the old definition is still used. You may ignore this error.
Software - Register
These software register are to be used for the functions
SpcSetParam
and
SpcGetParam
of the software driver. All constants are found in
the header file REGS.H.
PCI register
These Registers are set by the driver after PCI initialisation. The information is found in the on-board ROM. The program PCITEST.EXE on
the driver disk will give the same informations.
register name
reg no.
r/w
SPC_PCITYP
2000
r
type of board as listed above
SPC_PCIVERSION
2010
r
board revision: high part in bit 8..15, Low part in bit 0..7
SPC_PCIDATE
2020
r
production date: month in bit 0..7, year in bit 16..31
SPC_PCISERIALNO
2030
r
serial number of the PCI.212
SPC_PCISAMPLERATE
2100
r
max. samplerate as 32 bit integer value
SPC_PCIMEMSIZE
2110
r
installed memory in bytes as 32 bit integer value
SPC_PCIFEATURES
2120
r
installed features as a bitfield. See description beneath.
PCI Features register
Bit 31
not used
...
Bit 8
not used
Bit 7
option synchronisation master: board is clock-master for synchronisation
Bit 6
option synchronisation slave : board is clock-slave for synchronisation.
Bit 5
not used
Bit 4
3
rd
channel installed.
Bit 3
not used
Bit 2
not used
Bit 1
digital inputs installed.
Bit 0
not used
Status register
Status information can be read at any time. The other parameters can only be written and the data can be read if the board is stopped.
register name
reg no.
r/w
SPC_STATUS
10
r
Status register, values listed below.
status code
value
SPC_RUN
0
Board is running.
SPC_TRIGGER
10
Trigger has been found, data is recorded.
SPC_READY
20
Recording has stopped.