60
M2i.30xx / M2i.30xx-exp Manual
Gathering information from the card
Programming the Board
.
Hardware version
Since all of the boards from Spectrum are modular boards, they consist of one base board and one or two piggy-back front-end modules and
eventually of an extension module like the star-hub. Each of these three kinds of hardware has its own version register. Normally you do not
need this information but if you have a support question, please provide the revision together with it.
If your board has a additional piggy-back extension module mounted you can get the hardware version with the following register.
Production date
This register informs you about the production date, which is returned as one 32 bit long word. The lower word is holding the information
about the year, while the upper word informs about the week of the year.
The following example shows how to read out a date and how to interpret the value:
Last calibration date (analog cards only)
This register informs you about the date of the last factory calibration. When receiving a new card this date is similar to the delivery date
when the production calibration is done. When returning the card to calibration this information is updated. This date is not updated when
just doing an on-board calibration by the user. The date is returned as one 32 bit long word. The lower word is holding the information about
the year, while the upper word informs about the week of the year.
Card type
Card type as
defined in
regs.h
Value hexadec-
imal
Value decimal
Card type as
defined in
regs.h
Value hexadec-
imal
Value decimal
M2i.3010
TYP_M2I3010
33010h
208912
M2i.3022
TYP_M2I3022
33022h
208930
M2i.3011
TYP_M2I3011
33011h
208913
M2i.3023
TYP_M2I3023
33023h
208931
M2i.3012
TYP_M2I3012
33012h
208914
M2i.3024
TYP_M2I3024
33024h
208932
M2i.3013
TYP_M2I3013
33013h
208915
M2i.3025
TYP_M2I3025
33025h
208933
M2i.3014
TYP_M2I3014
33014h
208916
M2i.3026
TYP_M2I3026
33026h
208934
M2i.3015
TYP_M2I3015
33015h
208917
M2i.3027
TYP_M2I3027
33027h
208935
M2i.3016
TYP_M2I3016
33016h
208918
M2i.3031
TYP_M2I3031
33031h
208945
M2i.3020
TYP_M2I3020
33020h
208928
M2i.3032
TYP_M2I3033
33033h
208947
M2i.3021
TYP_M2I3021
33021h
208929
M2i.3010-exp
TYP_M2I3010EXP
43010h
274448
M2i.3022-exp
TYP_M2I3022EXP
43022h
274466
M2i.3011-exp
TYP_M2I3011EXP
43011h
274449
M2i.3023-exp
TYP_M2I3023EXP
43023h
274467
M2i.3012-exp
TYP_M2I3012EXP
43012h
274450
M2i.3024-exp
TYP_M2I3024EXP
43024h
274468
M2i.3013-exp
TYP_M2I3013EXP
43013h
274451
M2i.3025-exp
TYP_M2I3025EXP
43025h
274469
M2i.3014-exp
TYP_M2I3014EXP
43014h
274452
M2i.3026-exp
TYP_M2I3026EXP
43026h
274470
M2i.3015-exp
TYP_M2I3015EXP
43015h
274453
M2i.3027-exp
TYP_M2I3027EXP
43027h
274471
M2i.3016-exp
TYP_M2I3016EXP
43016h
274454
M2i.3031-exp
TYP_M2I3031EXP
43031h
274481
M2i.3020-exp
TYP_M2I3020EXP
43020h
274464
M2i.3032-exp
TYP_M2I3033EXP
43033h
274483
M2i.3021-exp
TYP_M2I3021EXP
43021h
274465
Register
Value
Direction
Description
SPC_PCIVERSION
2010
read
Base card version: the upper 16 bit show the hardware (PCB) version, the lower 16 bit show the firm-
ware version.
SPC_PCIMODULEVERSION
2012
read
Module version: the upper 16 bit show the hardware (PCB) version, the lower 16 bit show the firm-
ware version.
Register
Value
Direction
Description
SPC_PCIEXTVERSION
2011
read
Extension module version: the upper 16 bit show the hardware (PCB) version, the lower 16 bit show
the firmware version.
Register
Value
Direction
Description
SPC_PCIDATE
2020
read
Production date: week in bits 31 to 16, year in bits 15 to 0
spcm_dwGetParam_i32 (hDrv, SPC_PCIDATE, &lProdDate);
printf ("Production: week &d of year &d\n“, (lProdDate >> 16) & 0xffff, lProdDate & 0xffff);
Register
Value
Direction
Description
SPC_CALIBDATE
2025
read
Last calibration date: week in bit 31 to 16, year in bit 15 to 0