Home
DP5 Programmer`s Guide
Contents
1. Purpose This requests that the DP5 perform some diagnostic tests and return a suite of diagnostic data Response If no errors are detected the DP5 will respond with the Diagnostic Data Response Packet PID1 0x82 PID2 5 Note the DP5 runs a full memory test on the 512KB SRAM which takes some time The DPS5 will respond with the Response Packet a maximum of 2 5s after receiving the Request Packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of the requested data Amptek Inc Page 22 of 140 DP5 Programmer s Guide Rev A4 4 1 8 Request packet Request Netfinder Packet SYNC1 SYNC2 PID1 pipo LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA 3 7 0 0 OxFE 0x07 Purpose This requests a Netfinder packet but through the active communications port The Netfinder packet is generally obtained via a broadcast on the TCP IP Netfinder socket See section 3 2 3 for details Response If no errors are detected the DP5 will respond with the Netfinder Packet Response Packet PID1 0x82 PID2 8 Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of the requested data Amptek Inc Page 23 of 140 D TEK DP5 Programmer s Guide Rev A4 4 1 9 Request pac
2. Purpose This response packet is returned in response to a Request Misc Data packet PID1 3 PID2 2 See the Write Misc Data Request Packet for information on writing the Misc Data Data Format The data field contains 512 bytes which is the Misc Data programmed via a Write Misc Data request packet The data can be binary ASCII etc This is stored in non volatile memory so it remains after the power is cycled Amptek Inc Page 58 of 140 D TEK DP5 Programmer s Guide Rev A4 4 2 17 Response packet Ethernet Settings LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 jam Sp Data Field ico a Offset O 1 2 3 4 5 6 30 31 32 Value oxF5 OxFA 0x82 4 o ox 9 Ethernet Varies settings Purpose This response packet is returned in response to a Request Ethernet Settings packet PID1 3 PID2 4 Data Format The data field contains 23 bytes of Ethernet Settings in the following format Offset Value 0 0 Use fixed IP address OxFF Get IP address from DHCP server 1 4 IP Address MSB LSB 5 8 IP Subnet Mask MSB LSB 9 12 IP Gateway Address MSB LSB 13 16 Reserved 17 18 Port MSB LSB fixed at 10001 for now 19 24 DP5 MAC Address Amptek Inc Page 59 of 140 DP5 Programmer s Guide Rev A4 4 2 18 Response packet Diagnostic Data LEN LEN CHKSUM CHKSUM SYNC1 SYNC2
3. Shaped channel peaking times TPEA down to 50nS Fast channel peaking times TPFA down to 50nS Feedback on this firmware documentation and VB demo should be sent to Dave Sperry dsperry amptek com 2 Installation 2 1 Uploading the new firmware FW 6 06 and FP5 11 This only needs to be performed if upgrading a DP5 from FW5 xx to FW6 xx Once a DP5 has FW6 00 or later the VB Demo application can be used to upload new firmware via any interface Note WinUSB should be installed as described in Section 3 1 below prior to connecting the upgraded DP5 s USB cable to the PC 1 The ZIP file containing the firmware and utilities need to be unzipped on to a local hard drive 2 Install the DPSLoader application by running SETUP EXE from DP5 Upload Utility SWSETUP 3 Run the DP5Loader application This requires an RS232 connection to the DP5 4 Select the COM port the DPS is connected to Click the Check Device Communications button If it locates the DPS then 5 Select the Upload Type as FPGA click Upload FPGA uC HEX File and select dp5_fpga_v511 mcs from wherever the ZIP file was unzipped 6 When the upload completes it says the power needs to be cycled on the DPS this isn t necessary but the DP5Loader application has to be closed and reloaded 7 Once DP5Loader is restarted click Check Device Comm again Then select uC for Upload Type click Upload FPGA u
4. Amptek Inc Page 8 of 140 TEK gt DP5 Programmer s Guide Rev A4 3 2 1 Ethernet Ports The DP5 supports two UDP ports for communication one port is for general communications fixed at UDP port 10001 in FW6 01 and probably programmable in later firmware releases and the other is for device discovery via the Silicon Labs Netfinder protocol UDP port 3040 3 2 2 General UDP Port By default the DP5 uses UDP port 10001 for communications Once a packet exchange has taken place on this port the socket is bound to the IP address and source port of the host it exchanged packets with Once the socket is bound packets from other IP addresses will be ignored After approx 4 5 seconds of inactivity on the socket the socket is reset so that it can once again connect to any IP To not allow other hosts to seize control of the DP5 the host can continue exchanging packets so that this timeout does not occur Interface keep alive Request Packets can be sent periodically if there is no other periodic traffic to keep the socket from resetting Or an Interface lock Request Packet can be sent in which case the socket will not be reset until power is cycled on the DP5 or the host removes the lock by sending an Interface keep alive allow sharing or Interface keep alive no sharing Request Packet Broadcast packets can be received by the General UDP Port which may be useful if multiple DP5s are on a subne
5. GPMC selects whether the G P counter is cleared when the MCA spectrum is cleared If GPMC OFF then the G P Counter is only cleared by the Clear G P Counter Request Packet An INVALID PARAMETER error will be returned if the parameter is not one of the values specified GPMC ON Clear the G P Counter when the spectrum is cleared Page 96 of 140 DP5 Programmer s Guide Rev A4 5 1 22 GPME General Purpose Counter Uses MCA Enable Command Parameter Units Default Dependencies Supported Related Description Errors Example Amptek Inc GPME ONIOF F none ON none FW6 00 and later GPED GPIN GPGA GPMC Clear G P Counter Request Packet GPME selects whether the G P Counter is gated by the internal MCA Enable signal or whether it is free running The MCA is disabled by Detector Reset if enabled see RESL GATE if enabled see GATE Preset Counts see PREC Preset Time see PRET Preset Real Time see PRER the MCA Enable and MCA Disable Request Packets and briefly during internal buffer operations An INVALID PARAMETER error will be returned if the parameter is not one of the values specified GPME ON Enable disable the G P Counter with the MCA Page 97 of 140 DP5 Programmer s Guide Rev A4 5 1 23 HVSE Command Parameter Units Default Range Dependencies Supported Description Errors Example
6. 8192 to 8191 75 ch 1 4 ch precision MCAC must be sent prior to SOFF FW6 00 and later SOFF can be used to specify the spectrum offset if desired Applying a positive offset will shift the spectrum up i e higher in energy while a negative offset shifts the spectrum down An INVALID PARAMETER error will be returned if the parameter is not within the range specified SOFF 10 5 Shift the spectrum up by 10 5 channels Page 131 of 140 DP5 Programmer s Guide Rev A4 5 1 57 TECS Turn On Off the PC5 Thermoelectric Cooler TEC Supply and Set the Temperature Command TECS Parameter IOF F Units K Default OFF Range 0 299K 0 1K precision Dependencies none Supported FW6 00 and later not supported on DP5G Description TECS turns the PC5 TEC supply on or off and sets the TEC temperature setpoint Errors An INVALID PARAMETER error will be returned if the specified temperature is outside the range listed A PC5 NOT PRESENT error will be returned if a PCS is not detected Example TECS 220K Turn on the TEC supply and cool to 220K or as cool as possible Amptek Inc Page 132 of 140 DP5 Programmer s Guide Rev A4 5 1 58 TFLA Command Parameter Units Range Default Dependencies Supported Related Description Errors Example Amptek Inc Select Flat Top Width TFLA HH HHH US microseconds The range is determined by the selected peaking time
7. DP5 Programmer s Guide Rev A4 5 1 48 SCAH Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc Set SCA High Threshold SCAH HHHH channel 8191 for all SCAs Depends on number of channels specified by MCAC 256 ch 0 255 512 ch 0 511 1024 ch 0 1023 2048 ch 0 2047 4096 ch 0 4095 8192 ch 0 8191 SCAI must precede SCAH FW6 00 and later SCAT SCAL SCAO SCAW is not indexed SCAH sets the high threshold for the SCA referenced by the SCA Index SCAD The low and high thresholds are exclusive for example SCAL 100 and SCAH 102 will only output events that occur in channel 101 An INVALID PARAMETER error will be returned if the parameter is outside the range 0 8191 it is not error checked with regard to the ranges listed If SCAL is set higher than SCAH no error is generated but no events will be output or counted as this is an impossible condition SCAI 2 Set the SCA Index to 2 enable SCA2 output as active high SCAL 100 Set the SCA2 LLD to channel 100 SCAH 200 Set the SCA2 HLD to channel 200 Page 123 of 140 DP5 Programmer s Guide Rev A4 5 1 49 SCAI Set SCA Index Command SCAI Parameter Units none Default none Range 1 16 Dependencies Supported FW6 00 and later Related SCAL SCAH SCAO SCAW is not indexed Description SCATis used in conjunction with th
8. DP5 Programmer s Guide Rev A4 DPS Programmer s Guide Amptek Inc 14 Deangelo Drive Bedford MA 01730 PH 1 781 275 2242 FAX 1 781 275 3470 sales amptek com www amptek com Note This document applies to the Amptek DP5 PX5 DP5G and products derived from these X123SDD Gamma Rad5 Table of Contents Chang TAS sic aces eases iced snc ecna se ta suete Cetceetalctanesst pen leadanea pedltene salle wets shdeautadiaeedasleaceslldablapsiieediddbe cess 5 1 1 Programmer s Guide Rev A4 this document s ssssesssseseesesssessesesesessessssseessessreseesseesersseesee 5 Tee EW006 00 EPS 1I roris E E E T 5 ES FW6 05 EP5 10 reiini eneee ea EEE a Ea a aa Tea aeaa 5 WA EWG DAP SAO od sicastnniserpprassinedsanputassuedonesatnestetaaspiondeta Sita Gexsuitendtanideauaiveadasiseduphdbobixantanis a E 5 1S EWO OS EPIO trnns eE E che mrp ae er meee er sett rw ne eer ear eer eran rome ma errr rare ener ee 6 MWY GAN ND iicet ienie cad aE bases aa aE adriai a SSES a Naa iei 6 2 nstallaton sses ereo eera Ee E EEEE E EEO EE a E RE E EERO 6 2 1 Uploading the new firmware FW 6 06 and FP5 11 sssessssssseesssssrssseesssessesssesesserrsseessensseessse 6 2 2 Installing and running the VB Demo ssssesseseessessesrresieeresresrrserssressesrresresstsstestenserstesteeseesesenesee 7 MMU AS ce a ce tos ae aie AE EEE E ENEE A E E E ited 7 3 1 MS Bacchi uh sees E wash deen hewia bas derdeG vidas aetame ta iiasiaa a Sha dug a eabda sa sadn as tay
9. OxF5 OxFA 0x81 0x07 0x18 0 Spectrum Data varies 4 2 9 Response packet 2048 channel spectrum plus Status LEN LEN i CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data Field MSB LSB Amptek Inc Page 55 of 140 DP5 Programmer s Guide Rev A4 Offset 0 1 2 3 4 5 66g Se 6214 6215 Value OxF5 OxFA 0x81 0x08 ox18 ox4o Spectrum Status varies 4 2 10 Response packet 4096 channel spectrum SYNC1 SYNC2 PID1 PID2 Gap fen Data Field a hee Offset 0 1 2 3 4 5 6 12293 12294 12295 Value OxF5 OxFA 0x81 0x09 0x30 0 Spectrum Data varies 4 2 11 Response packet 4096 channel spectrum plus Status SYNC1 SYNC2 PID1 PID2 Gas fen Data Field ee Offset 0 1 2 3 4 5 612293 Oe 12358 12359 Value OxF5 OxFA 0x81 oxoa 0x30 ox4o SPectum Status varies 4 2 12 Response packet 8192 channel spectrum SYNC1 SYNC2 P D1 PID2 Gap Len Data Field ee ee Offset 0 1 2 3 4 5 6 24581 24582 24583 Value OxF5 OxFA 0x81 0x0B 0x60 0 Spectrum Data varies 4 2 13 Response packet 8192 channel spectrum plus Status SYNC1 SYNC2 PID1 PID2 Gas HEN Data Field ee Offset 0 1 2 3 4 5 e2481 SREE 24646 24647 Value
10. PID1 PID2 MSB LSB Data Field MSB LSB Offset 0 1 2 3 4 5 6 261 262 263 Value OxF5 OxFA 0x82 5 1 0 a siig Varies Purpose This response packet is returned in response to a Request Diagnostic Data Request Packet PID1 3 PID2 5 Data Format The data field contains 256 bytes of various types of diagnostic data in the following format Note PX5 amp DP5G bytes 5 38 are different Offset Bits Value Comment 0 D7 D4 Firmware major 6 0 for this release D3 D0 Firmware minor 1 D7 D4 FPGA major 5 07 for this release D3 D0 FPGA minor 0 0 indicates FPGA didn t initialize 2 4 all SRAM error address OxFFFFFF indicates no error MSB LSB DPS Bytes 5 38 5 D3 D0 DP5 board temp raw Temp C MSB 256 LSB 349 7 MSB 271 3 6 D7 D0 DP5 board temp raw Offset 180 is the 8 bit signed offset cal LSB for this 7 D7 D0 TBD 8 D7 D0 TBD 9 D1 DO Power Input MSB Input V MSB 256 LSB 167 5 10 D7 D0 Power Input LSB 11 D1 D0 3 3V supply MSB 3 3V V MSB 256 LSB 254 3 12 D7 D0 3 3V supply LSB 13 D1 DO 2 5V supply MSB 2 5V V MSB 256 LSB 335 7 14 D7 D0 2 5V supply LSB 15 D1 DO 1 2V supply MSB 1 2V V MSB 256 LSB 419 7 16 D7 D0 1 2V supply LSB 17 D1 D0 5 5V supply MSB 5 5V V MSB 256 LSB 150 7 18 D7 D0 5 5V supply LSB This is called 5 SMO
11. SYNC1 SYNC2 PID1 pip LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA 1 1 0 0 OxFE Ox0F Purpose This request directs the DP5 to construct a status packet and send it to the host PC The status packet can be requested with this request packet or with one of the Request Spectrum plus Status variants in which case the status packet is included in the packet data field along with the spectrum data The status packet contains information about the current state of the spectrum and of the DP5 Its format is listed with the Status Packet Response Packet Response If no errors are detected a Status Packet Response Packet will be returned Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of the requested data Amptek Inc Page 17 of 140 D TEK DP5 Programmer s Guide Rev A4 4 1 2 Spectrum Request Packets Request packet Request Spectrum SYNC1 SYNC2 Pipi pip LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA 2 1 0 0 OxFE 0x0E Request packet Request and clear Spectrum SYNC SYNC PIDI pipe SEN SEN CPRGUM one MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA 2 2 0 0 OxFE 0x0D Request packet Request Spectrum plus Status SYNC avna Fini pipe AY
12. due to buffering listed above The transfer times were measured with the 80MHz clock selected and were measured using the Request spectrum status request packet The transfers will run at the same rate with the 20MHz clock except the deadtime for buffering will be longer So for 20MHz timing use the 80MHz timing plus the difference between the 20MHz and 80MHz buffering deadtime of USB Ethernet RS232 RS232 Amptek Inc Page 12 of 140 She DP5 Programmer s Guide Rev A4 Channels 80MHz 80MHz 115k 80MHz 57k 830MHz 256 2 8mS 11mS 74mS 146mS 512 3 5mS 19mS 140mS 279mS 1024 4 8mS 35mS 273mS 544mS 2048 7 5mS 70mS 538mS 1 07S 4096 12 7mS 134mS 1 07S 2 14S 8192 24 2mS 263mS 2 14S 4 22S Amptek Inc Page 13 of 140 steh DP5 Programmer s Guide Rev A4 4 Packet Format All communications with the DP5 follow a request response format the host sends a Request Packet to the DPS and the DP5 returns a Response Packet The Response Packet sent by the DPS to the host will be a a packet containing the requested data b an acknowledge ACK packet indicating the request packet was received and interpreted without error if the request packet is not one for which data is returned C an ACK packet indicating the request packet contains an error in structure or content d an ACK packet indicating why th
13. s Guide Rev A4 5 1 61 TLLD Command Parameter Units Range Default Dependencies Supported Related Description Errors Example Amptek Inc Select Threshold for Low Level Discriminator LLD TLLD H H IOF F channels 256 ch 0 255 512 ch 0 511 1024 ch 0 1023 2048 ch 0 2047 4096 ch 0 4095 8192 ch 0 8191 OFF none FW6 01 and later THSL TLLD sets the low level discriminator LLD for the MCA only events above this channel will be recorded in the spectrum If the LLD is enabled i e not OFF then events must be above both the LLD threshold and the shaped slow threshold see THSL to be recorded An INVALID PARAMETER error will be returned if the parameter is outside the range 0 8191 it is not error checked with regard to the ranges listed TLLD 110 Events in channels 110 or lower are rejected Page 136 of 140 D TEK DP5 Programmer s Guide Rev A4 5 1 62 TPEA Set Peaking Time Command TPEA Parameter t HH Units US microseconds Range 0 8 102 4uS CLK 20MHz 0 2 25 6uS CLK 80MHz 0 2 102 4uS CLK AUTO Default None this command is required Dependencies CLCK if used must precede TPEA Supported FW6 00 and later Related TFLA Description TPEA selects the peaking time for the slow shaped channel If CLCK AUTO automatic CLK selection is commanded prior to TPEA then TPEA will set the FPGA clock to 80MHz for peaking times
14. Amptek Inc Turn On Off the PC5 High Voltage Supply HVSE HHHIOFF V OFF 0 to 1499V for a positive HV PC5 0 to 1499V for a negative HV PCS 1499V to 1499V PX5 0 4V precision none FW6 00 and later HVSE turns on or off the PC5 HV supply and sets the HV The PCS can have either a positive or negative supplies The DP5 will compare the polarity of the parameter to the polarity of the PCS HV supply and will only turn on the HV supply if the specified polarity matches the PCS PX5 compares the polarity of the parameter to the position of the HV polarity jumper DPS An INVALID PARAMETER error will be returned if the PCS does not have the same polarity HV supply as the voltage specified or if the specified HV is outside the range listed A PC5 NOT PRESENT error will be returned if a PCS is not detected PX5 An INVALID PARAMETER error will be returned if the polarity of the specified voltage does not agree with the PX5 HV polarity jumper or if the specified HV is outside the range listed HVSE 150 Set the PCS HV supply to 150V but only if it s a HV PCS Page 98 of 140 D TEK DP5 Programmer s Guide Rev A4 5 1 24 INOF Set the Input Offset DP5 PX5 only Command INOF Parameter l HAU TO IDE F Units MV millivolts Default DEF Range 2047mV to 2047mV Dependencies AINP if DEF is used INOG if INOG HIGH see below Supported FW6 00 and later
15. DP5G Select Connector 2 AUXOUT2IAUXIN2 AUXOUT2 signal 6 03 P G CON2 GATEHIGATEL PX5 AUTO 20 for 20MHz 80MHz ALL CLCK AU TO 20 80 DP5G 2 Non trapezoidal 0 99 to 99 shaping ALL CUSP OFF trapezoid 0 trapezoid DAC offset ALL DACF HF MV OmV 500 to 499mV OFF FAST SHAPED DAC output ALL DACO INPUT PEAK OFF 1 8 DP5 1 16 PX5 1 28 Analog gain index ALL GAIA DP5G 1 4 Fine gain ALL GAIF HH HHHH 4 0 5 1 9999 DP5 0 75 150 Total Gain analog PX5 0 75 500 fine ALL GAIN HHH HHH 4 DP5 1 10 Gate control ALL D GATE OF F HI GH LO W OFF G P counter edge ALL GPED RISING FA LLING FALLING G P counter uses GATE ALL GPGA ON OF F ON AUX1 AUX2 PILEUP RTDREJ SCA8 TBD G P counter input ALL GPIN DETRES OFF AUX1 1 8 G P counter cleared with MCA ALL GPMC ON OF F ON Amptek Inc Page 73 of 140 counters DP5 Programmer s Guide Rev A4 G P counter uses MCA_EN ALL GPME ON OF F ON 0 to 1499V HV 0 to HV set ALL HVSE OF F V OFF 1499V HV AINP for 2047 to Input offset ALL D P INOF 4 4 AU TO DE F MV DEF DEF 2047mV Input offset gain 6 06 P INOG LO W HI GH LOW 256 512 1024 2048 MCA MCS channels ALL MCAC 4096 8192 1024 OFF MCA MCS enable ALL MCAE ON OF F disabled NO RM MC S FA ST MCA Source ALL
16. Default Dependencies Supported Related Description Errors Example Amptek Inc TPFA 501001200140011 600 NS nanoseconds 50 100 or 400nS for 80MHz FPGA clock 200 400 or 1600 for 20MHz FPGA clock 100 for 80MHz clock 400 for 20MHz clock TPEA must precede TPFA FW6 00 and later 50 amp 200 settings require FW6 01 or later THFA TPFA selects the peaking time for the fast channel There are three settings available for each FPGA clock rate only 400nS is available at both FPGA clock rates An INVALID PARAMETER error will be returned if the parameter violates the conditions listed under Range TPFA 400 This selects a fast channel peaking time of 400nS regardless of the FPGA clock Page 138 of 140 nf DP5 Programmer s Guide Rev A4 5 1 64 TPMO Select Test Pulser Mode Command Parameter Units Default Dependencies Supported Related Description Errors Example Amptek Inc TPMO OF F S NG D BL I S NG D BL none OFF none FW6 00 and later DACF TPMO selects whether the Test Pulser is enabled and if so what type of pulses it produces The test pulser uses the DAC output to simulate the output from a reset style preamplifier It produces a step in the DAC output at a rate of 2kHz This signal is intended to be connected directly to the DP5 signal input for test and diagnostic purposes If SNG or SNG is specified the DAC step is 1 4 of the val
17. OxF5 OxFA 0x81 OxOC 0x60 0x40 oe oa varies Purpose These response packets are sent by the DP5 in response to a request for spectrum data the specific response packet returned depends on how many channels the DP5 s MCA is configured for and whether the request was for spectrum data only or spectrum plus status data Data Format Spectrum data is 3 bytes channel LSB to MSB starting with channel 0 up to the maximum channel number i e in 256 channel mode the channel data goes from channel 0 to channel 255 See table XX The status data follows the spectrum data in the Response Packet data field and is 64 bytes in length The format is the same as is specified for the Status response packet Amptek Inc Page 56 of 140 SS TEK DP5 Programmer s Guide Rev A4 4 2 14 Response packet 2048 byte Scope Packet LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data Field MSB LSB Offset 0 1 2 3 4 5 6 2053 2054 2055 Value OxF5 OxFA 0x82 1 8 0 Scope data Varies 4 2 15 Response packet 2048 byte Scope Packet w Overflow LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data Field MSB LSB Offset 0 1 2 3 4 5 6 2053 2054 2055 Value OxF5 OxFA 0x82 3 8 0 Scope data Varies Purpose These response packets are returned in response to a Request Digital Scope Data packet PID1 3 PID2 1 Onl
18. Page 34 of 140 DP5 Programmer s Guide Rev A4 4 1 22 Request packet Write 512 byte Misc Data LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data MSB LSB Offset 0 1 2 3 4 5 6 517 518 519 Misc Value OxF5 OxFA OxFO 9 2 0 Data varies Purpose This commands the DPS to store the 512 byte data field in non volatile memory The data can be binary ASCII etc It could contain the description or location of the unit as an ASCII string for example It is read back with the Request Misc Data Request Packet Response If no errors are detected the DP5 will respond with ACK OK packet Note this command requires a FLASH memory erase operation the ACK packet could be delayed as much as 400mS from the request packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 35 of 140 DP5 Programmer s Guide Rev A4 4 1 23 Request packet Set DCAL LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data MSB LSB Offset 0 1 2 3 4 5 6 7 8 9 DCAL LSB Value OxF5 OxFA OxFO 0x0A 0 2 MSB varies Purpose This commands the DP5 to set the non volatile calibration value for the detector temperature measurement diode The setting is an unsigned integer in the range of 0 4095 in the format LSB followed by MSB The nominal value is 1 000
19. RI SING IFA LLING none FALLING none FW6 00 and later GPIN GPME GPGA GPMC Clear G P Counter Request Packet GPED selects on which edge of its source the General Purpose G P Counter will increment An INVALID PARAMETER error will be returned if the parameter is not one of the values specified GPED RI Count on the rising edge of the G P Counter input Page 93 of 140 DP5 Programmer s Guide Rev A4 5 1 19 GPGA General Purpose Counter Uses GATE Command Parameter Units Default Dependencies Supported Related Description Errors Example Amptek Inc GPGA ONIOF F none ON none FW6 00 and later GPED GPIN GPME GPMC GATE Clear G P Counter Request Packet GPGA selects whether the G P counter is conditioned by the GATE input In order to use this the GATE command must also be sent to configure the GATE input polarity If GATE is disabled GATE OFF then GPGA will have no effect GPGA is redundant if GPME ON because MCA Enable is gated by GATE already An INVALID PARAMETER error will be returned if the parameter is not one of the values specified GPGA ON Qualify the G P Counter with GATE Page 94 of 140 DP5 Programmer s Guide Rev A4 5 1 20 GPIN Select the Source for the General Purpose Counter Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Ampte
20. Select the Baseline Restorer Up Correction cccecccecseeeseeceeeceeeeeeeeeeaeeenaeens 81 5 1 7 BOOT Set Poweron State crc censas E ed E A EIE EEE NRA 82 5 1 8 CONI Select signal for AUX Connector eee ecccsscceesecceessecessscceesseceessecesssecesseeees 83 5 1 9 CON Select signal for AUX2 Connector vccascssciascesusversnserven stavetacsssantensenesedsassegnassavuneaed 84 51 10 CLECK Select FPGA CIOGK sunsrrenrsns eienn E E eee 85 5 1 11 CUSP Specify Non Trapezoidal Shaping eeeseseeesesseesressesrrssesrresressrseresressessresrerseesees 86 5112 MACE S Set DAC OfS l piceo oaeen e a e a AaS RES 87 5 1 13 DACO Select Signal for Output DACs sicisiccccsassscecensasceacrsesesenesasnnsenvesecoantasseesesaansnevasnopes 88 5 1 14 GAIA Set the Analog Gain IndeX eseeeeseeesereseeeeesiessrsrresressesrresresstseresresseseeesressesee 89 51 13 GAIF Set the Fije Gail serron E E E E sea oa 90 5 1 16 GAIN Set the Total Gain siccissccsccscccisctscsasscnadscdsavaccesnsiodedassbecacsabedccetasesedasaaeetadsasuedeceanges 91 5 1 17 GATE Configure the GATE Input ssssessesessssesesseesssseressesseresesressessersoessesssresessssesessees 92 5 1 18 GPED Select General Purpose Counter Edge eseeseeeeesreeseesissereresressresresresseseresrersesses 93 5 1 19 GPGA General Purpose Counter Uses GATE sss ssssssssessssesesssesrssseessressessersseeesssresseese 94 5 1 20 GPIN Select the Source for the General Purpos
21. The MCAS MCA Source command can be used to route the fast channel into the MCA so that a spectrum of the fast channel can be inspected The parameter is a multiple of 1 16 It ranges from 0 16 to 4095 16 This awkward seeming arrangement was done to increase the precision of the setting while maintaining backward compatibility to custom software configuration files etc An INVALID PARAMETER error will be returned if the commanded threshold is outside the range given THFA 10 This sets the fast threshold to 10 Page 134 of 140 DP5 Programmer s Guide Rev A4 5 1 60 THSL Command Parameter Units Range Default Dependencies Supported Related Description Errors Example Amptek Inc Select Threshold for Shaped Channel THSL HH HHH percent of full scale 0 24 9 with approx 0 1 precision approx 0 01 precision for FW6 06 and later 0 none FW6 00 and later THFA TLLD THSL sets the noise threshold for the peak detect unit Events below this threshold will not be recorded in the spectrum this acts as a low level discriminator LLD Use the TLLD command in addition to THSL if it is desirable to have the LLD reject more than just noise An INVALID PARAMETER error will be returned if the commanded threshold is outside the range given THSL 4 5 This sets the shaped threshold to 4 5 of full scale Page 135 of 140 DP5 Programmer
22. also TBD The Clear form of these requests will clear the SCA counters after the data has been latched Response If no errors are detected the DP5 will respond with a 64 byte SCA Packet Response Packet PID1 0x83 PID2 1 Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of the requested data Amptek Inc Page 25 of 140 D TEK DP5 Programmer s Guide Rev A4 4 1 13 Request packet Text Configuration LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data MSB LSB Offset 0 1 2 3 4 5 6 5 LEN 6 LEN 7 LEN Value OxF5 OxFA 0x20 2 varies varies varies Purpose This sends a Text Configuration packet to the DP5 which the DPS interprets and executes See the section on ASCII Commands for information on individual commands The commands are packed into the Data field with the following rules 1 Alphabetic characters must be uppercase 2 Each command consists of a 4 character command followed by followed by the parameter max of 10 characters and terminated by a semicolon Ex TPEA 10 3 Units may be included with the parameter but they are ignored and count towards the 10 character maximum length for the parameter Ex TPEA 10US 4 The commands are packed together with no whitespace of any kind tabs spaces CR LF etc 5 For some commands the ordering is impo
23. fastest most aggressive Errors An INVALID PARAMETER error will be returned if the parameter is not in the range specified Example BLRU I Select the 2 slowest BLR up correction Amptek Inc Page 81 of 140 DP5 Programmer s Guide Rev A4 5 1 7 BOOT Set Power on State DP5 Command Parameter Units Default Dependencies Supported Related Description Errors Example Amptek Inc BOOT ONIOF F none none none FW6 00 and later DP5 only not supported by PX5 or DP5G for PX5 power button is held in at power up to start with power supplies on DP5G PCG always boots with HV DAC set to its previous state HVSE PAPS TECS BOOT determines whether the PC5 power supplies HV TEC amp Preamp will be turned on automatically when power is applied to the DP5 PCS If this is set to ON then the next time the DP5 PC5 is powered up the HV TEC amp Preamp supplies will automatically be set to the previously applied settings The BOOT setting is non volatile its setting will be retained and is not reset by the Reset Configuration RESC command Therefore it only needs to be sent once although there is no harm in including it with each configuration An INVALID PARAMETER error will be returned if the parameter is not ON or OFF BOOT ON Turn on the PCS supplies at power up Page 82 of 140 DP5 Programmer s Guide Rev A4
24. s Guide Rev A4 5 1 15 GAIF Set the Fine Gain Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc GAIF AH HHH none none 0 5 1 9999 TPEA must precede GAIF FW6 00 and later GAIA GAIN GAIF sets the fine gain The total gain is a product of the analog gain and fine gain Generally either the GAIN command is used or the combination of GAIA and GAIF Internally the fine gain is combined with a normalization for gain variations due to peaking time Because of this the precision of the fine gain is dependent on peaking time It is always has a precision of at least 1 channel in 8192 generally the precision is better than that An INVALID PARAMETER error will be returned if the parameter is not with the range specified GAIF 1 05 Set the digital fine gain to 1 05 Page 90 of 140 DP5 Programmer s Guide Rev A4 5 1 16 GAIN Set the Total Gain Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc GAIN AEH HHHH none none 0 75 to 150 DP5 0 75 to 500 PX5 1 0 to 10 0 DP5G TPEA must precede GAIN FW6 00 and later GAIA GAIF GAIN sets the total gain First it searches for the nearest available coarse gain for the analog front end listed below for reference It then calculates the digital fine gain to ach
25. 1 4 Request packet Request Digital Scope Data amp Re arm Scope SYNC1 SYNC2 PID1 pip LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA 3 3 0 0 OxFE 0x0B Purpose These request that the DP5 send a 2048 byte digital scope packet The second form of the command will also re arm the digital scope Response If no errors are detected the DP5 will respond with a 2048 byte Scope Packet Response Packet PID1 0x82 PID2 1 or a 2048 byte Scope Packet w Overflow Response Packet PID1 0x82 PID2 3 See the Response Packet descriptions for details Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of the requested data Also if no data is available because the scope hasn t triggered a Scope data not available ACK packet will be returned instead of the requested data Amptek Inc Page 19 of 140 DP5 Programmer s Guide Rev A4 4 1 5 Request packet Request Misc Data SYNC1 SYNC2 PID1 pip LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA 3 2 0 0 OxFE 0x0C Purpose This requests that the DP5 send the 512 bytes of miscellaneous data that is stored in the DP5 s non volatile memory See also the Write Misc Data Request Packet for information on to write this data to the DP5 Respons
26. 9 0 0 Scope data not available not triggered ALL OxFF Ox0A 0 0 PC5 not present ALL OxFF 0x0B varies ASCII command OK Interface sharing request ALL OxFF 0x0C 0 0 Busy another interface is in use OxFF 0x0D 0 0 12C error 6 01 OxFF Ox0E 0 0 Initial firmware release which supports this packet type 4 3 1 Acknowledge packet OK LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFF 0 0 0 OxFD 0x12 Purpose This ACK packet indicates that the Request Packet was received without error that its contents were recognized and that the requested action was carried out This ACK packet is only returned by Request Packets which do not request data 4 3 2 Acknowledge packet OK with Interface Sharing Request LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFF 0x0C 0 0 OxFD 0x06 Purpose This ACK packet has the same meaning as the OK ACK packet In addition another computer or interface is requesting that activity be paused so that it can gain access to the DPS To allow it access the application should stop sending traffic to the DP5 To maintain control and deny it access continue sending Request Packets Send Interface keep alive packets periodically if no other peri
27. DP5 clamps signals below OV to OV and above 1V to 1V At other DACF settings the signal wraps around Note if the test pulser function is enabled then this command sets the amplitude of the test pulse See TPMO for details An INVALID PARAMETER error will be returned and the DAC offset set to 0 if the commanded threshold is outside the range given DACF 30 This sets the DAC offset to 30mV to allow signals slightly below logical ground to be seen Page 87 of 140 DP5 Programmer s Guide Rev A4 5 1 13 DACO Select Signal for Output DAC Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc DACO IOFFIFASTISHAPEDIINPUTIPEAK none OFF 1 8 if a number is specified none FW6 00 and later DACF CON PX5 DP5G DACO selects the signal to be output via the DAC Generally this is used for diagnostic purposes the various signals can be inspected on an oscilloscope Either the signal name can be used or an index number starting with 1 FAST The selected signal is also fed into the Digital Oscilloscope See SCOE SCOT and SCOG Note if the Test Pulser function is enabled the DAC will output the test pulse signal while the Digital Oscilloscope will continue to capture the selected signal Note PX5 and DP5G require the CONT command to connect the output DAC to the AUX1 connector An INVALID PARAMETER erro
28. If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of the requested ACK type Amptek Inc Page 49 of 140 DP5 Programmer s Guide Rev A4 4 1 37 Request packet Comm test Echo packet SYNC1 SYNC2 PIDi PID2 LEN LEN DATA CHKSUM CHKSUM MSB LSB FIELD MSB LSB Offset 0 1 2 3 4 5 6 5 LEN 6 LEN 7 LEN Data to be varies Value OxF5 OxFA OxF1 Ox7F varies echoed Purpose This Request Packet is handy for software developers it requests that the DP5 return a Response Packet whose length and data field are the same as those of this Request Packet essentially it echoes the data field in a Response Packet Response If no errors are detected the DP5 will respond with Comm test Echo packet Response Packet PID1 0xF1 PID2 0x7F Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of the Response Packet Amptek Inc Page 50 of 140 4 2 Response Packets DP5 Programmer s Guide Rev A4 Table 2 Description Support PID1 PID2 eM ce Data optional Status Packet ALL 0x80 1 0 0x40 See description 256 channel Spectrum ALL 0x81 1 0x03 0 See description 256 channel Spectrum status ALL 0x81 2 0x03 0x40 See description 512 channel Spectrum ALL 0x81 3 0x06 0 See
29. MCAS PU R RT D NORM 6 MCS low threshold 6 01 MCSL HHHH CH 0 0 8191 MCS high threshold 6 01 MCSH HHHH CH 8191 0 8191 MCS timebase ALL MCST HHH HHH S 0 0 01 655 35S DP5 8 5 5 OF F ON preamp 8 5 5 ALL D P PAPS PX5 8 5 5 OF F V OFF Preamp pole zero cancellation 6 05 P PAPZ H H OFF US OFF 34 5 4387uS Peak detect mode min max ALL PDMD NORM MIN NORM Preset counts low threshold 6 01 PRCL HHHH CH 0 0 8191 Preset counts high threshold 6 01 PRCH HHHH CH 8191 0 8191 0 4294967295 Preset counts ALL PREC HHHHHHHHHHIOF FY OFF 2 32 1 0 Preset Real Time 6 01 PRER HHHHHHHH HH OF F OFF 4 294 967 29 s Preset time ALL PRET HHHHHHH OF F S OFF 0 99999999 9s 4 for PUR interval on off ALL PURE ON OF F MAX US OFF HHH HHH Reset Configuration ALL RESC Y ES NO 1 Detector Reset lockout ALL RESL HHHHH OF F US OFF 4 0 65535uS Custom RTD 1 127 decimated oneshot delay ALL RTDD HHH 6 clocks RTD on off ALL RTDE ON OF F OFF 5 RTD sensitivity ALL RTDS HHHH 0 2 1593 RTD threshold ALL RTDT HH HHH 0 0 49 9 Custom RTD 1 127 decimated oneshot width ALL RTDW HHH 6 clocks SCAx high 0 all threshold ALL SCAH HHHH SCAs 0 8191 Amptek Inc Page 74 of 140 DP5 Programmer s Guide Rev A4 SCA index ALL SCAI 1 16 1 16 0 all SCAx low theshold ALL SCAL HHHH SCAs 0 8191 SCAx output OFF all SCA1 8 only AL
30. Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFO 0x10 0 0 OxFD 0x11 Purpose This commands the DP5 to clear the General Purpose Counter G P Counter See the ASCII commands GPIN GPED GPME GPGA and GPMC for more information on the G P Counter Response If no errors are detected the DPS will respond with ACK OK packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 40 of 140 steh DP5 Programmer s Guide Rev A4 4 1 28 Request packet Set Ethernet Settings LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data MSB LSB Offset 0 1 2 3 4 5 6 24 25 26 Ethernet Value OxF5 OxFA OxFO 0x11 0 0x13 settings varies Purpose This commands the DPS to set the IP address etc for the Ethernet controller The current values can be read back via the Request Ethernet Settings Request Packet The format of the data field is Data Value Offset 0 0 Use fixed IP address OxFF Get IP address from DHCP server 1 4 IP Address MSB LSB 5 8 IP Subnet Mask MSB LSB 9 12 IP Gateway Address MSB LSB 13 16 Reserved 17 18 Port MSB LSB fixed at 10001 for FW6 01 Response If no errors are detected the DP5 will respond with ACK OK packet Possible errors If the request packet is malformed
31. OxFO Ox0A 0 2 LSB MSB ACK packet Set PZ correction ALL OxFO Ox0B 0 1 PZ correction ACK packet Set uC temp cal ALL OxFO 0x0C 0 1 uC temp offset ACK packet Set Boot flags OxFO 0x0D 0 2 ACK packet Set ADC Cal gain offset ALL OxFO OxOE 0 2 gain offset ACK packet Clear G P Counter ALL OxFO 0x10 0 0 ACK packet Fixed Dyn IP 4 Mask 4 Gateway 4 Dest IP 4 Set Ethernet settings ALL OxFO 0x11 0 0x13 Port 2 ACK packet Select high pass time constant 6 01 OxFO 0x12 0 1 Time constant ACK packet Select RS232 baud rate 6 05 OxFO 0x13 0 1 Baud rate ACK packet 6 05 D Set HV Cal gain offset P OxFO 0x14 0 2 gain offset ACK packet Interface keep alive allow sharing ALL OxFO 0x20 0 0 ACK packet Interface keep alive no sharing ALL OxFO 0x21 0 0 ACK packet Interface keep alive lock ALL OxFO 0x22 0 0 ACK packet Latch SCAs Latch clear SCAs Clear SCAs Comm test Request ACK packet ALL OxF1 0 15 0 0 ACK packet Comm test Echo Data to be packet ALL OxF1 Ox7F varies echoed Data packet Amptek Inc Items in italics are considered calibration values and don t normally need to be changed Initial firmware release which supports this packet type If not support by all three DPP types then D supported by DP5 P supported by PX5 and G supported by DP5G Page 16 of 140 DP5 Programmer s Guide Rev A4 4 1 1 Request packet Request Status Packet
32. Page 101 of 140 DP5 Programmer s Guide Rev A4 5 1 27 MCAE Initial State of MCA Enable Command MCAE Parameter ONIOF F Units none Default OFF Dependencies none Supported FW6 00 and later Description MCAE sets the initial state of MCA Enable It determines whether the acquisition starts immediately after the Configuration Packet is processed ON or whether the DP5 will wait for an Enable MCA MCS Request Packet to start the acquisition OFF Errors An INVALID PARAMETER error will be returned if the parameter is neither ON nor OFF Example MCAE ON Start taking data immediately Amptek Inc Page 102 of 140 DP5 Programmer s Guide Rev A4 5 1 28 MCAS Select the MCA Source Command Parameter Units Default Dependencies Supported Related Description Errors Example Amptek Inc MCAS NO RM IMC S IFA ST I PU R IRT D none NORM RTDE FW6 00 and later MCAS selects the operating mode of the MCA as listed below NORM normal MCA operation using the shaped channel as the source MCE selects Multi channel Scaler mode rather than MCA MCS mode records counts vs time rather than counts vs energy SCA8 is the source of counts in MCS mode See SCAI SCAL SCAH FAST the MCA produces a spectrum using the Fast channel as the source rather than the shaped channel This requires RTD to be disabled to wor
33. Pole Zero Cancellation seeeseeeeeeeeeseeeeesreeesresstseresressereresreesersrersersree 108 5 1 34 PDMD Select the Peak Detect Mode n snnnsnnnseeesseessseeesseessenssessseerssseessresseesseenssesesees 109 5 1 35 PRCL Set Low Threshold for Preset Counts wo i c scsccsssescedesssasscessasestacsasssansenssecassaesenesss 110 5 1 36 PRCH Set High Threshold for Preset Couns ci sssascsssesesasssveabeavsacessvarsenaceesadasedanneatevaties 111 5 1 37 PREC Preset Cuts vanieiadescasacaragaccnsacttued aan ERE 112 5 1 38 PRER Pr set Real TIME sessir urner ora EN E Ea andei 113 Shoo PRET Preset Acquisition TMG sser eicaaceusensitaae s n n E EREE 114 5 1 40 PURE Pile up Reject Bialyl ec cicds cet cecha st cud ieeacedati tee dedeccteet iis levbeiactemaead aa eaeetiaute 115 5 1 41 RESC Reset the Configuration to Defaults 0 0 0 0 eeecceceenceceeececeeeeeceeeeeceeeeeeseeeeseas 116 5 1 42 RES Select Reser Lockout Interval ccicscestesteupsniacsvertin ope accuetae ed eaaeedeeeees 117 5 1 43 IRTP DD Set Custom RTD Oneshot Delay oi cccesicnsncsecceuesssecesnsssaitinessceamenancctuedenetianaeicees 118 5 1 44 RTDE Enable Risetime Discrimination ssssssesssessssseessresseesseerseetsseetssresseessreesereesees 119 5 1 45 RTDS Set Risetime Discrimination Sensitivity eee eeeeeeesceesseceseceseeeeseeenaeeeseeees 120 5 1 46 RTDT Set Risetime Discrimination Threshold 00 0 0 eee eecseeeeeeeeceeeeeeeeeeeeeseeeesteeeenaes 121 5 1 47 RIEDW
34. Select the Peak Detect Mode Command Parameter Units Default Dependencies Supported Related Description Errors Example Amptek Inc PDMD NO RM IMI N none NORM none FW6 00 and later SOFF Normally the DP5 Peak Detect unit searches for maxima in the shaped pulse stream to determine which events to include in the spectrum This is the normal Peak Detect Mode PDMD NORM PDMD MIN configures the Peak Detect unit to search for both minima and maxima in order for the MCA to be able to capture the noise Gaussian around the zero energy point of the spectrum Because the MCA can t capture negative peaks the Spectrum Offset SOFF should be used to shift the spectrum positive so the entire noise Gaussian can be captured An INVALID PARAMETER error will be returned if the parameter is not NORM or MIN PDMD MIN Set the Peak Detect to MIN MAX mode Page 109 of 140 DP5 Programmer s Guide Rev A4 5 1 35 PRCL Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc Set Low Threshold for Preset Counts PRCL HHHH channel 0 Depends on number of channels specified by MCAC 256 ch 0 255 512 ch 0 511 1024 ch 0 1023 2048 ch 0 2047 4096 ch 0 4095 8192 ch 0 8191 none FW6 01 and later PRCH PREC PRCL sets the low threshold for the Preset Counts The low and high thresholds ar
35. channel 101 to 199 Page 111 of 140 DP5 Programmer s Guide Rev A4 5 1 37 PREC Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc Preset Counts PREC HHHHHHHHHHIOF F counts OFF 0 4 294 967 295 i e 2432 1 none FW6 00 and later PRET PRER PRCL PRCH PREC specifies the preset counts The acquisition will stop automatically when the number of events registered between the channels specified by PRCL and PRCH reaches this value If OFF or 0 is specified the acquisition will continue unless stopped by other means PRET PRER MCA disable Request Packet etc By configuring PREL and PREH appropriately this command allows an acquisition to be stopped by the counts in a single channel a ROI or the entire spectrum No errors are returned an unrecognized parameter is interpreted as OFF A number outside the range listed is converted to a 32 bit unsigned integer PREC 10000 Stop when the total counts between channels PRCL amp PRCH reaches 10 000 Page 112 of 140 DP5 Programmer s Guide Rev A4 5 1 38 PRER Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc Preset Real Time PRER FEE HHIOF F S seconds OFF 0 4 294 967 29 seconds 0 01 second precision Note that because the pa
36. commands must come after RTDE so that they can override the standard timing To fine tune the RTD timing 1 Use DACO SHAPED and AUO2 5 for RTD_ONESHOT Use an oscilloscope to view both signals Trigger on either 2 Use the parameters for RTDW and RTDD to adjust the width and delay of the RTD_ONESHOT signal it should bracket the time during which the peak occurs for a variety of pulses An INVALID PARAMETER error will be returned if the parameter is not in the range specified RTDD 60 Override the standard RTD timing set the RTD Oneshot delay to 60 decimated clocks Page 118 of 140 DP5 Programmer s Guide Rev A4 5 1 44 RTDE Enable Risetime Discrimination Command RTDE Parameter ONIOF F Units none Default OFF Dependencies TPEA amp TFLA Supported FW6 00 and later Related RTDT RTDS Description _RTDE is used to enable risetime discrimination RTD RTDS and RTDT are also needed to completely configure RTD For very slow or distorted pulses RTDW and RTDD may be needed to override standard RTD timing parameters Errors An INVALID PARAMETER error will be returned if the parameter is not ON or OFF and RTD will be disabled Example RTDE ON Enable Pile up Rejection Amptek Inc Page 119 of 140 DP5 Programmer s Guide Rev A4 5 1 45 RTDS Command Parameter Units Default Range Dependencies Supported Related Description Errors Example
37. function is returned by the readback of the THFA command using the Text Configuration Readback Request Packet Note that this setting is overwritten when a new configuration packet is received with the THFA or RESC commands Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 33 of 140 D TEK DP5 Programmer s Guide Rev A4 4 1 21 Request packet Write 103 0 LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data MSB LSB Offset 0 1 2 3 4 5 6 7 8 Value OxF5 OxFA OxFO 8 0 1 103 100 varies Purpose This commands the DP5 to set the four IO lines 103 0 with the data byte in offset 6 as shown below Note that these outputs are open drain with a weak pullup They can sink 20mA but only source 100uA typ at 3 3V These are outputs from a Maxim MAX7328 operating at 3 3V see the datasheet for more info Bit Signal Connector Location D7 D4 N A D3 103 J6 14 Auxiliary connector D2 102 J6 13 Auxiliary connector D1 IO1 J5 18 Interconnect connector DO 100 J5 17 Interconnect connector Response If no errors are detected the DP5 will respond with ACK OK packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc
38. returned instead of ACK OK Amptek Inc Page 29 of 140 DP5 Programmer s Guide Rev A4 4 1 17 Request packet Disable MCA MCS SYNC1 SYNC2 PID1 pipo LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFO 3 0 0 OxFD 0x1E Purpose This commands the DP5 to disable the MCA effectively pausing the acquisition Response If no errors are detected the DP5 will respond with ACK OK packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 30 of 140 DP5 Programmer s Guide Rev A4 4 1 18 Request packet Arm Digital Scope SYNC1 SYNC2 PID1 pipo LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFO 4 0 0 OxFD 0x1D Purpose This commands the DP5 to arm its internal digital oscilloscope Once armed a trigger condition will cause the digital scope to capture 2048 samples After arming the digital scope the application software can either 1 Monitor the Oscilloscope data ready bit offset 35 bit D2 in the status data to determine when the scope has triggered then send a Request Digital Scope Data request packet to get the data 2 Repeatedly send a Request Digital Scope Data request packet the DPS will respond with a Scope data not available ACK
39. the 16 bit sum of all bytes prior to the checksum i e the 16 bit sum of the checksum and all other bytes in the packet is 0 If LEN gt 0 Offset 6 The start of the data field whose length is given by the 16 bit LEN field The last byte is offset 5 LEN Offset 6 LEN Checksum as described above 7 LEN Amptek Inc Page 14 of 140 4 1 Request Packets Host PC to DP5 DP5 Programmer s Guide Rev A4 Table 1 LEN LEN Description Support PID1 PID2 MSB LSB Data optional Response Request status packet ALL 1 1 0 0 Data packet Request spectrum ALL 2 1 0 0 Data packet Request amp clear spectrum ALL 2 2 0 0 Data packet Request spectrum status ALL 2 3 0 0 Data packet Request amp clear spectrum status ALL 2 4 0 0 Data packet Buffer spectrum 2 5 0 1 1 byte buffer ACK packet Buffer amp clear spectrum 2 6 0 1 1 byte buffer ACK packet Request buffer 2 7 0 1 1 byte buffer ACK packet Request digital scope data ALL 3 1 0 0 Data packet Request 512 byte misc data ALL 3 2 0 0 Data packet Request digital scope data amp re arm scope ALL 3 3 0 0 Data packet Request Ethernet settings ALL 3 4 0 0 Data packet Request diagnostic data ALL 3 5 0 0 Data packet Request hardware description 3 6 0 0 Data packet Request Nettfinder packet 6 01 3 7 0 0 Data packet 12C transfer Perform 12C transfer 6 01 3 8 vari
40. 0mV Amptek Inc Page 99 of 140 DP5 Programmer s Guide Rev A4 5 1 25 INOG Set the Input Offset Gain PX5 only Command INOG Parameter LO W IHI GH Units none Default LOW Dependencies Supported FW6 06 and later PX5 only Related AINP INOF Description In the PXS the input offset is normally injected after the gain stages this is the LOW setting If preamp pole cancellation is used then a DC offset may exist prior to the gain stages and depending on gain may result in an offset too large for the low gain input offset to correct Selecting HIGH results in the input offset being injected earlier in the analog chain so that it can correct a larger DC offset Errors An INVALID PARAMETER error will be returned if the parameter is not one of those listed Example INOG HIGH Set the input offset gain to HIGH Amptek Inc Page 100 of 140 DP5 Programmer s Guide Rev A4 5 1 26 MCAC Select Number of MCA Channels Command MCAC Parameter 256 51211024120481409618 192 Units channels Default 1024 Dependencies none Supported FW6 00 and later Description _MCAC selects the total number of channels for the MCA This is sometimes referred to as MCA Gain Errors An INVALID PARAMETER error will be returned if the parameter is other than those listed and 1024 channel operation will be selected Example MCAC 512 Select 512 MCA channels Amptek Inc
41. 0uS 0 12 8uS 25nS 13 20 25 60uS 0 102 2uS 200nS 3 30 6 40uS 0 25 6uS 50nS 26 40 51 20uS 0 204 4uS 400nS 6 60 12 80uS 0 51 1uS 100nS 52 80 102 4uS 0 408 8uS 800nS 13 20 25 60uS 0 102 2uS 200nS Amptek Inc Page 115 of 140 DP5 Programmer s Guide Rev A4 5 1 41 RESC Command Parameter Units Default Dependencies Supported Related Description Errors Example Amptek Inc Reset the Configuration to Defaults RESC Y none none none FW6 00 and later RESC is used to reset the DP5 s configuration to default settings It resets each setting to the default listed for each command and in table XX If it is used it should be the first command in the ACII configuration packet RESC is useful because the DP5 stores the settings from previous configuration commands in non volatile memory and new No error is returned regardless of the parameter but the configuration is only reset if the parameter is Y RESC Y Reset the configuration to default settings Page 116 of 140 DP5 Programmer s Guide Rev A4 5 1 42 RESL Command Parameter Units Range Default Dependencies Supported Related Description Errors Example Amptek Inc Select Reset Lockout Interval RESL HHHHIOF F US microseconds In FW6 01 the DP5 will select the nearest available Reset Lockout Interval from the following lis
42. 32 35 SCA9 counter LSB MSB 36 39 SCA 10 counter LSB MSB 40 43 SCA11 counter LSB MSB 44 47 SCA 12 counter LSB MSB 48 51 SCA13 counter LSB MSB 52 55 SCA 14 counter LSB MSB 56 59 SCA15 counter LSB MSB 60 63 SCA 16 counter LSB MSB Amptek Inc Page 66 of 140 DP5 Programmer s Guide Rev A4 4 2 23 Response packet Comm test Echo packet SYNC1 SYNC2 PIDI PID2 LEN LEN DATA CHKSUM CHKSUM MSB LSB FIELD MSB LSB Offset 0 1 2 3 4 5 6 5 LEN 6 LEN 7 LEN Value OxF5 OxFA Ox8F 0x7F varies Echo data varies Purpose This Response Packet is sent in response to the Request Packet of the same name The LEN amp DATA fields are the same as in the Request Packet Data Format Whatever data is in the data field of the Request Packet is copied byte for byte into the data field of the Response packet Amptek Inc Page 67 of 140 4 3 Acknowledge Packets DP5 Programmer s Guide Rev A4 Table 3 LEN LEN Description Support PID1 PID2 MSB LSB Data optional OK ALL OxFF 0 0 0 Sync error ALL OxFF 1 0 0 PID error ALL OxFF 2 0 0 LEN error ALL OxFF 3 0 0 Checksum error ALL OxFF 4 0 0 Bad parameter ALL OxFF 5 varies ASCII command Bad hex record structure chksum ALL OxFF 6 0 0 Unrecognized command ALL OxFF 7 varies ASCII command FPGA error not initialized ALL OxFF 8 0 0 CP2201 not found ALL OxFF
43. 4 4 1 32 Request packet Set 1 6uS PZ Correction PX5 only ccsscsscesscesoreeteencetsceseeteeeaees 45 4 1 33 Request packet Interface Keep alive Allow Sharing eeeseseesessesesrseeserserseserssrseeses 46 4 1 34 Request packet Interface Keep alive No Sharing ssssessessssssessseessesersseessessrssresseese 47 4 1 35 Request packet Interface Keep alive Lock eee eeeeseeneeereeeeeeeeceseceeeaeeeneeseesaeenaee 48 4 1 36 Request packet Comm test Request ACK packet 0 0 ceeseseeeeeceteceeeeneeeseeeeeeeenaes 49 4 1 37 Request packet Comm test Echo packet sscccstenceescavsetsevecse eiaetbapeeucediarebseeanaaneies 50 AD Response Packets ssssiaesasnscessascievassagunone sowie pea veserenatasnatan EEE EEEE EERE R A iS 51 4 2 1 Response packet Stas Pak t ssiiocnoiiieisssrinssidisses asiasi aaoi iis 52 4 2 2 Response packet 256 channel spectrum sseeseseessesesesesessesesrestsseserseseesessrseesessessese 55 4 2 3 Response packet 256 channel spectrum plus Status cece eeeeseeeeeeeeceeecneeeneeeneeeeees 55 4 2 4 Response packet 512 channel spectrum jess siaatsascanntestzeasvennansienanededuanetuaisasatieansedioins 55 4 2 5 Response packet 512 channel spectrum plus Status ee eeeeseeeeeeeeceeceeeeneeeneeeeees 55 4 2 6 Response packet 1024 channel spectrum essesesssssessssesessesesesesseseesssersesseseesessessese 55 4 2 7 Respon
44. 5 The data field contains ASCII commands and parameters separated by semicolons Data Format The data field will contain the current ASCII configuration it will have all the commands that were sent with the Configuration Readback Request Packet except the parameters will have been replaced with the actual settings in use by the DPS See the Text Configuration Request Packet Configuration Readback Request packet and the section on ASCII Commands for more details Amptek Inc Page 64 of 140 steh DP5 Programmer s Guide Rev A4 4 2 20 Response packet Netfinder Packet SYNC1 SYNC2 PID1 PID2 LEN LEN DATA CHKSUM CHKSUM MSB LSB FIELD MSB LSB Offset 0 1 2 3 4 5 6 5 LEN 6 LEN 7 LEN Netfinder varies Value OxF5 OxFA 0x82 8 varies data Purpose This is used to return the Netfinder packet via the normal communications link Normally the Netfinder data is returned by a dedicated TCP IP socket Data Format The data field is formatted the same as an independent Netfinder packet as documented in section 3 2 3 4 2 21 Response packet I C Read Data SYNC1 SYNC2 PIDI PID2 LEN LEN DATA CHKSUM CHKSUM MSB LSB FIELD MSB LSB Offset 0 1 2 3 4 5 6 5 LEN 6 LEN 7 LEN IC read varies Value OxF5 OxFA 0x82 9 varies data Purpose This is used to return the data read by the TC Transfer Request Packet If the Number of By
45. 5 1 8 CONI Select signal for AUX1 Connector PX5 amp DP5G Command CONI Parameter DACIAUXOUTIIAUXIN1 Units none Default DAC PX5 AUXIN DP5G Dependencies none Supported FW6 03 and later PX5 and DP5G DP5 uses DACO AUOI amp AUO2 to select signals Related Description Errors Example Amptek Inc PX5 amp DP5G use CONx commands to route selected signals to external connectors CON2 DACO AUO1 AUO2 GPIN Selects the signal for the AUX1 connector on PX5 or DP5G PCG DAC routs the output DAC to the AUX1 connector DACO selects which signal the DAC will output AUXOUT1 will output the digital signal selected by the AUO1 command AUXIN switches the AUX1 connector to an input AUXIN1 can then be selected as an input to the General Purpose Counter via GPIN An INVALID PARAMETER error will be returned if the parameter is not one of the options specified CON1 AUXOUTI Configure Connector 1 to AUXOUT1 Page 83 of 140 DP5 Programmer s Guide Rev A4 5 1 9 CON2 Select signal for AUX2 Connector PX5 amp DP5G Command CON2 Parameter AUXOUT2IAUXIN2IGATEHIGATEL Units none Default AUXOUT2 PX5 AUXIN2 DP5G Dependencies none Supported FW6 03 and later PX5 and DP5G DP5 uses DACO AUO1 AUO2 amp GATE to select Related Description Errors Example Amptek Inc signals PX5 amp DP5G use CONx commands to rout
46. 5 OxFA 0x81 0x01 3 0 Spectrum Data varies 4 2 3 Response packet 256 channel spectrum plus Status LEN LEN l CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data Field MSB LSB Offset 0 1 2 3 4 5 6 773 774 837 838 839 Spectrum Status Value OxF5 OxFA 0x81 0x02 3 0x40 Data Data varies 4 2 4 Response packet 512 channel spectrum LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data Field MSB LSB Offset 0 1 2 3 4 5 6 1541 1542 1543 Value OxF5 OxFA 0x81 0x03 6 0 Spectrum Data varies 4 2 5 Response packet 512 channel spectrum plus Status LEN LEN l CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data Field MSB LSB 1542 Offset 0 1 2 3 4 5 6 1541 1605 1606 1607 Spectrum Status Value OxF5 OxFA 0x81 0x04 6 0x40 Data Data varies 4 2 6 Response packet 1024 channel spectrum LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data Field MSB LSB Offset 0 1 2 3 4 5 6 3077 3078 3079 Value OxF5 OxFA 0x81 0x05 0x0C 0 Spectrum Data varies 4 2 7 Response packet 1024 channel spectrum plus Status LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data Field MSB LSB Offset 0 1 2 3 4 5 68077 SO 3142 3143 Spectrum Status Value OxF5 OxFA 0x81 0x06 Ox0C 0x40 Data Data varies 4 2 8 Response packet 2048 channel spectrum LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data Field MSB LSB Offset 0 1 2 3 4 5 6 6149 6150 6151 Value
47. 6 00 and later Related INOF Description _AINP selects the polarity of the pulses at the DP5 signal input An Amptek Si PIN detector produces negative going steps the AINP setting is NEG An Amptek SDD detector produces positive going steps the AINP setting POS The AINP command is not related to the voltage polarity of the input it is used for selecting the polarity of the input pulses Errors An INVALID PARAMETER error will be returned if the parameter is not one of those listed Example AINP POS Select input pulses for SDD Amptek Inc Page 76 of 140 DP5 Programmer s Guide Rev A4 5 1 2 AUO1 Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc Select AUX_OUT1 Signal AUO1 IICRIPILEUPIMCSTBIONESHI DETRESIMCAENIPEAKHISCA8 none ICR 1 8 or the exact strings listed none FW6 00 and later SCOE SCOT CON1 PX5 DP5G AUO1 selects the source for the AUX_OUT1 signal The selected signal is also used as the trigger source for the digital oscilloscope The parameter can specify the signal name or an index 1 ICR 8 SCA8 Note that PX5 and DP5G require the CON1 command in order to connect the AUXOUT1 signal to the AUX1 connector An INVALID PARAMETER error will be returned if the parameter is not one of the values specified or a number in the range specified in which case the default of ICR wil
48. ACK packet indicates that the FPGA failed initialization and is returned in response to Request Spectrum PID 1 2 packets 4 3 12 Acknowledge packet CP2201 Not Found LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFF 9 0 0 OxFD 0x09 Amptek Inc Page 70 of 140 pE DP5 Programmer s Guide Rev A4 Purpose This ACK packet indicates that the Set Ethernet Settings PID1 0xF0 PID2 0x11 was received but an Ethernet controller was not detected on the DP5 Some early DP5s were manufactured without an Ethernet controller 4 3 13 Acknowledge packet Scope Data Not Available LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFF Ox0A 0 0 OxFD 0x08 Purpose This ACK packet indicates that a Send Scope Data PID1 3 PID2 1 or 3 was received but the digital oscilloscope hasn t triggered so no data is available The digital oscilloscope must be armed and then a trigger must occur for data to be available 4 3 14 Acknowledge packet IC Error LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFF Ox0E 0 0 OxFD 0x04 Purpose This ACK packet indicat
49. ACK packets are in response to ASCII command errors the data field will contain the ASCII command and parameter which caused the error Bad Parameter means that the parameter isn t recognized or exceeds the range of the command Unrecognized Command means that the 4 character command isn t recognized PC5 Not Present is returned if a PC5 is not mated to the DP5 and a command requiring a PCS is sent i e HVSE Set High Voltage A Bad Parameter ACK packet may also be returned for a malformed I2C Request Packet in which case LEN 0 If an incomplete or garbled command is returned in the data field it may mean that the ASCII Configuration Packet has structural issues Disallowed whitespace missing semicolon etc 4 3 10 Acknowledge packet Bad Hex Record LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFF 6 0 0 OxFD 0x0C Purpose This ACK packet applies to microcontroller or FPGA upload packets PID1 0x30 PID2 2 or 7 It means that the hex record contained in the data field of the Request Packet had a checksum or other structural error 4 3 11 Acknowledge packet FPGA Error LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFF 8 0 0 OxFD Ox0A Purpose This
50. AL Unsigned INT MSB LSB 732uV Isb PCS DCAL takes precedence if present 179 PZ Correction See the Set PZ Correction Request Packet for definition Amptek Inc Page 62 of 140 5 DP5 Programmer s Guide Rev A4 180 uC Temp Calibration See the Set uC Temperature Calibration Request Packet for definition 181 ADC Gain Calibration See the Set ADC Calibration Request 182 ADC Offset Calibration Packet for definitions 187 Highpass time constant See the Select High Pass Time Constant Request Packet for definition 188 DP5 RS232 Baud rate See the Select RS232 Baud Rate 189 DP5G Request packet for definition 194 PX5 189 DP5 HV gain calibration 195 PX5 See the Set HV Calibration Request 190 DP5 HV offset calibration Packet for definition 196 PX5 197 PX5 PZ Correction 1 6uS See the Set 1 6uS PZ Correction Request Packet for definition Amptek Inc Page 63 of 140 ne 4 2 19 Response packet Configuration Readback DP5 Programmer s Guide Rev A4 LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data Field MSB LSB Offset 0 1 2 3 4 5 6 5 LEN 6 LEN 7 LEN Configuration Value OxF5 OxFA 0x82 7 varies readback varies ASCII Purpose This response packet is returned in response to a Configuration Readback Request Packet PID1 3 PID2
51. Amptek Inc Set Risetime Discrimination Sensitivity RTDS HHHH 0 2 398 1 5 precision 400 1593 6 5 precision none FW6 00 and later RTDE RTDT RTDS sets the Risetime Discrimination RTD Sensitivity RTD is performed by taking the ratio of the peak slow channel amplitude to the peak fast channel amplitude for a given pulse the event is rejected if the ratio is above the sensitivity setting As the risetime gets slower the fast channel response falls off faster than the slow channel so the ratio increases for the event increases If the peak slow channel amplitude is below the RTD Threshold see RTDT it will be accepted regardless of the ratio and sensitivity setting This command has no effect if RTD is disabled see RTDE An INVALID PARAMETER error will be returned if the parameter is not within the range specified and the sensitivity will be set to 0 RTDS 500 Set the RTD Sensitivity to 500 Page 120 of 140 DP5 Programmer s Guide Rev A4 5 1 46 RTDT Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc Set Risetime Discrimination Threshold RTDT HH HHH full scale 0 0 49 9 0 2 precision none FW6 00 and later RTDE RTDS RTDT sets the Risetime Discrimination RTD Threshold If the peak slow channel amplitude is below the RTD Threshold it will be accepted regardless of the s
52. C HEX File and select DP5_v6 06 00 hex from wherever the ZIP file was unzipped 8 Now when you power cycle the DPS it should be running the new firmware and is no longer compatible with the DP5Loader application or ADMCA Amptek Inc Page 6 of 140 D TEK DP5 Programmer s Guide Rev A4 9 You can leave the RS232 cable connected to verify communications below before moving on to USB or Ethernet 2 2 Installing and running the VB Demo Navigate to wherever the ZIP file was unzipped and locate the Setup_v250 folder Run SETUP EXE from this folder This will install the VB5 demo application Run the application that was installed DP5_v250 exe With the RS232 cable connected to the DPS select the appropriate COM port Switch to the spectrum tab and click Single Update It should acquire data from the DP5 which is in an unconfigured state If the values above the spectrum update and it displays Spectrum OK in the lower left text box then it is communicating Steps 6 8 allow configuring an IP address if Ethernet will be used 6 Go back to the Communication tab and set the IP Address options on the right Click Send to DPS when done 7 Now you should be able to connect Ethernet to the DP5 The green light on the DP5 Ethernet jack should light and blink to indicate a valid link 8 Restart the DP5_v250 exe application It needs to be restart
53. CUSP Parameter l lOF F Units Default OFF same as 0 Range 99 to 99 3 1 precision Dependencies none Supported FW6 00 and later Related TPEA Description CUSP determines whether the shaper produces a trapezoidal pulse shape CUSP 0 or OFF a cusp like shape parameter is positive or a Gaussian like shape parameter is negative Below are scope captures with Peaking Time set to 20uS and Flat Top set to OuS on the left is CUSP 50 On the right is CUSP 50 TekStop ee H Tekstop MET T i een owen ree area errr eee aera ee ee j Mi10 0Ns A Ch2 f 840mV Toomv Mi0 0us A Ch2 s 840mV Ptoomv 4 ar Errors An INVALID PARAMETER error will be returned if the parameter is a number outside the specified range A text parameter is the same as OFF and will not return an error Example CUSP 50 Enable cusp like shaping with 50 depth Amptek Inc Page 86 of 140 DP5 Programmer s Guide Rev A4 5 1 12 DACF Command Parameter Units Range Default Dependencies Supported Related Description Errors Example Amptek Inc Set DAC Offset DACF HF MV millivolts 500 to 499 mV 3 9mV precision OmV none FW6 00 and later DACO TPMO DACF sets the offset for the output DAC The DAC has on output range of 0 1V changing the offset allows one to see signals that would otherwise be out of range of the DAC With a setting of 0 the
54. Description Errors Example Amptek Inc MCST HHH HHH S seconds 0 0 655 35s 10mS precision none FW6 00 and later MCAS MCST configures the timebase used by the MCS Multi Channel Scaler this is the duration of each channel in the MCS acquisition It is only relevant if the acquisition is in MCS mode rather than MCA mode See the MCAS command An INVALID PARAMETER error will be returned if the parameter is not within the range specified MCST 10 Set the MCS timebase to 10 seconds per channel Page 106 of 140 DP5 Programmer s Guide Rev A4 5 1 32 PAPS Turn On Off the Preamp Power Supplies DP5 PX5 only Command PAPS Parameter 8 5 ISIOF F ION DP5 8 5 ISIOF F PX5 Units V Default OFF Dependencies none Supported FW6 00 and later not supported on DP5G Description PAPS turns on or off the PC5 preamp power supplies The PC5 can have either 5V or 8 5V preamp supplies If the 5 or 8 5 option is specified the PCS will be checked to verify if it s the commanded type before it is switched on If ON is commanded this test will not be performed the PC5 preamp supplies will be turned on regardless of which voltage they are ON is not an option for the PX5 the voltage must be specified Errors An INVALID PARAMETER error will be returned if the PC5 does not have the preamp power supplies of the voltage specified or if a pa
55. L SCAO OF F HI GH LO W SCAs SCA pulse width not indexed SCA1 8 ALL SCAW 100 1000 NS 100 Scope trigger edge ALL SCOE RISING FA LLING RISING Digital scope gain ALL SCOG 1 4 16 1 Scope trigger position ALL SCOT 87 50 12 25 87 8192 to 8191 75 8K channels 4096 after to 4095 875 4K Set spectrum offset ALL SOFF OFF HHH CH OFF MCAC_ channels TEC set ALL D P TECS OF F K OFF 0 299K Flat top ALL TFLA HH HHH US OuS 4 0 51 2uS Fast threshold ALL THFA HHH HHH 0 0 255 937 Slow threshold ALL THSL HH HHH 0 0 24 9 LLD threshold 6 01 TLLD HH OF F CH OFF 0 8191 0 8 102 4uS CLK 20MHz 0 2 25 6uS 80MHz 0 2 peaking time ALL TPEA HHH HHH US no default 3 102 4uS AUTO 100 50 100 400 80MHZz 80MHz Fast channel 400 200 400 1600 peaking time ALL TPFA 50 100 200 400 1600 NS 20MHz 4 20MHz OF F S NG D BL Test pulser on off ALL TPMO S NG D BL OFF Volume PX5 only ALL P VOLU OF F ON OFF Support Minimum firmware FW version to support command plus which devices support it D DP5 P PX5 G DP5G GammaRazd If none are listed then all 3 devices support the command Amptek Inc Page 75 of 140 DP5 Programmer s Guide Rev A4 5 1 1 AINP Set the Input Polarity Command AINP Parameter PO S NE G Units none Default NEG Dependencies none Supported FW
56. N and is used in Amptek Inc Page 60 of 140 DP5 Programmer s Guide Rev A4 the 5 5V monitor below 19 D1 DO 5 5V supply MSB 5 5 V MSB 256 LSB 135 5 20 D7 D0 5 5V supply LSB pheno MON 21 D1 D0 AN_IN MSB AN_INCV MSB 256 LSB 419 7 22 D7 D0 AN_IN LSB AN_IN is on J5 11 23 D1 D0 VREF_IN MSB VREF_INCV MSB 256 LSB 24 D7 D0 VREF _IN LSB 419 7 VREF_IN is a test point Offsets 25 38 will be zero if a PC5 is not detected 25 D3 D0 PCS HV Mon MSB HV V MSB 256 LSB 2 731 26 D7 DO PCS HV Mon LSB 27 D3 D0 PC5 Det Temp MSB Det Temp K MSB 256 LSB 28 D7 D0 PC5 Det Temp LSB cc 29 D3 D0 PCS PA supply MSB PA V MSB 256 LSB 455 1 30 D7 D0 PC5 PA supply LSB 31 34 D7 D0 PCS S N LSB MSB 35 D3 D0 DCAL MSB DCAL V MSB 256 LSB 1365 36 D7 DO DCAL LSB 37 D7 PC5 HV polarity 0 HV 1 HV D6 PCS PA supply 0 5V preamp 1 8 5V preamp D5 DO N A 38 D7 D4 N A D3 PC5 9V supply 0 OFF 1 ON D2 PC5 preamp supplies 0 OFF 1 ON D1 PC5 HV supply 0 OFF 1 ON DO PC5 TEC supply 0 OFF 1 ON PX5 Bytes 5 38 5 D3 D0 9V supply MSB 9V V MSB 256 LSB 304 1 6 D7 D0 9V supply LSB 7 D7 D0 3 3V supply MSB 3 3V V MSB 256 LSB 827 5 8 D7 D0 3 3V supply LSB 9 D1 DO 2 5V supply MSB 2 5V
57. P address and source port of the computer connected to it The UDP socket resets itself after 4 5 seconds of inactivity after which any IP address can connect to it so one of the Interface Keep alive Request Packets should be sent periodically if there is no other periodic traffic or if the periodic traffic is less frequent than 2 3 seconds If the host wishes to change the Keep alive status sharing no sharing locked then a Keep alive packet should be sent with the new status even if there is periodic traffic keeping the socket bound The Allow Sharing variant of the Interface Keep alive Request Packet tells the DP5 to return the Sharing Allowed status in the Netfinder device discovery packet It also commands the DPS to accept Interface Sharing Request packets on the Netfinder socket and to return an Ethernet Sharing Request ACK packet via the normal UDP socket if such a packet is received This ACK packet will replace an OK ACK packet at the next opportunity As of FW6 01 this Request Packet only applies to Ethernet In future firmware it may be expanded to include the other interfaces Response If no errors are detected the DP5 will respond with ACK OK packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 46 of 140 D TEK DP5 Programmer s Guide Rev A4 4 1 34 Re
58. Request Packet This is usually happens quickly so that the response is sent with little delay Since the DP5 always sends a Response or ACK Packet in response to receiving a Request Packet it may be desirable to use a timeout interval to identify missed packets The Visual Basic demonstration software uses a timeout interval of 1000mS by default However there are a few packet types which require a longer timeout interval because they may take longer than Is to execute LEN LEN Recommended Description PID1 PID2 MSB LSB Timeout Request diagnostic data 3 5 0 0 2500mS Amptek Inc Page 9 of 140 D TEK DP5 Programmer s Guide Rev A4 Erase FPGA image 0x30 1 0 2 5000mS Erase uC image 1 0x30 5 0 2 2000mS Write 512 byte Misc Data OxFO 0x09 2 0 1000mS 3 2 3 Netfinder UDP port 3040 The DP5 supports the Silicon Labs Netfinder protocol on UDP port 3040 This allows DP5s to be discovered this is particularly useful if DHCP is used to assign dynamic IP addresses as the DPS may have an unknown address By broadcasting a Netfinder Broadcast Identity Request to UDP port 3040 the host directs all DP5s that receive the broadcast to respond with an Identity Reply which includes the DP5 serial number IP address MAC address a text description if one was programmed the time the device has been powered and the status of the interface The host col
59. Reset Configuration has no meaning in the context of Configuration Readback if included it will return RESC Any number of commands may be read back as long as they fit within the maximum data field of 512 bytes As of FW6 01 there is no error handling for the condition where the generated Response Packet exceeds the maximum data field size so limiting the size of the Request Packet data field is a good idea to avoid this issue Response If no errors are detected the DP5 will respond with a Configuration Readback Response Packet PID1 0x82 PID2 7 Any command which is not recognized in the data field will return CMDA where CMDA is the unknown command This is returned in the Response Packet with the rest of the commands Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of the requested data If one or more errors are detected while parsing the Text Configuration an Unknown Bad Parameter Unrecognized Command or PCS Not Present ACK packet will be returned and the data field will contain the ASCII command and parameter which caused the error If more than one error was detected only the last error amp command will be returned Amptek Inc Page 27 of 140 DP5 Programmer s Guide Rev A4 4 1 15 Request packet Clear Spectrum SYNC1 SYNC2 PID1 pipo LEN LEN CHKSUM CHKSUM MSB L
60. SB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFO 1 0 0 OxFD 0x20 Purpose This commands the DPS to clear the MCA spectrum and all associated values slow counts fast counts acquisition time etc If the acquisition was enabled when this command was received it will continue to be enabled after the spectrum is cleared Response If no errors are detected the DPS will respond with ACK OK packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 28 of 140 DP5 Programmer s Guide Rev A4 4 1 16 Request packet Enable MCA MCS SYNC1 SYNC2 PID1 pipo LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFO 2 0 0 OxFD 0x1F Purpose This commands the DP5 to enable the MCA If the acquisition was stopped due to a Disable MCA MCS command or because the Preset Time expired this command will re enable the acquisition without clearing anything If the acquisition was stopped due to Preset Counts being reached then this command will have no effect until the spectrum is cleared See ASCI Commands PREC amp PRET Response If no errors are detected the DP5 will respond with ACK OK packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be
61. SCOT 87150112l 25 87 none FW6 00 and later SCOE SCOG AUO1 DACO Arm Digital Scope Request Packet SCOT sets the trigger position of the internal digital oscilloscope 12 50 or 87 means that the trigger will be positioned at the 12 50 or 87 point of the digital scope data i e the first 246 1024 or 1782 samples are prior to the trigger and the rest are after the trigger 25 means that the trigger occurred 512 samples prior to the start of the scope data Note The internal scope uses the selected AUX_OUT1 signal as the trigger source The scope captures 2048 samples of the signal selected by DACO Also the scope must be armed before a trigger can occur See Arm Digital Scope Request Packet An INVALID PARAMETER error will be returned if the parameter is not one of the values specified SCOT 12 Set the trigger position to 12 Page 130 of 140 DP5 Programmer s Guide Rev A4 5 1 56 SOFF Set Spectrum Offset Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc SOFF OF F l HHHH HHH channels OFF Depends on number of channels specified by MCAC 256 ch 256 to 255 992 ch 1 128 ch precision 512 ch 512 to 511 984 ch 1 64 ch precision 1024 ch 1024 to 1023 969 ch 1 32 ch precision 2048 ch 2048 to 2047 937 ch 1 16 ch precision 4096 ch 4096 to 4095 875 ch 1 8 ch precision 8192 ch
62. Set Custom RTD Oneshot Width pcsscccsssncaressdotaceassouacedassaeapsssiasssieddeceeaaceeoes 122 5 1 48 SCAH Set SCA High Threshold ssieciscescccsscseisesteacedviadeteniandvesesaiheodansbetadsaaintectardonacvnees 123 SAAD CAL a Set SCA iI iiir aeieea eae e e aa e eaS E ea SS 124 51 50 SCAL Set SCA Low Wires os ccs cacsdeascaativaitacuseaetadetectdestesuneedauetacayaseanaieeedaeaeeeaeies 125 5 1 51 SCAO Select SCA Cmte l vag ex ie snissescsasaoeanonsasvandenageuarsaabennecsannaasvanatacdeas waasdeeeneses 126 5 132 SCAW Select SCA Output Pulse Width cicccacacvciedrentacesssdevaasesvsadarssastesscmiecdsesasneateannes 127 5 1 53 SCOE Set Digital Scope Trigger Bdge isisciscsccsdeciecsasssdecssadeane casnaccesasnssedesaueccesaansecvannes 128 5 1 54 SCOG Set Digital Scope Gain sessseesssesssesseeeseeessetessressesseesseersseeesseesseesseeseeenseet 129 5 1 55 SCOT Set Digital Scope Trigger POs Onicciicsscncectescadcesnespecaassidccyereaeetieredcserenaens 130 5 1 56 SOFF Set Spectrum Offset 5 siccisssecccaastsverssanesaatascnseniandevcesienaecesaahaiensasnsoateasduesesagnesessasis 131 5 1 57 TECS Turn On Off the PC5 Thermoelectric Cooler TEC Supply and Set the Temp rat re snno an E E A S REEERE tee aon 132 5 1 58 TFLA Select Flat Top Width esnssessssesessessssessesessessssesesseseseseesntsnsessessesnssssrssesssseoo 133 5 1 59 THEA Select Threshold for Fast Channel ccs scicsesessascsveascavsessassandesenvesventa
63. TEN Ge chen MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA 2 3 0 0 OxFE 0x0C Request packet Request and clear Spectrum plus Status SYNC SYNC2 Pipi pipa EN LEN CHKSUM GHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA 2 4 0 0 OxFE 0x0B Purpose These requests direct the DP5 to take a snapshot of the spectrum and corresponding status data and begin transmitting that data If the Request and Clear form of this packet is send it will also clear the spectrum and associated status data and if the MCA was enabled when this request was received then a new acquisition will start Where should the details about what status fields get cleared be discussed Response If no errors are detected than either a spectrum response packet or a spectrum plus status response packet will be sent by the DPS Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of the requested data If the FPGA failed initialization then an FPGA error ACK packet will be returned Amptek Inc Page 18 of 140 D TEK DP5 Programmer s Guide Rev A4 4 1 3 Request packet Request Digital Scope Data SYNCi ayga Pini piba TEN TEN CHR UM CHRUN MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA 3 1 0 0 OxFE 0x0D 4
64. V MSB 256 LSB 1093 10 D7 D0 2 5V supply LSB 11 D1 DO 1 2V supply MSB 1 2 V MSB 256 LSB 1365 Amptek Inc Page 61 of 140 DP5 Programmer s Guide Rev A4 12 D7 D0 1 2V supply LSB 13 D1 D0 5V supply MSB SV V MSB 256 LSB 545 14 D7 D0 5V supply LSB 15 D1 DO 5V supply MSB 5V V MSB 256 LSB 170 5 16 D7 D0 5V supply LSB ane 17 D1 D0 PA supply MSB PA V MSB 256 LSB 321 6 18 D7 D0 PA supply LSB 19 D1 DO PA supply MSB PA V MSB 256 LSB 170 5 20 D7 D0 PA supply LSB aed 21 D1 D0 TEC supply MSB TEC V MSB 256 LSB 758 5 22 D7 D0 TEC supply LSB 23 D1 D0 HV supply MSB HV V MSB 256 LSB 2 731 24 D7 D0 HV supply LSB 25 D3 D0 Detector Temperature Det Temp K MSB 256 LSB MSB 13 65 26 D7 D0 Detector Temperature LSB 27 D1 D0 Board temperature raw Temp C MSB 256 LSB 1 024 MSB 271 3 28 D7 D0 Board temperature raw LSB 29 38 TBD DP5G Bytes 5 38 5 38 TBD Offsets 39 230 contain the Boot Record Select items are listed below 167 168 HV setting Signed INT MSB LSB in Volts 169 170 TEC setting Unsigned INT MSB LSB in K 171 172 Input Offset Signed INT MSB LSB in mV 2048 indicates default setting 173 176 Preset Time Unsigned LONG MSB LSB 0 1s Isb 177 178 DP5 DC
65. V which corresponds to a setting of 0x555 The conversion factor is 732uV count This value can be read back via the Request Diagnostic Packet Request Packet The setting is stored in the DP5 non volatile memory If a PCS is present it is also stored in the PCS non volatile memory Support This request is supported by the DP5 and PX5 but not the DP5G Response If no errors are detected the DP5 will respond with ACK OK packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 36 of 140 D TEK DP5 Programmer s Guide Rev A4 4 1 24 Request packet Set PZ Correction LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data MSB LSB Offset 0 1 2 3 4 5 6 7 8 Value OxF5 OxFA OxFO 0x0B 0 1 PZ Corr varies Purpose This commands the DPS to set the non volatile correction factor for the Pole Zero This allows digital fine tuning of the analog PZ time constant This calibration value is set at the factory and shouldn t need to be changed This value can be read back via the Request Diagnostic Packet Request Packet The interpretation of the PZ Correction value setting is Setting of 0 127 the correction factor is 1024 setting 1024 i e 100 to 112 4 Setting of 128 255 the correction factor is 768 setting 1024 i e 87 5 to 99 9 Examples setting 0 g
66. alformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 43 of 140 DP5 Programmer s Guide Rev A4 4 1 31 Request packet Set HV Calibration LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data MSB LSB Offset 0 1 2 3 4 5 6 7 8 9 Gain Value OxF5 OxFA OxFO 0x14 0 2 Offset varies Purpose This commands the DP5 PX5 to set the non volatile gain and offset calibration values for the PCS PX5 HV DAC These values can be read back via the Request Diagnostic Packet Request Packet Gain If gain setting is 0 127 Correction 1024 setting 1024 i e 100 to 112 4 If gain setting is 128 255 Correction 768 setting 1024 i e 87 5 to 99 9 Offset The offset setting is a signed byte with a scale factor of 366mV LSB Calibrated ADC Value Raw ADC Value Gain Offset Response If no errors are detected the DP5 PX5 will respond with ACK OK packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 44 of 140 DP5 Programmer s Guide Rev A4 4 1 32 Request packet Set 1 6uS PZ Correction PX5 only LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data MSB LSB Offset 0 1 2 3 4 5 6 7 8 Value OxF5 OxFA OxFO 0x15 0 1 PZ Corr varies Purpose The PXS5
67. aries Purpose This response packet is returned in response to a Request Status Packet Request Packet Data Format The data field contains 64 bytes of status data The format is given below This format also applies to the 64 byte status field in the Spectrum plus Status Response Packets Offset Data Allowed Description Notes bits value 0 D7 DO 0 255 Fast count LSB 1 D7 DO 0 255 Fast count byte 2 2 D7 DO 0 255 Fast count byte 3 3 D7 DO 0 255 Fast count MSB 4 D7 DO 0 255 Slow count LSB Slow counts are counts from 5 D7 DO 0 255 Slow count byte 2 the slow shaped channel 6 D7 DO 0 255 Slow count byte 3 Any event that is counted in the spectrum is also counted 7 D7 DO 0 255 Slow count MSB here 8 D7 DO 0 255 General Purpose Counter LSB The G P Counter can be 9 D7 DO 0 255 G P Counter byte 2 configured to count a number 10 D7 D0 0 255 G P Counter byte 3 of different events 11 D7 D0 0 255 G P Counter MSB 12 D7 DO 0 99 Acc Time 0 99 1mS count 13 D7 DO 0 255 Acc Time LSB 100mS count 14 D7 DO 0 255 Acc Time byte 2 15 D7 DO 0 255 Acc Time MSB 16 D7 DO 0 255 Livetime LSB 1mS count FW6 01 Livetime under 17 D7 DO 0 255 Livetime byte 2 development 18 D7 DO 0 255 Livetime byte 3 19 D7 DO 0 255 Livetime MSB 20 D7 DO 0 255 Realtime LSB 1mS count FW6 01 and
68. can occur See Arm Digital Scope Request Packet An INVALID PARAMETER error will be returned if the parameter is not one of the values specified SCOE RISING Trigger the internal scope on the rising edge of of the trigger selected AUX_OUT1 signal Page 128 of 140 DP5 Programmer s Guide Rev A4 5 1 54 SCOG Command Parameter Units Default Dependencies Supported Related Description Errors Example Amptek Inc Set Digital Scope Gain SCOG 114116 none 1 none FW6 00 and later SCOE SCOT AUO1 DACO Arm Digital Scope Request Packet SCOG sets the gain of the internal digital oscilloscope SCOG does not affect the DAC output The signal is not clamped for gains of 4 or 16 it will roll over so care must be taken to interpret the results accordingly Note The internal scope uses the selected AUX_OUTI signal as the trigger source The scope captures 2048 samples of the signal selected by DACO Also the scope must be armed before a trigger can occur See Arm Digital Scope Request Packet An INVALID PARAMETER error will be returned if the parameter is not one of the values specified SCOG 4 Set the scope gain to 4x Page 129 of 140 DP5 Programmer s Guide Rev A4 5 1 55 SCOT Command Parameter Units Default Dependencies Supported Related Description Errors Example Amptek Inc Set Digital Scope Trigger Position
69. ck LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data MSB LSB Offset 0 1 2 3 4 5 6 5 LEN 6 LEN 7 LEN Value OxF5 OxFA 0x20 3 varies varies varies Purpose This sends a Text Configuration Readback Request Packet to the DPS which the DPS uses as a template to read back the current configuration The data field is the same format as for the Text Configuration Request Packet a list of ASCII command and parameters separated by semicolons The DPS strips off any parameters and replaces them with the current settings for each command specified The result is returned in the Configuration Readback Response Packet It is possible to send a text configuration packet via the Text Configuration Request Packet PID1 0x30 PID2 2 and then reuse the same packet data field for the Text Configuration Readback Request Packet PID1 0x30 PID2 3 to read back the actual settings that the DP5 derived from the Text Configuration packet The and parameter are optional for each command listed the minimum required is the 4 character commands separated by semicolons There is one exception to this the SCAI SCA Index command As this is a directive to the command processor rather than a true command the and parameter are required Here is an example data field to read back the low and high thresholds for SCA1 amp SCA2 SCAI 1 SCAL SCAH SCAI 2 SCAL SCAH Also note that the RESC
70. communicate with multiple DP5s simultaneously or doesn t set the source port explicitly If the host loses the ability to communicate with the socket then the power will have to be cycled on the DP35 to reset the socket As of FW6 01 this Request Packet only applies to Ethernet In future firmware it may be expanded to include the other interfaces Response If no errors are detected the DP5 will respond with ACK OK packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 48 of 140 DP5 Programmer s Guide Rev A4 4 1 36 Request packet Comm test Request ACK packet SYNC1 SYNC2 PID1 pipo LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxF1 0 15 0 0 varies Purpose This Request Packet is handy for software developers it requests that a specific ACK packet be returned in response to the request It s useful for testing application error handling this is much easier than trying to force the various error conditions The value of PID2 is used as PID2 in the ACK packet i e sending the Request Packet PID1 0xF1 PID2 4 will yield a Checksum Error ACK packet PID1 0xFF PID2 4 Response An ACK packet with PID2 equal to the PID2 of the Request Packet This allows all types of ACK packets to be returned Possible errors
71. description 512 channel Spectrum status ALL 0x81 4 0x06 0x40 See description 1024 channel Spectrum ALL 0x81 5 0x0C 0 See description 1024 channel Spectrum status ALL 0x81 6 0x0C 0x40 See description 2048 channel Spectrum ALL 0x81 7 0x18 0 See description 2048 channel Spectrum status ALL 0x81 8 0x18 0x40 See description 4096 channel Spectrum ALL 0x81 9 0x30 0 See description 4096 channel Spectrum status ALL 0x81 OxOA 0x30 0x40 See description 8192 channel Spectrum ALL 0x81 0x0B 0x60 0 See description 8192 channel Spectrum status ALL 0x81 OxOC 0x60 0x40 See description 2048 byte scope packet ALL 0x82 1 8 0 See description 512 byte misc data packet ALL 0x82 2 2 0 See description 2048 byte scope packet w overflow ALL 0x82 3 8 0 See description Ethernet settings ALL 0x82 4 0 0x17 See description Diagnostic data ALL 0x82 5 1 0 See description Hardware description 0x82 6 Configuration readback packet 6 01 0x82 7 varies Netfinder packet 6 01 0x82 8 varies C Read Data 6 01 0x82 9 varies See description 64 byte SCA packet ALL 0x83 1 0 0x40 See description Comm test Echo packet ALL Ox8F_ Ox7F varies Echo data Amptek Inc Initial firmware release which supports this packet type Page 51 of 140 DPS5 Programmer s Guide Rev A4 Offset Data Field CHKSUM MSB 71 CHKSUM LSB Value OxF5 OxFA oxo 1 0 0x40 Status data v
72. e If no errors are detected the DP5 will respond with the 512 byte Misc Data Response Packet PID1 0x82 PID2 2 Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of the requested data Amptek Inc Page 20 of 140 DP5 Programmer s Guide Rev A4 4 1 6 Request packet Request Ethernet Settings SYNC1 SYNC2 PID1 pip LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA 3 4 0 0 OxFE 0x0A Purpose This requests that the DP5 send the Ethernet settings that are stored in the DP5 s non volatile memory See also the Set Ethernet Settings Request Packet for information on how to write these settings Response If no errors are detected the DP5 will respond with the Ethernet Settings Response Packet PID1 0x82 PID2 4 Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of the requested data Additionally if no Ethernet controller is detected on the DPS the CP2201 not found ACK packet will be returned instead of the requested data Amptek Inc Page 21 of 140 DP5 Programmer s Guide Rev A4 4 1 7 Request packet Request Diagnostic Data SYNC1 SYNC2 PID1 pip LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA 3 5 0 0 OxFE 0x09
73. e exclusive for example PRCL 100 and PRCH 102 will only count events that occur in channel 101 An INVALID PARAMETER error will be returned if the parameter is outside the range 0 8191 it is not error checked with regard to the ranges listed If PRCL is set higher than PRCH no error is generated but no events will be counted as this is an impossible condition PRCL 100 Set Preset Counts to count events from PRCH 200 channel 101 to 199 Page 110 of 140 DP5 Programmer s Guide Rev A4 5 1 36 PRCH Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc Set High Threshold for Preset Counts PRCH HHHH channel 8191 Depends on number of channels specified by MCAC 256 ch 0 255 512 ch 0 511 1024 ch 0 1023 2048 ch 0 2047 4096 ch 0 4095 8192 ch 0 8191 none FW6 01 and later PRCL PREC PRCH sets the high threshold for the Preset Counts The low and high thresholds are exclusive for example PRCL 100 and PRCH 102 will only count events that occur in channel 101 An INVALID PARAMETER error will be returned if the parameter is outside the range 0 8191 it is not error checked with regard to the ranges listed If PRCL is set higher than PRCH no error is generated but no events will be output or counted as this is an impossible condition PRCL 100 Set Preset Counts to count events from PRCH 200
74. e 114 of 140 She DP5 Programmer s Guide Rev A4 5 1 40 PURE Pile up Reject Enable Command PURE Parameter ONIOF F IMA X HHH HHH Units US microseconds Default OFF Range The table below specifies the range of the PUR interval as a function of peaking time and FPGA clock Dependencies TPEA must precede PURE if is specified None otherwise Supported FW6 00 and later Related THFA Description PURE is used to enable or disable Pile up Rejection Normally for PURE ON the Pile up interval is dynamic the DPS varies the interval on a pulse by pulse basis to minimize deadtime However this can be overridden The interval can be set to a constant or to the maximum available See the table below for allowable values The PUR interval is started when a peak is detected on the Fast Channel which exceeds its threshold so THFA must be set properly Errors An INVALID PARAMETER error will be returned if the parameter is not ON OFF MAX or within the range specified below If a number is specified that is greater than is allowed INVALID PARAMETER will be returned and the PUR interval will be set to its maximum Example PURE ON Enable Pile up Rejection FPGA Clock 20MHz FPGA Clock 80MHz Peaking Time PUR Interval Precision Peaking Time PUR Interval Precision 0 800 6 40uS 0 25 6uS 50nS_ 0 200 1 600uS 0 6 39uS 12 5nS 6 60 12 80uS 0 51 1uS 100nS 1 650 3 20
75. e Counter ee eee eeeeeeeeeeeeeeeeeeeeneees 95 5 1 21 GPMC General Purpose Counter is Cleared with MCA sssessscseseeseesreererreerrrresrrsreees 96 5 1 22 GPME General Purpose Counter Uses MCA Enable cece eeeeeseeceeceseeeeeeeeneeenaeees 97 5 1 23 HVSE Turn On Off the PC5 High Voltage Supply c cccscsscsssscccosssncesesssessscsesrecessescess 98 B24 INOF Set thie Input Onset iia tetescryeccts eats tae teuva sd crazed ii andcb idan tautewtagheaecitinegsshieateitialale 99 S423 INOG S t th Input Offset GAIN xy snscsaansapasisveasndecusandsevesess ssayeaveavsnaatasenecosdavveeasssvuaatavaies 100 5 1 26 IMCAC Select Number of MCA Channels sesseeeeeseeseeseeeseseessersresressereresrensersrerreeseese 101 5 1 27 MCA Initial State of WIC A Ena 6 esccoscsnnaceascenaseansieadesaceaceiaeuntereseancoeaeadeacsnsteeans 102 5 1 28 MCAS Select the MCA Source tase aaa car data sale cele Sec ty dem eieasnidata sauteedacapted 103 5 1 29 MCSL Set Low Threshold for MCS sjscsccisiscsescsaseeseasasievcnatseeenesasb aves dsascsoanssabensnsaneenevasnis 104 5 130 MCSH Set High Threshold for MCS s is cscisssteanteseenscataneaesdavearsssacetecsanstenseagseenatiecteects 105 Lol MCST Setthe MCS limebase ciiise acne eae aes 106 5 1 32 PAPS Turn On Off the Preamp Power Supplies ces eeeeeessceeseeceseeeseeeeseeesaeenseesees 107 Amptek Inc Page 3 of 140 pE DP5 Programmer s Guide Rev A4 5 1 33 PAPZ Preamp
76. e SCAL SCAH and SCAO commands to specify which SCA these commands will apply to When the SCA index is set to 1 through 8 it also enables the specified SCA output and sets it to active high so the SCAO command doesn t need to be specified unless a different output option is needed Errors An INVALID PARAMETER error will be returned if the parameter is not within the range specified Example SCAI 2 Set the SCA Index to 2 enable SCA2 output as active high SCAL 100 Set the SCA2 LLD to channel 100 SCAH 200 Set the SCA2 HLD to channel 200 Amptek Inc Page 124 of 140 DP5 Programmer s Guide Rev A4 5 1 50 SCAL Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc Set SCA Low Threshold SCAL HHHH channel 0 for all SCAs Depends on number of channels specified by MCAC 256 ch 0 255 512 ch 0 511 1024 ch 0 1023 2048 ch 0 2047 4096 ch 0 4095 8192 ch 0 8191 SCAI must precede SCAL FW6 00 and later SCAI SCAH SCAO SCAW is not indexed SCAL sets the low threshold for the SCA referenced by the SCA Index SCAT The low and high thresholds are exclusive for example SCAL 100 and SCAH 102 will only output events that occur in channel 101 An INVALID PARAMETER error will be returned if the parameter is outside the range 0 8191 it is not error checked with regard to the ranges listed If SCAL is se
77. e packet Unrecognized Command 0 cccccesceeeseeeeeenseceaeceeeeeeeeeeaeeeaeens 70 4 3 9 Acknowledge packet PCS Not Present vejseccssnsatasseasisensdiveccestavevecsizentvansoseezcsiaaudunesveneate 70 4 3 10 Acknowledge packet Bad Hex Record iiss sacisnvocccvsnshaceceassacanaess aeisiviadeeiespasnntersiersivndace 70 4 3 11 Acknowledge packet FPGA Birt sec jiessscerasseracensseeesiiesssccseeassensneess sevinasenesdeavtaseadeetinnnsd 70 4 3 12 Acknowledge packet CP2201 Not Found 0 cece cceccssseeeseeceseceseceeeeeeaeecsaeceseeseneeeeees 70 4 3 13 Acknowledge packet Scope Data Not Available ecccescceseceseeeeeeeeceeeaeceseeseeeeeaees 71 4 3 14 Acknowledge packet EPO EIO a a eon aa an e n Sr 71 PRS CTC Cinna Sau ras herve cccese tp ads Sotvecatenetnad ea ssncecuieLeaceasivnlaiueaioed cuaianieinan ede einer 72 5 1 Table 4 ASCII Command Summary eseeseesseseeeseeeresressrseresttssttetesresstsstestensesttesteeseestesreeseeee 73 5 1 1 AINP Seb th Input Pelayo assein sioiias aiei asais 76 51 2 AUO I Select AUX OUTI Signal renesansne 77 5 1 3 AUO 2 Select AUX_OUT 2 Sista sa cacinislsacsrsaseguncwiavenescatatunnpaabeaatenannddevanatacduss waasebabenedense 78 5 1 4 BLRD Select the Baseline Restorer Down Correction sssssssesssssrsesseesseeserssrsssesse 79 5 1 5 BLRM Select the Baseline Restorer Mode eesceceeseeceeeeceeeeeceeeeeceeeeesseeeeseeeeeeeaees 80 5 1 6 BLRU
78. e request can t be executed e an ACK packet indicating that an ASCII command had a unrecognized command field or an invalid parameter field the command in question will be echoed in the data field of the ACK packet f an ACK packet indicating the request packet was received and interpreted without error and a sharing request was received from another computer via Ethernet All packets sent to and from the DP5 use the same basic packet format a 6 byte header which defines the type and length of the packet an optional data field and a 16 bit checksum For packets sent to the DP5 the optional data field can be up to 512 bytes for a maximum packet size of 520 bytes For packets sent by the DP5 to the host PC the maximum data field size is 32767 for a maximum packet size of 32775 bytes Packet Format Offset 0 1 2 3 4 5 6 5 LEN 6 LEN 7 LEN Data optional CHKSUM CHKSUM Value OxF5 OxFA PID1 PID2 LEN MSB LEN LSB 0 512 bytes MSB LSB Fields Offset 0 amp 1 Sync bytes these fields have fixed values of OxF5S and OxFA Offset 2 amp 3 Packet ID fields 1 amp 2 PID1 amp PID2 these define the meaning of the packet as summarized in Table 1 Table 2 and Table 3 Offset 4 amp 5 16 bit length field LEN of the optional data field If data field is not present LEN 0 If LEN 0 Offset 6 amp 7 16 bit checksum MSB then LSB This is a two s complement of
79. e selected signals to external connectors CON1 AUO1 AUO2 GPIN GATE Selects the signal for the AUX2 connector on PX5 or DP5G PCG AUXOUT2 will output the digital signal selected by the AUO2 command AUXIN switches the AUXI connector to an input AUXIN can then be selected as an input to the General Purpose Counter via GPIN GATER or GATEL switches the AUX2 connector to an input and uses the AUX2 signal as an active high or active low gate input An INVALID PARAMETER error will be returned if the parameter is not one of the options specified CON2 AUXOUT 2 Configure Connector 2 to AUXOUT2 Page 84 of 140 DP5 Programmer s Guide Rev A4 5 1 10 CLCK Select FPGA Clock Command CLCK Parameter 20I80 IAU TO DP5 PX5 20 DP5G Units MHZ Default AUTO DP5 PX5 20 DP5G Dependencies none Supported FW6 00 and later Related TPEA Description CLCK sets the FPGA clock to either 20MHz or 80MHz If AUTO is used as the parameter then the value of the peaking time command TPEA will determine whether the FPGA clock is 20MHz or 80MHz The DP5G only supports 20MHz operation Errors An INVALID PARAMETER error will be returned if the parameter is not one of those listed Example CLCK 20 This sets the FPGA clock to 20MHz Amptek Inc Page 85 of 140 DP5 Programmer s Guide Rev A4 5 1 11 CUSP Specify Non Trapezoidal Shaping Command
80. e sent to indicate this has occurred 3 4 Transfer times and data buffering deadtime In response to a Spectrum or spectrum status request packet the DP5 will briefly shut off data acquisition so that it can make a copy of the spectrum memory When complete the MCA is re enabled and the acquisition continues This deadtime is a function of how many channels are selected 256 512 etc and whether the FPGA is running at 20 or 80MHz This deadtime will occur each time the spectrum is read out and this is reflected in the acquisition time the acquisition timer is stopped during this deadtime while the realtime timer continues to run Note that there is no deadtime penalty for using the request spectrum and clear or request spectrum status and clear form of the request packet the clear function happens simultaneously with the buffering function and does not add to the deadtime The measured deadtimes are of Channels 20MHz Clock 80MHz Clock 256 228uS 113uS 512 420uS 189uS 1024 804uS 343uS 2048 1 57mS 650uS 4096 3 12mS 1 27mS 8192 6 18mS 2 50mS The USB Ethernet and RS232 transfer times were measured using an oscilloscope The transfer times include the time from when the request packet was started to when the response packet was completed i e the whole round trip transfer was measured The transfer times include the deadtime
81. e separated by semicolons Some commands have dependencies they require other commands to be listed before them For example the Peaking Time command TPEA needs to know what FPGA clock to use so it requires the FPGA Clock CLCK command to be listed before it Likewise many commands are dependent on the TPEA command so it must precede them If a dependent command is specified that command must occur prior to the command which lists the dependency The table below specifies the Order for each command lower Order commands must be sent before higher Order commands Amptek Inc Page 72 of 140 5 1 Table 4 ASCII Command Summary DP5 Programmer s Guide Rev A4 Comman Description Support d Parameter Units Default ORDER Limits ACK Don t ACK packets with errors ACKE ON OF F Analog input pos neg ALL AINP PO S NE G NEG ICR PILEUP MCSTB ONESH DETRES MCAEN 1 8 or the exact AUX_OUT selection ALL AUO1 PEAKH SCA8 ICR strings listed IICRIDIAGIPEAKHI AUX_OUT2 ONESHIRTDOS 1 8 or the exact selection ALL AUO2 RTDREJILIVEIVETO ICR strings listed BLR down correction ALL BLRD 0 0 3 BLR mode ALL BLRM OF F 1 OFF only 1 for now BLR up correction ALL BLRU 0 0 3 Turn supplies on off at power up ALL D BOOT ON OF F AUXIN1 DP5G Select Connector 1 DACIAUXOUTII DAC signal 6 03 P G CON1 AUXINI PX5 AUXIN2
82. ed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of the requested data or the ACK OK packet If the PC master didn t detect the I C ACK at the proper time an I C ERROR ACK packet will be returned A BAD PARAMETER ACK packet will be returned if there are structure problems with the request NOBR NOBW2 0 LEN not equal to NOBW 3 NOBR gt 32 NOBW gt 32 or SA 0 4 1 10 Request packet Request 32 bit SCA Counters SYNC1 SYNC2 PID1 pip LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA 4 1 0 0 OxFE 0x0C Amptek Inc Page 24 of 140 D TEK DP5 Programmer s Guide Rev A4 4 1 11 Request packet Latch Request 32 bit SCA Counters SYNC1 SYNC2 PID1 pip LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA 4 2 0 0 OxFE 0x0B 4 1 12 Request packet Latch Clear Request 32 bit SCA Counters SYNC1 SYNC2 PID1 pip LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA 4 3 0 0 OxFE 0x0A Purpose These request that the DP5 send 64 bytes of SCA counter data 16 SCAs x 32 bits each The data is read from the SCA counter latches so the SCAs must have been latched either via the Latch form of these requests a Latch SCA Request Packet which is TBD in FW6 01 or a hardware signal
83. ed to change the communication interface Click the Search for DP5s button It should display a separate form which after a short time should show the DP5 along with its IP address etc Click on it to pass the IP address back to the Communication tab 9 Click the spectrum tab and click auto update It should update the data indicating that it is able to communicate via Ethernet 10 Click the Configuration tab Currently the demo app can only send a text configuration file Click the Send text configuration file button For a SDD with 5V preamp select the SDD Config txt configuration file from the location where the ZIP file was unzipped This file is for an Amptek SDD w 5V preamp HV 190 TEC 220K This file can be edited to modify the DP5 parameters make sure to save the changes before sending it wie SNS Note 1 The VB5 source code for the demo is located in the Setup_v250 Source folder 3 Interfaces The DP5 supports three communication interfaces USB Ethernet and RS232 Details about the specific interfaces are in the following sections Note Attempting to use multiple interfaces simultaneously can result in unexpected behavior Because of this the Ethernet general UDP socket is disabled whenever the USB port is connected to a live host port The socket is re enabled if the USB cable is disconnected or the host hub to which the DPS is physically connected is powered off The Ne
84. el to be channel 0 not channel 1 to be consistent with the above commands The fine gain now has a minimum precision of part in 8192 It was as low as 1 part in 256 in FP5 10 This allows the GAIN and GAIF to be set with the precision of 1 channel or better Calibration of the PX5 and DP5 PC5 HV supplies is supported PAPZ preamp pole zero command for PX5 Fixed RTD in FP5 09 FP5 10 only worked with TPFA fast peaking time of 100nS 80MHz or 400nS 20MHz Added a build number to the firmware version in byte 37 of the status packet FW6 06 build 0 is listed as FW6 06 00 Improved precision of THFA Fast Threshold and THSL Shaped Threshold commands Added input offset gain command INOG for PX5 1 3 FW6 05 FP5 10 RS232 A Gap timer was added support for 57 6kbaud and 19 2kbaud was added in addition to the standard 115 2kbaud See section 3 3 Added reboot bit to status packet to aid in detecting unexpected reboot power cycle 1 4 FW6 04 FP5 10 UDP receive buffer was expanded to handle 590 byte DHCP response Amptek Inc Page 5 of 140 D TEK DP5 Programmer s Guide Rev A4 Fixed THFA readback for unconfigured condition Fixed Unit is Configured bit in status packet 1 5 FW6 03 FP10 CON amp CON2 commands for GammaRad DP5G PCSG and PX5 1 6 FW6 02 FP5 09
85. ensitivity setting This has no effect if RTD is disabled see RTDE An INVALID PARAMETER error will be returned if the parameter is not within the range specified and the threshold will be set to 49 9 or 0 if a negative number is specified RTDT 10 Set the RTD Threshold to 10 full scale i e for 1K channels 10 channel 102 Page 121 of 140 DP5 Programmer s Guide Rev A4 5 1 47 RTDW Set Custom RTD Oneshot Width Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc RTDW HHH decimated clocks none 1 127 RTDE must precede RTDW FW6 00 and later RTDE RTDS RTDT RTDD RTDW is used to fine tune the timing of the RTD logic It may be needed for events with very slow risetimes or configurations where the shaper produces a non trapezoidal cusp shape For these events the peak of the shaped event may not occur when it is expected The standard RTD timing parameters are calculated when the RTDE command is received so the RTDW amp RTDD commands must come after RTDE so that they can override the standard timing For instructions on how to fine tune the RTD timing see the RTDD command An INVALID PARAMETER error will be returned if the parameter is not in the range specified RTDW 60 Override the standard RTD timing set the RTD Oneshot period to 60 decimated clocks Page 122 of 140
86. ependencies none Supported FW6 00 and later Related BLRM BLRU Description BLRD selects the size of the BLR down correction 0 is the smallest slowest least aggressive and 3 is the largest fastest most aggressive Errors An INVALID PARAMETER error will be returned if the parameter is not in the range specified Example BLRD 3 Select the most aggressive BLR down correction Amptek Inc Page 79 of 140 DP5 Programmer s Guide Rev A4 5 1 5 BLRM Select the Baseline Restorer Mode Command Parameter Units Default Dependencies Supported Related Description Errors Example Amptek Inc BLRM OF F I1 none OFF none FW6 00 and later BLRU BLRD BLRM selects whether the Baseline Restorer is enabled and if so which mode it will operate in In the initial release FW6 00 only BLR mode 1 is supported others will be added in the future An INVALID PARAMETER error will be returned if the parameter is not OFF or 1 BLRM 1 Enable the BLR Page 80 of 140 DP5 Programmer s Guide Rev A4 5 1 6 BLRU Select the Baseline Restorer Up Correction Command BLRU Parameter Units none Default 0 Range 0 3 Dependencies none Supported FW6 00 and later Related BLRM BLRD Description BLRU selects the size of the BLR up correction 0 is the smallest slowest least aggressive and 3 is the largest
87. ependencies none Supported FW6 01 and later PX5 only not supported by DP5 or DP5G which don t have speakers Description This turns the PX5 speaker on or off This simulates a Geiger counter and produces a click for each event recorded by the fast channel Errors An INVALID PARAMETER error will be returned if the parameter is not ON or OF F Example VOLU ON Enable the PX5 speaker Amptek Inc Page 140 of 140
88. erated but no events will be counted as this is an impossible condition MCSL 100 Set MCS to count events from MCSH 200 channel 101 to 199 Page 104 of 140 DP5 Programmer s Guide Rev A4 5 1 30 MCSH Set High Threshold for MCS Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc MCSH HHHH channel 8191 Depends on number of channels specified by MCAC 256 ch 0 255 512 ch 0 511 1024 ch 0 1023 2048 ch 0 2047 4096 ch 0 4095 8192 ch 0 8191 none FW6 01 and later MCSL MCST MCAS MCSH sets the high threshold for the MCS Multi Channel Scaler The low and high thresholds are exclusive for example MCSL 100 and MCSH 102 will only count events that occur in channel 101 The MCS thresholds only have meaning when the MCS operational mode is selected by the MCAS command An INVALID PARAMETER error will be returned if the parameter is outside the range 0 8191 it is not error checked with regard to the ranges listed If MCSL is set higher than MCSH no error is generated but no events will be output or counted as this is an impossible condition MCSL 100 Set MCS to count events from MCSH 200 channel 101 to 199 Page 105 of 140 DP5 Programmer s Guide Rev A4 5 1 31 MCST Set the MCS Timebase Command Parameter Units Default Range Dependencies Supported Related
89. es description ACK or Data Request 32 bit SCA counters ALL 4 1 0 0 Latch Request 32 bit SCA counters ALL 4 2 0 0 Latch Clear Request 32 bit SCA counters ALL 4 3 0 0 Text configuration to ASCII DP5 ALL 0x20 2 varies configuration ACK packet Text configuration ASCII Readback from DP5 ALL 0x20 3 varies configuration Data packet Erase FPGA image ALL 0x30 1 0 2 0x12 0x34 ACK packet Upload packet FPGA ALL 0x30 2 varies ACK packet Reinitialize FPGA 0x30 3 0 0 Erase uC image 0 0x30 4 0 2 0x12 0x34 ACK packet Erase uC image 1 ALL 0x30 5 0 2 0x12 0x34 ACK packet Erase uC image 2 0x30 6 0 2 0x12 0x34 ACK packet Upload packet uC ALL 0x30 7 varies ACK packet Switch to uC image 0 0x30 8 0 2 OxA5 OxF1 ACK packet Switch to uC image 1 ALL 0x30 9 0 2 OxA5 0xF1 ACK packet Switch to uC image 2 0x30 Ox0A 0 2 0xA5 0xF1 ACK packet Amptek Inc Page 15 of 140 DP5 Programmer s Guide Rev A4 Clear Spectrum Buffer ALL OxFO 0x01 0 0 ACK packet Enable MCA MCS ALL OxFO 0x02 0 0 ACK packet Disable MCA MCS ALL OxFO 0x03 0 0 ACK packet Arm digital oscilloscope ALL OxFO 0x04 0 0 ACK packet ALL D Autoset input offset P OxFO 0x05 0 0 ACK packet Autoset fast threshold ALL OxFO 0x06 0 0 ACK packet Read 103 0 OxFO 0x07 0 0 Write 103 0 ALL OxFO 0x08 0 1 ACK packet Write 512 byte Misc Data ALL OxFO 0x09 2 0 ACK packet ALL D Set DCAL P
90. es that the C Bus Master attempted a transfer as described by the PC Transfer Request Packet but no C ACK was detected from an IC Slave Amptek Inc Page 71 of 140 Di TEK DP5 Programmer s Guide Rev A4 5 ASCII Commands In the following section the format is specified for all the ASCII commands recognized by the DPS These commands are sent to the DP5 in the Text Configuration Request Packet PID1 0x20 PID2 2 The commands can be sent singly but most often they are grouped together into a single Text Configuration packet so that the entire configuration can be sent at once Generally when the entire configuration is sent at once the first command should be RESC Y This resets the configuration to a known state before applying the configuration commands This is not automatically done because it may be possible that the required configuration is larger than can be sent in a single Text Configuration Request Packet If this is the case then RESC Y and as many commands as will fit should be sent in the first Text Configuration packet with the remaining commands in later packets Also it may be desirable to send individual commands to fine tune the configuration This is discussed in the Text Configuration Request Packet definition but it s worth mentioning again all ASCII characters must be upper case no whitespace is allowed i e no spaces tabs CR LF etc and the commands ar
91. has two software selectable pole zero settings 1 6uS and 3 2uS This commands the PXS5 to set the non volatile correction factor for the 1 6uS Pole Zero This allows digital fine tuning of the analog PZ time constant This calibration value is set at the factory and shouldn t need to be changed This value can be read back via the Request Diagnostic Packet Request Packet The interpretation of the PZ Correction value setting is Setting of 0 127 the correction factor is 1024 setting 1024 i e 100 to 112 4 Setting of 128 255 the correction factor is 768 setting 1024 i e 87 5 to 99 9 Examples setting 0 gt 100 correction factor setting 10 gt 101 correction factor setting 250 gt 99 4 correction factor Note This command won t take effect until the next configuration request packet is received Response If no errors are detected the PX5 will respond with ACK OK packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 45 of 140 D TEK DP5 Programmer s Guide Rev A4 4 1 33 Request packet Interface Keep alive Allow Sharing SYNC1 SYNC2 PID1 pipo LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFO 0x20 0 0 OxFD 0x01 Purpose This Request Packet is used to keep the DP5 s UDP socket bound to the I
92. hese SCAs don t have outputs but this will not produce an error SCAI Set the SCA Index to 2 enable SCA2 output as active high SCAO LOW Set SCA2 to an active low output instead Page 126 of 140 DP5 Programmer s Guide Rev A4 5 1 52 SCAW Select SCA Output Pulse Width Command SCAW Parameter 10011000 Units NS nanoseconds Default 100 Dependencies none Supported FW6 00 and later Related SCAI SCAL SCAH Description SCAW sets the output pulse width for SCA 1 8 SCA 9 16 don t have outputs This setting isn t indexed like other SCA settings it applies to all 8 SCAs Errors An INVALID PARAMETER error will be returned if the parameter is not 100 or 1000 and the width will be set to 100 Example SCAW 1000 Set SCA 1 8 to produce 1000nS pulses Amptek Inc Page 127 of 140 DP5 Programmer s Guide Rev A4 5 1 53 SCOE Command Parameter Units Default Dependencies Supported Related Description Errors Example Amptek Inc Set Digital Scope Trigger Edge SCOE RI SING IFA LLING none RISING none FW6 00 and later SCOT SCOG AUO1 DACO Arm Digital Scope Request Packet SCOE sets the trigger edge polarity of the internal digital oscilloscope Note The internal scope uses the selected AUX_OUT1 signal as the trigger source The scope captures 2048 samples of the signal selected by DACO Also the scope must be armed before a trigger
93. ieve the commanded gain while also normalizing for gain differences caused by peaking time variations See the GAIA command for available analog gains An INVALID PARAMETER error will be returned if the parameter is not with the range specified GAIN 100 Set the combined digital and analog gain to 100 Page 91 of 140 DP5 Programmer s Guide Rev A4 5 1 17 GATE DP5 only Command Parameter Units Default Dependencies Supported Related Description Errors Example Amptek Inc Configure the GATE Input GATE OF F IHI GH ILO W none OFF none FW6 00 and later DP5 only PX5 and DP5G use CON to configure the GATE function CON PX5 amp DP5G GATE selects whether the GATE function is enabled and if so the polarity of the GATE input HIGH means that events are rejected while the GATE input is high LOW means that events are rejected while the GATE input is low If enabled GATE uses the DP5 AUX_INI1 input which has a pull down resistor on it An INVALID PARAMETER error will be returned if the parameter is not one of the values specified GATE HIGH Enable GATE events are rejected while input is high Page 92 of 140 DP5 Programmer s Guide Rev A4 5 1 18 GPED Command Parameter Units Default Dependencies Supported Related Description Errors Example Amptek Inc Select General Purpose Counter Edge GPED
94. instead of ACK OK Amptek Inc Page 47 of 140 steh DP5 Programmer s Guide Rev A4 4 1 35 Request packet Interface Keep alive Lock SYNC1 SYNC2 PID1 pipo LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFO 0x22 0 0 OxFC OxFF Purpose This Request Packet is used to keep the DP5 s UDP socket bound to the IP address and source port of the computer connected to it Normally the UDP socket resets itself after 4 5 seconds of inactivity after which any IP address can connect to it but it will not automatically reset itself after receiving this Request Packet so periodic transfers are no longer required to keep the socket bound If the host wishes to change the Keep alive status sharing no sharing locked then a Keep alive packet should be sent with the new status The Lock variant of the Interface Keep alive Request Packet tells the DP5 to return the Lock status in the Netfinder device discovery packet It also commands the DP5 to ignore Interface Sharing Request packets on the Netfinder socket and to not automatically reset the socket Care must be taken in using this the UDP socket binds to the IP Address and source port of the host so the DP5 will then only communicate with the same IP amp source port The host IP address may change if the host uses a dynamic IP address the source port may change if the host wishes to
95. k Inc GPIN IAUX1IAUX2IPILEUPIRTDREJISCA8ITBDIDETRESIOFF none AUX1 1 8 none FW6 00 and later GPED GPME GPGA GPMC Clear G P Counter Request Packet CON1 CON2 PX5 DP5G GPIN selects the source for the General Purpose G P Counter The G P Counter will count rising or falling edges of the source see GPED AUX1 refers to the DP5 AUX_INI input AUX2 refers to the DP5 AUX_IN2 input TBD is currently undefined An index can be used rather than the signal name 1 AUX1 8 OFF Note PX5 and DP5G require the CON1 CON2 command to connect the AUXIN1 AUXIN2 input to the AUX1 AUX2 connector for it to be available as a counter source An INVALID PARAMETER error will be returned if the parameter is not one of the values specified or a number in the range specified in which case the default of AUX1 will be used Most of the commands which have text parameters only require the first two characters this command requires all characters specified GPIN RTDREJ Set the G P Counter to count events rejected by RTD Page 95 of 140 DP5 Programmer s Guide Rev A4 5 1 21 GPMC General Purpose Counter is Cleared with MCA Command Parameter Units Default Dependencies Supported Related Description Errors Example Amptek Inc GPMC ONIOF F none ON none FW6 00 and later GPED GPIN GPME GPGA GATE Clear G P Counter Request Packet
96. k properly See RTDE PUR the MCA records only piled up events rather than normal events This requires RTD to be disabled to work properly See RTDE RTD the MCA records only events that would normally be rejected by RTD This requires RTD to be enabled to work properly See RTDE RTDS and RTDT An INVALID PARAMETER error will be returned if the parameter is not one of those listed and NORM will be used MCAC FAST Acquire a spectrum of the fast channel Page 103 of 140 DP5 Programmer s Guide Rev A4 5 1 29 MCSL Set Low Threshold for MCS Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc MCSL HHHH channel 0 Depends on number of channels specified by MCAC 256 ch 0 255 512 ch 0 511 1024 ch 0 1023 2048 ch 0 2047 4096 ch 0 4095 8192 ch 0 8191 none FW6 01 and later MCSH MCST MCAS MCSL sets the low threshold for the MCS Multi Channel Scaler The low and high thresholds are exclusive for example PRCL 100 and PRCH 102 will only count events that occur in channel 101 The MCS thresholds only have meaning when the MCS operational mode is selected by the MCAS command An INVALID PARAMETER error will be returned if the parameter is outside the range 0 8191 it is not error checked with regard to the ranges listed If MCSL is set higher than MCSH no error is gen
97. ket IC Transfer LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data MSB LSB Offset 0 1 2 3 4 5 6 5 LEN 6 LEN 7 LEN Value OxF5 OxFA 3 8 varies varies varies Purpose The data field of this Request Packet contains the description for an I C transfer to be performed by the DP5 Read Write and Combined I C transfers are supported The format of the data field is listed below The first 3 bytes are mandatory following those are the bytes to be written which can number from 0 to a maximum of 32 Therefore the size of the data field LEN has a minimum of 3 and a maximum of 35 Data Allowed Values Value Offset 0 1 127 7 bit PC slave address SA 1 0 32 Number of bytes to read NOBR 2 0 32 Number of bytes to write NOBW 3 34 0 255 Bytes to be written optional Note The DP5 uses Slave Addresses of 0x20 and 0x4C The optional PC5 uses Slave Addresses of Ox1F 0x34 0x50 and 0x6D Transfers should not be attempted using these Slave Addresses Also the value in offset 0 is the 7 bit address this value will be shifted left one bit and the appropriate R W bit merged in before it s transmitted on the I C bus Response If no errors are detected the DP5 will respond either with an ACK OK packet if NOBR 0 or with an PC Response Packet with the bytes read from the TC slave if NOBR gt 0 Possible errors If the request packet is malform
98. l be used Most of the commands which have text parameters only require the first two characters this command requires all characters specified AUO1 PILEUP Set the AUX_OUT1 signal to PILEUP and trigger the digital scope on it Page 77 of 140 DP5 Programmer s Guide Rev A4 5 1 3 AUO2 Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc Select AUX_OUT 2 Signal AUO2 IICRIDIAGIPEAKHIONESHIRTDOSIRTDREJILIVEIVETO none ICR 1 8 or the exact strings listed none FW6 00 and later FW6 02 and later for string names CON2 PX5 DP5G AUO 2 selects the source for the AUX_OUT2 signal The parameter can specify the signal name or an index 1 ICR 8 VETO Note that PX5 and DP5G require the CON command in order to connect the AUXOUT2 signal to the AUX2 connector An INVALID PARAMETER error will be returned if the parameter is not one of the values specified or a number in the range specified in which case the default of ICR will be used Most of the commands which have text parameters only require the first two characters this command requires all characters specified AUO2 RTDOS Set the AUX_OUT2 signal to RTDOS Page 78 of 140 DP5 Programmer s Guide Rev A4 5 1 4 BLRD Select the Baseline Restorer Down Correction Command BLRD Parameter Units none Default 0 Range 0 3 D
99. later 21 D7 DO 0 255 Realtime byte 2 22 D7 DO 0 255 Realtime byte 3 23 D7 DO 0 255 Realtime MSB 24 D7 D4 6 15 Firmware version major D3 D0 0 15 Firmware version minor 25 D7 D4 5 15 FPGA version major D3 D0 0 15 FPGA version minor 26 D7 DO 0 255 Serial Number LSB 27 D7 DO 0 255 Serial Number byte 2 28 D7 DO 0 255 Serial Number byte 3 29 D7 DO 0 255 Serial Number MSB 30 D7 DO 0 255 HV MSB DP5G N A Amptek Inc Page 52 of 140 DP5 Programmer s Guide Rev A4 31 D7 DO 0 255 HV LSB signed integer 0 5V count 32 D7 D4 0 unused D3 DO 0 15 Detector temperature MSB DP5G N A 33 D7 DO 0 255 Detector temperature LSB 0 1 degree Kelvin count 34 D7 DO Board temp 1 C count 128 127 signed 35 D7 0 Preset real time not reached or not enabled 1 Preset real time reached MCA stopped D6 0 Auto Fast Threshold not locked 1 Auto Fast Threshold locked D5 0 MCA disabled 1 MCA enabled D4 0 Preset count not reached 1 Preset Count reached MCA stopped D3 0 TBD PS status D2 0 Oscilloscope data not ready 1 Oscilloscope data ready D1 0 Unit has not been configured 1 Unit is configured DO 0 TBD 36 D7 0 Auto Input Offset locked 1 Auto Input Offset searching D6 0 MCS not finished 1 MCS finished D5 0 No reboot FW6 05 and later 1 This is first sta
100. le input offset Response If no errors are detected the DP5 will respond with ACK OK packet The DP5 sends the ACK packet immediately and does not wait for the Autoset function to complete The result of this command is in the status data offset 36 bit D7 it returns Auto Input Offset locked or Auto Input Offset searching Status can be polled until the result indicates locked Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 32 of 140 DP5 Programmer s Guide Rev A4 4 1 20 Request packet Autoset Fast Threshold SYNC1 SYNC2 PID1 pipo LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFO 6 0 0 OxFD 0x1B Purpose This commands the DP5 to search for an appropriate fast threshold setting In order for the Autoset Fast Threshold function to work properly no input counts can be present other than noise Response If no errors are detected the DP5 will respond with ACK OK packet The DP5 sends the ACK packet immediately and does not wait for the Autoset function to complete The result of this command is in the status data offset 35 bit D6 it returns Auto Fast Threshold not locked or Auto Fast Threshold locked Status can be polled until the result indicates locked The fast threshold determined by this
101. lects the responses from all the DP5s on the subnet and can then determine which IP address to access based on DPS serial number description etc The Broadcast Identity Request is 6 bytes in size and is defined below The format of the Identity Reply is also listed below its size is variable because it contains several variable length null terminated strings Note that the 2 string the description comes from the DP5 s Misc Data buffer If the firmware finds a null terminated string of 40 characters or less it will send that as the description string Otherwise no description is used Note the DP5 will not respond to the Netfinder standard 4 byte version of the Broadcast Identity Request as defined by Silicon Labs Note that because UDP packet reception is not guaranteed packets aren t automatically resent occasionally not all responses will be received It may be necessary to send multiple Identity Request packets to receive responses to all units This depends on how busy the network is and how many DP5s are present Each subsequent Identity Request should use a different sequence ID a DP5 will not respond to a repeated Identity Request with the same sequence ID Note that while the Broadcast Identity Request packet is normally sent as a UDP broadcast packet i e a destination IP of xxx xxx xxx 255 it can also be sent to a specific IP address Also note that UDP broadcast packe
102. lesa uhvdnaes Gavantadhaetashotees 8 3 1 1 Tostalline the Wy VS BV osisissireoirioersitessiitgssiei asi iasi i iasi 8 32 Ethernetesscnieonn a E E E R E E E 8 32 1 Ethernet FE US saa zacacs wenag ee eadeaeseeuscetansveaantaneen erserniass tae nie ema ae EARE 9 3 2 2 General UDP POTT cscri naa a E E S ESES 9 3 2 3 Netfinder UDP port 3040 sismsinsisisiisuiisssisssrsiises airiai ciinei isina sisii 10 2S E o N E E E E PAT A E EET 12 3 4 Transfer times and data buffering deadtime sje ciessacctsientacepedoanacesepicaudsVoadeaeecoddecdebeseecssvegeasexwiane 12 4 Packet Format sniciisicieinse nannan a E a E E Ea Ea E aE E Eais 14 4 1 Request Packets Host PC to DPS Jees iccriniensctiiriireer anne onien eiat 15 4 1 1 Request packet Request Status Packet nn seneseeseeseessseseesesssessererssessesseeseesseesersseesse 17 4 1 2 Spectrum Request Packets 36a canccascascnsseiusbeanvnnsngusniusesntnaasduncrinteaetebaaegaevaaceauseapeecPanemaceane 18 4 1 3 Request packet Request Digital Scope Data vss sisssensexssiesscuanivvavewasasateauenverasvyscseutiesutvens 19 4 1 4 Request packet Request Digital Scope Data amp Re arm Scope ss ssssssssessessessseessesesesse 19 4 1 5 Request packet Request Misc Data avis cciasyciseevaiensonssicetentarsadoneneareeianraserteeatenonne 20 4 1 6 Request packet Request Ethernet Settings isecouiscssusudcennaiarasedceteaytrraascdaroeinaeeeareantes 21 4 1 7 Request packet Request Diagnos
103. not supported on DPS5G which does not have a variable input offset Related AINP INOG Description INOF sets a DAC which shifts the input to the ADC so that the signal is in the proper range Generally the default setting DEF can be used because a standard DP5 has an AC coupled signal input which removes DC levels from the preamp For a customized DP5 or a PX5 with preamp pole cancellation enabled via PAPZ it may be necessary to set the input offset manually If so it should be set to produce a DC level of 200mV for AINP NEG or 1 8V for AINP POS at the test point AMP30UT DP5 or AMPOUT PXS5 Note that in the DPS there is a gain of 2 for the DAC output changing INOF by 100mV results in the AMP3OUT testpoint shifting 200mV In the PX5 the INOG command can be used to change the gain of the input offset If used the INOG command must precede INOF If the high gain input offset INOG HIGH is used then the DEF default option for INOF cannot be used and will result in an INVALID PARAMETER error The AUTO parameter may be specified in which case the DP5 or PXS5 will search for an appropriate input offset Note that the detector must be stable for this to work if HV or temperature has not stabilized then this will not operate properly Errors An INVALID PARAMETER error will be returned if the parameter is not one of those listed Example INOF 200 Set the input offset DAC to 20
104. odic traffic is occurring See the Interface section for more details Amptek Inc Page 68 of 140 4 3 3 Acknowledge packet Sync Error DP5 Programmer s Guide Rev A4 LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFF 1 0 0 OxFD 0x11 Purpose This ACK packet indicates that the sync bytes in Request Packet were not correct and therefore the Request Packet was rejected Note This error condition can only be generated via USB or Ethernet RS232 uses the sync bytes to locate a packet in the RS232 data stream In the absence of the sync byte pattern no Request Packet is detected and thus no ACK packet can be returned 4 3 4 Acknowledge packet PID Error LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFF 2 0 0 OxFD 0x10 Purpose This ACK packet indicates that PID1 amp PID2 combination is not recognized as a valid Request Packet and therefore the Request Packet was rejected 4 3 5 Acknowledge packet LEN Error LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFF 3 0 0 OxFD OxOF Purpose This ACK packet indicates that the LEN field of the Request Packet was not consi
105. of Random 16 bit sequence ID received from Identity Request 4 5 Event 1 Days 6 Event 1 Hours 7 Event 1 Minutes 8 9 Event 2 Days 10 Event 2 Hours 11 Event 2 Minutes 12 Event Seconds 13 Event 2 Seconds 14 19 MAC address MSB LSB 20 23 IP Address MSB LSB 24 27 Subnet Mask MSB LSB 28 31 Default Gateway MSB LSB variable Null terminated string Amptek DPS serial number variable Null terminated string Description misc text variable Null terminated string Event 1 description variable Null terminated string Event 2 description Interface Sharing Request 6 bytes DP5 Programmer s Guide Rev A4 Offset 0 1 2 3 Value 0x04 0x00 Random 16 bit sequence ID OxF4 OxFA Amptek Inc Page 11 of 140 pore 3 3 RS232 DP5 Programmer s Guide Rev A4 The RS232 port on the DPS operates at 115 200 baud with 1 start bit 8 data bits no parity bit and 1 stop bit Neither hardware nor software handshaking is used 57 600 or 19 200 baud operation can be selected however selecting these rates will disable the Ethernet port The RS232 interface employs a gap timer on its receiver to aid in synchronization if the time between consecutive received bytes exceeds 100mS all buffered bytes are discarded and the DPS will resume searching for the sync characters that signal the start of a new packet No acknowledge packet will b
106. of less than 5uS and 20MHz for peaking times of S5uS or greater The precision with which the peaking time can be programmed is listed below The selected peaking time also determines the range and precision of available flat top widths so those are listed as well The DP5 will round the commanded peaking time to the next lowest one so an error will only be returned if the commanded peaking time is outside the range listed above Errors An INVALID PARAMETER error will be returned if the commanded peaking time is outside the range given Example TPEA 10 This selects a peaking time of 10 00uS If CLCK AUTO was commanded prior to this then the FPGA clock will be set to 20MHz FPGA Clock 20MHz FPGA Clock 80MHz Peaking Time Precision Flat Top Precision Peaking Time Precision Flat Top Precision 0 800 6 40uS 100nS 0 05 3 15uS 50nS 0 200 1 600uS 25nS 12 5 787nS 12 5nS 6 60 12 80uS 200nS 0 1 6 30uS 100nS 1 650 3 200uS 50nS 25 1575nS 25nS 13 20 25 60uS 400nS 0 2 12 60uS 200nS 3 30 6 40uS 100nS 50 3150nS 50nS 26 40 51 20uS 800nS 0 4 25 2uS 400nS 6 60 12 80uS 200nS 0 1 6 30uS 100nS 52 80 102 4uS 1600nS 0 8 50 4uS 800nS 13 20 25 60uS 400nS 0 2 12 6uS 200nS Amptek Inc Page 137 of 140 DP5 Programmer s Guide Rev A4 5 1 63 TPFA Select Peaking Time for Fast Channel Command Parameter Units Range
107. or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Additionally if no Ethernet controller is detected on the DP5 the CP2201 not found ACK packet will be returned instead of ACK OK Amptek Inc Page 41 of 140 D TEK DP5 Programmer s Guide Rev A4 4 1 29 Request packet Select High Pass Time Constant LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data MSB LSB Offset 0 1 2 3 4 5 6 7 8 Time Value OxF5 OxFA OxFO 0x12 0 1 Constant varies Purpose This selects which high pass time constant the DP5 s front end is set for The time constant is determined by what resistor values are installed this Request Packet is used to configure the firmware appropriately The setting is saved in non volatile memory so this Request Packet only needs to be sent if the time constant is changed This value can be read back via the Request Diagnostic Packet Request Packet The interpretation of the high pass time constant value setting is 0 gt 1 625uS time constant 1 gt 3 225uS time constant 2 gt 6 425uS time constant 3 gt 12 825uS time constant 4 gt 25 625uS time constant The PXS5 has two selectable poles 1 625uS and 3 225uS This command will switch the appropriate pole into the front end If gt 3 225uS is selected then the PX5 will select the 3 2uS slot component changes are required to convert that slot to
108. ors are detected the DPS will respond with ACK OK packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 38 of 140 DP5 Programmer s Guide Rev A4 4 1 26 Request packet Set ADC Calibration LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data MSB LSB Offset 0 1 2 3 4 5 6 7 8 9 Gain Value OxF5 OxFA OxFO 0x0E 0 2 Offset varies Purpose This commands the DP5 to set the non volatile gain and offset calibration values for the DP5 ADC These values can be read back via the Request Diagnostic Packet Request Packet Gain If gain setting is 0 127 Correction 1024 setting 1024 i e 100 to 112 4 If gain setting is 128 255 Correction 768 setting 1024 1 e 87 5 to 99 9 Offset The offset setting is a signed byte Calibrated ADC Value Raw ADC Value Gain Offset Note This command won t take effect until the next configuration request packet is received Response If no errors are detected the DPS will respond with ACK OK packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 39 of 140 DP5 Programmer s Guide Rev A4 4 1 27 Request packet Clear G P Counter SYNC1 SYNC2 PID1 pipo LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB
109. packet if the trigger hasn t occurred yet It will respond with the 2048 byte scope packet or 2048 byte scope packet w overflow after the scope has triggered See the DACO SCOE SCOT amp SCOG ASCII commands for more information on the Digital Scope Response If no errors are detected the DPS will respond with ACK OK packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 31 of 140 D TEK DP5 Programmer s Guide Rev A4 4 1 19 Request packet Autoset Input Offset SYNC1 SYNC2 PID1 pipo LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFO 5 0 0 OxFD 0x1C Purpose This commands the DPS to search for an appropriate input offset i e the DC offset of the input signal as seen by the input ADC Generally the default input offset should work with most detectors See the INOF ASCII command In order for the Autoset Input Offset function to work properly 1 The input polarity must be set properly see the AINP ASCII command 2 HV amp detector temperature if applicable must be reasonably stable 3 An appropriate input offset might not be found if this command is initiated while the input count rate is high Support This request is supported by the DPS and PXS5 but not the DP5G The DP5G does not have a variab
110. quest packet Interface Keep alive No Sharing SYNC1 SYNC2 PID1 pipo LEN LEN CHKSUM CHKSUM MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFO 0x21 0 0 OxFD 0x00 Purpose This Request Packet is used to keep the DP5 s UDP socket bound to the IP address and source port of the computer connected to it The UDP socket resets itself after 4 5 seconds of inactivity after which any IP address can connect to it so one of the Interface Keep alive Request Packets should be sent periodically if there is no other periodic traffic or if the periodic traffic is less frequent than 2 3 seconds If the host wishes to change the Keep alive status sharing no sharing locked then a Keep alive packet should be sent with the new status even if there is periodic traffic keeping the socket bound The No Sharing variant of the Interface Keep alive Request Packet tells the DP5 to return the No Sharing status in the Netfinder device discovery packet It also commands the DPS to ignore Interface Sharing Request packets on the Netfinder socket As of FW6 01 this Request Packet only applies to Ethernet In future firmware it may be expanded to include the other interfaces Response If no errors are detected the DP5 will respond with ACK OK packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned
111. r will be returned if the parameter is not 1 8 or the signal name exactly as listed Most of the commands which have text parameters only require the first two characters this command requires all characters specified DACO SHAPED Select the shaped channel for the output DAC Page 88 of 140 DP5 Programmer s Guide Rev A4 5 1 14 GAIA Set the Analog Gain Index Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc GAIA H none none 1 to 16 DP5 1 to 28 PX5 1 to 4 DP5G none FW6 00 and later GAIF GAIN GAIA selects the analog gain The parameter specified is an index it selects the analog gain from the list below The first one listed has an index of 1 up to the last one which has an index of 16 DP5 28 PX5 or 4 DP5G Available DP5 analog gains 1 12 2 49 3 78 5 28 6 56 8 39 10 09 11 32 14 55 17 77 22 40 30 84 38 12 47 47 66 16 101 83 Available PX5 analog gains 1 00 1 25 1 56 1 95 2 43 3 04 3 78 4 75 5 96 7 47 9 34 11 66 14 57 18 18 22 72 28 37 35 46 44 64 55 83 69 79 87 10 108 62 135 84 169 80 211 99 264 99 330 70 413 38 Available DP5G analog gains 1 57 2 56 4 09 6 77 An INVALID PARAMETER error will be returned if the parameter is not with the range specified GAIA 5 Select an analog gain of 6 56 DP5 Page 89 of 140 DP5 Programmer
112. rameter field is limited to 10 characters the following limit applies if 3 digits are required to the right of the decimal point 0 999 999 999 seconds 0 001 second precision none FW6 01 and later PREC PRET PRER sets the preset real time The acquisition will stop automatically when the real time reaches this value If OFF or 0 is specified the acquisition will continue unless stopped by other means PREC PRET MCA disable Request Packet etc An INVALID PARAMETER error will be returned if the parameter is not OFF or a number within the range specified PRER 100 Stop the acquisition when real time reaches 100s Page 113 of 140 DP5 Programmer s Guide Rev A4 5 1 39 PRET Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc Preset Acquisition Time PRET HHHHHHHHH IOF F S seconds OFF 0 99 999 999 9 seconds 0 1 second precision none FW6 00 and later PREC PRER PRET sets the preset acquisition time The acquisition will stop automatically when the acquisition time reaches this value If OFF or 0 is specified the acquisition will continue unless stopped by other means PREC PRER MCA disable Request Packet etc An INVALID PARAMETER error will be returned if the parameter is not OFF or a number within the range specified PRET 100 Stop the acquisition when it reaches 100s Pag
113. rameter other than those listed is specified A PC5 NOT PRESENT error will be returned if a PCS is not detected Example PAPS 5 Turn on the PC5 preamp supplies but only Amptek Inc if it s a 5V PCS Page 107 of 140 SS TEK DP5 Programmer s Guide Rev A4 5 1 33 PAPZ Preamp Pole Zero Cancellation PX5 only Command PAPZ Parameter IOF F Units US microseconds Default OFF Range 34 5 4387uS firmware rounds to nearest of 127 discrete values discrete values are 4386 7uS n for n 1 127 Dependencies none Supported FW6 05 and later PX5 only Description _PAPZ enables or disables the pole zero cancellation in the PX5 front end electronics and selects the time constant to cancel The specified time constant is rounded to the nearest discrete value The equation to generate the discrete values is give in the Range above These values have a tolerance of roughly 1 The 127 possible values in uS are Errors Parameter values between 34 5uS and 8773uS are rounded to the nearest discrete value from the table above Outside that range an INVALID PARAMETER error will be returned and the pole zero cancellation circuit will be switched off Example PAPZ 50 Turn on the pole zero cancellation and cancel a 50uS time constant Amptek Inc Page 108 of 140 DP5 Programmer s Guide Rev A4 5 1 34 PDMD
114. rtant See the ASCII Commands section for more discussion of this 6 If all commands fit in the max 512 byte data field then the configuration can be sent as a single packet If they don t fit then additional Text Configuration packets can be sent Generally the ASCII Command RESC Y would be the first command of the first packet and it would not appear in later packets If additional packets are needed ensure that commands are not chopped between packets only complete command parameter strings are allowed Here s an example of the data field RESC YES CLCK AUTO TPEA 10US TFLA 0US CUSP 50 RESL 3000US PDMD NORM THSL 1 00 THFA 40 Response If no errors are detected the DP5 will respond with an ACK OK packet This indicates that all commands were recognized and executed without error Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of the requested data If one or more errors are detected while parsing the Text Configuration an Unknown Bad Parameter Unrecognized Command or PCS Not Present ACK packet will be returned and the data field will contain the ASCII command and parameter which caused the error If more than one error was detected only the last error amp command will be returned Amptek Inc Page 26 of 140 D TEK DP5 Programmer s Guide Rev A4 4 1 14 Request packet Text Configuration Readba
115. s sissewsdsacunseancouiddntasutyadnqanstas suasuswensayicesceduadetaundente 65 4 2 21 Response packet I C Read Data ccccccsccssssessssssessssssssssssssessesssessssssssssesssessssseesssssesssseees 65 4 2 22 Response packet 64 byte SCA Packet 00 eecesscesceseecseececeecceseesseeseeeeesenceesceseeesesenss 66 4 2 23 Response packet Comm test Echo packet sisisasacesineascdasastndeseeeenssvnaatensgddemeriaastariess 67 4 3 Acknowledge Packets siccsscdcicaccececsceceatcedsd cas peed ndecsaiasdaeeaaccadsnene e ae ii aia iiaeia 68 Amptek Inc Page 2 of 140 Dm DP5 Programmer s Guide Rev A4 4 3 1 Acknowledge Packet OK vincssahecstasancsasassicestunetorsxessntantamedaennesaceiansxcedataandanteeleuanianinens 68 4 3 2 Acknowledge packet OK with Interface Sharing Request cecceseeeseeeeeeeereeeteees 68 4 3 3 Acknowledge packet Synce Error aise secassncscvendnracivnccdnassxsosaanteuesdesersuus viewstsvatanoesgurncsies 69 4 3 4 Acknowledge pack t PID Erroi siisssiseiienciriessressiccissecseireris inesivo seades iose essesi isis 69 4 3 5 Acknowledge packet LEN Error siccscciescssecsilasideacadsasiadiesisesndesospusietaseedeanssiesdiabaeacseuesds 69 4 3 6 Acknowledge packet Checksum Error iccssocesssiscecsnnsecaseasssenacesssaessnnse sessneteencennseennntss 69 4 3 7 Acknowledge packet Bad Parameter 1a lt ty2sacatseceiscsivedeesinierereus ea hare 69 4 3 8 Acknowledg
116. se packet 1024 channel spectrum plus Status 0 0 ce eeeeseeeeceeeceeceeeeneeeeeeeeees 55 4 2 8 Response packet 2048 channel spectrum esseseeseesesesessrssstsresssesersrsererssrsrsessesseee 55 4 2 9 Response packet 2048 channel spectrum plus Status 0 0 ce eeeeseeeeeeeeceteceeeeneeeneeeeees 55 4 2 10 Response packet 4096 channel Spectr oiiiccesegecsserionnenaccitemieeiaaseaweanneai 56 4 2 11 Response packet 4096 channel spectrum plus Status 0 0 eeeeeeeceeeceeeneeeeeeeeeeeenaes 56 4 2 12 Response packet 6192 channel spectrum jisssscuzsansesecssncavessaacwnvncesstatveaniavsveatedanvuniavatencs 56 4 2 13 Response packet 8192 channel spectrum plus Status cece ceseeeeeneeeeeseceeceseeneeees 56 4 2 14 Response packet 2048 byte Scope Packet 0 0 ce eecessesecsseceecesecneesaeeseeeeeeeaecnaeeneeess 57 4 2 15 Response packet 2048 byte Scope Packet w Overflow sssseseeseesessssresessesseserssrsseees 57 4 2 16 Response packet 512 byte Misc Data Packet ee ceeceseeseeereeeeeeeeceseceeeeaeeeeeeeeeeseenaes 58 4 2 17 Response packet Ethernet Settings ve cvassenvsnessseatvansvausaencavncwadeyovyuersasusvanniavevessayetsanpevaseats 59 4 2 18 Response packet Diagnostic Data cece wcnans Haneda 60 4 2 19 Response packet Configuration Readback sseesssseseseseessseseesssrsersseseesessesresesseseesees 64 4 2 20 Response packet Netfinder Packet 1c
117. see the table under the TPEA command OuS TPEA must precede TFLA FW6 00 and later TPEA TFLA selects the flat top width of the trapezoidal shaper A flat top of OuS will result in a triangular shape not trapezoidal The commanded peaking time TPEA determines the precision with which the flat top width can be commanded the DP5 will round the commanded setting to the next lowest one An INVALID PARAMETER error will be returned if the commanded flat top is outside the range given in the TPEA table TFLA 10 This selects a flat top width of 10 00uS Page 133 of 140 DP5 Programmer s Guide Rev A4 5 1 59 THFA Command Parameter Units Range Precision Default Dependencies Supported Related Description Errors Example Amptek Inc Select Threshold for Fast Channel THFA HHHH in firmware prior to FW6 05 unitless 0 255 93 256 equates to 50 of full scale 1 part in 4096 0 none FW6 00 and later PURE THFA sets the threshold for the fast channel Generally the ideal fast threshold is determined empirically or by using the Autoset Fast Threshold request packet which only works in the absence of a source This is discussed in detail elsewhere The units or scale factor is somewhat problematic because the fast channel doesn t have a digital fine gain control like the shaped channel does so only changes in coarse analog gain affect the fast channel
118. ssnosesonnes 134 5 1 60 THSL Select Threshold for Shaped Channel snssnesseeseesssnsseesseeesseeessessensseesseresseee 135 5 1 61 TLLD Select Threshold for Low Level Discriminator LLD cc ceceeeeeeeeeees 136 5 1 62 TPEA Set Peak ine TIMMS cacesgaceeusstieceeyade ation eerste hey ses Geeesld wlaingee eet teers 137 5 1 63 TPFA Select Peaking Time for Fast Channel 00 0 0 eeeeeeeeeeseeeseeceseeeseeeeneeesaeeeseesees 138 5 1 64 TPMO Select Test Pulser Mode ixsiisessveansnnsisnstiesdudsaset sd sanissanesesadssasnscedssoabasnigessnoasspulles 139 5 1 65 VOLU Turn the PX5 speaker ON OFF ssnesssnseesssesessseesseesseessersserrsseeessressesseeeseeeesees 140 Amptek Inc Page 4 of 140 SS TEK DP5 Programmer s Guide Rev A4 1 Change List Programmer s Guide A4 is released with firmware version FW6 06 00 FPGA version FP5 11 and Visual Basic Demo v2 50 coinciding with the initial release of PX5s 1 1 Programmer s Guide Rev A4 this document Added transfer times section 3 4 New commands and packet types are listed below and in their corresponding sections 1 2 FW6 06 00 FP5 11 Channel numbers were changed to start with channel 0 not channel 1 to be consistent with industry standards This affects the following text commands MCSL MCSH PRCL PRCH SCAL SCAH TLLD The data format in the spectrum response packets is unchanged but software should interpret the first chann
119. stent with Request Packet type defined by the PID1 amp PID2 combination It is not recognized as a valid Request Packet and therefore the Request Packet was rejected 4 3 6 Acknowledge packet Checksum Error LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 7 Value OxF5 OxFA OxFF 4 0 0 OxFD Ox0E Purpose This ACK packet indicates that the checksum of the Request Packet was incorrect and therefore the Request Packet was rejected 4 3 7 Acknowledge packet Bad Parameter LEN LEN DATA CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 5 LEN 6 LEN 7 LEN ASCII Value OxF5 OxFA OxFF 5 0 varies Command varies Echo Amptek Inc Page 69 of 140 4 3 8 Acknowledge packet Unrecognized Command DP5 Programmer s Guide Rev A4 LEN LEN DATA CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 5 LEN 6 LEN 7 LEN ASCII Value OxF5 OxFA OxFF 7 0 varies Command varies Echo 4 3 9 Acknowledge packet PC5 Not Present LEN LEN DATA CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB MSB LSB Offset 0 1 2 3 4 5 6 5 LEN 6 LEN 7 LEN ASCII Value OxF5 OxFA OxFF 0x0B 0 varies Command varies Echo Purpose These
120. support has not been tested Directions for installing the driver and the certificate which was used to sign the driver package are in the WinUSB Driver Installation folder in the ZIP file The ZIP file includes the Microsoft document WinUsb_ HowTo docx which describes the complex process of using Windows SetupAPI to find the device path etc The VB demo demonstrates this technique as well as setting pipe policies opening pipes sending and receiving data etc USB h and USB100 h contain many structures enums etc used by Windows USB implementation these files from DDK6001 are in the ZIP file Microsoft s website gives information on how to call the specific WinUSB functions http msdn microsoft com en us library ff540046 v VS 85 aspx 3 2 Ethernet The DP5 incorporates a 10base T Ethernet controller and embedded TCP IP stack to provide Ethernet support via a standard RJ45 jack The DP5 supports auto negotiation for half and full duplex Only 10Mbit s is supported PING and ARP are supported A fixed IP address can be specified or a dynamic address can be obtained from a DHCP server If dynamic is selected and the DP5 is unsuccessful in obtaining a lease from a DHCP server it will fall back to its previously programmed static address The IP configuration fixed dynamic IP address netmask gateway and port can be programmed via any of the DP5 communication interfaces Ethernet USB or RS232
121. t FPGA clock 80MHz 25 6uS 51 2uS 102 4uS 204 8uS 409 6uS 819 2uS 1638 4uS 3276 8uS FPGA clock 20MHz 102 4uS 204 8uS 409 6uS 819 2uS 1638 4uS 3276 8uS 6553 6uS 13107 2uS OFF TPEA must precede RESL FW6 00 and later RESL determines whether the MCA data taking will be paused when a detector reset is detected If OFF is selected then the detection of detector reset is disabled Otherwise the nearest value from those listed in Range will be selected No error checking is done on the parameter the next largest value in Range will be used if a number is specified If the parameter isn t recognized the lowest value in Range is used RESL 1000 This selects a Reset Lockout Interval of 1638 4uS Page 117 of 140 DP5 Programmer s Guide Rev A4 5 1 43 RTDD Command Parameter Units Default Range Dependencies Supported Related Description Errors Example Amptek Inc Set Custom RTD Oneshot Delay RTDD HHH decimated clocks none 1 127 RTDE must precede RTDD FW6 00 and later RTDE RTDS RTDT RTDW RTDD is used to fine tune the timing of the RTD logic It may be needed for events with very slow risetimes or configurations where the shaper produces a non trapezoidal cusp shape For these events the peak of the shaped event may not occur when it is expected The standard RTD timing parameters are calculated when the RTDE command is received so the RTDW amp RTDD
122. t 100 correction factor setting 10 gt 101 correction factor setting 250 gt 99 4 correction factor The PXS5 has two software selectable pole zero filters This command sets the calibration for the 3 2uS pole zero The DP5 and DP5G have a single pole zero this command sets the calibration for it Note This command won t take effect until the next configuration request packet is received Response If no errors are detected the DP5 will respond with ACK OK packet Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 37 of 140 DP5 Programmer s Guide Rev A4 4 1 25 Request packet Set uC Temperature Calibration LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data MSB LSB Offset 0 1 2 3 4 5 6 7 8 uC Temp Value OxF5 OxFA OxFO 0x0C 0 1 Cal varies Purpose This commands the DP5 to set the non volatile offset calibration for the DP5 temperature measurement It is an 8 bit signed value and is added to the measured temperature the result appears in the status data as board temperature offset 34 This value can be read back via the Request Diagnostic Packet Request Packet The temperature sensor is internal to the microcontroller this calibration value allows compensation for the fact that the uC die is always hotter than the board Response If no err
123. t and synchronization or centralized control is desired Request packets such as Enable MCA and Clear Spectrum could be useful as broadcasts As of firmware FW6 01 all Request Packets received by the DP5 will generate a Response Packet which isn t desirable for broadcasts Future versions of the firmware will use the most significant bit of the PID2 packet ID to indicate a broadcast packet so that DP5s will be able to suppress Response Packets Also a command or Request Packet will be added so that a DP5 can be configured whether to process or ignore broadcast packets This will allow some DP5s on a subnet to not participate in broadcasts if this is desired The existing protocol works over the Internet but possibly not very well As it uses raw UDP packets with no sequence numbers and spectrum packets are large enough that they re split into multiple UDP packets theoretically the spectrum UDP packets could be received out of sequence with no way to tell Eventually the firmware will have the option to encapsulate each UDP packet within the DPS packet structure and use the DP5 packet PIDs as sequence numbers This should allow the protocol to be more robust when routed over the Internet the packets will be able to be reordered if they arrive out of sequence and it will be easier to detect dropped packets Timeouts Generally the DPS sends the Response or ACK packet after it has completed the operation specified by the
124. t higher than SCAH no error is generated but no events will be output or counted as this is an impossible condition SCAI 2 Set the SCA Index to 2 enable SCA2 output as active high SCAL 100 Set the SCA2 LLD to channel 100 SCAH 200 Set the SCA2 HLD to channel 200 Page 125 of 140 DP5 Programmer s Guide Rev A4 5 1 51 SCAO Command Parameter Units Default Dependencies Supported Related Description Errors Example Amptek Inc Select SCA Output Level SCAO OF F IHI GH ILO W none OFF HIGH when SCAT is set for an SCA SCAI must precede SCAO FW6 00 and later SCAT SCAL SCAH SCAW is not indexed SCAO configures the output of the indexed SCA For a setting of OFF the indexed SCA output will always be low For a setting of HIGH the indexed output will be normally low and will produce a high pulse when an event occurs between the SCA low and high thresholds For a setting of LOW the indexed output will be normally high and will produce a low pulse Note only SCAs 1 8 have pulse outputs SCAs 9 16 have counters not pulse outputs Also if the SCA outputs 1 8 are all OFF then the outputs are all tri stated If any of the outputs 1 8 are enabled then they all are driven An INVALID PARAMETER error will be returned if the parameter is not one of those specified in range Selecting the output level when the SCA index is set to 9 16 has no meaning since t
125. tes to Read NOBR in the IC Transfer Request Packet is nonzero and the PC transfer was successful then the I C Read Data Response Packet is returned with the data field containing the bytes read by the transfer Note that if NOBR 0 the DPS will return an ACK OK packet rather than an I C Read Data packet with LEN 0 Data Format The LEN value will be the same as NOBR and the data field will contain the bytes read in the order that they were read Amptek Inc Page 65 of 140 he 4 2 22 Response packet 64 byte SCA Packet DP5 Programmer s Guide Rev A4 LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 Gag fey Data Field fe i Offset O 1 2 3 4 5 6 69 70 71 Value OxF5 OxFA 0x83 1 0 0x40 SCA data Varies Purpose This response packet is returned in response to a Request 32 bit SCA counters Request Packet PID 1 4 PID2 1 2 or 3 Data Format The data field contains 64 bytes which are read from the 32 bit SCA counter latches i e there are 4 bytes per SCA counter The format for the data field is given below Offset Value 0 3 SCA1 counter LSB MSB 4 7 SCA2 counter LSB MSB 8 11 SCA3 counter LSB MSB 12 15 SCA4 counter LSB MSB 16 19 SCA5 counter LSB MSB 20 23 SCA6 counter LSB MSB 24 27 SCA7 counter LSB MSB 28 31 SCA8 counter LSB MSB
126. tfinder socket remains functional when USB is connected and the contents of the Netfinder packet indicate if the UDP socket is unavailable because of USB The DP5G checks to see if either the USB or RS232 connectors are connected to a live port at power up If so the Ethernet controller is not initialized to save power and will remain non functional until the next power cycle Amptek Inc Page 7 of 140 TEK gt DP5 Programmer s Guide Rev A4 3 1 USB The DP5 supports full speed 12Mbps USB 2 0 Three endpoints are used the control endpoint EPO EP1 IN for response packets from the DP5 to host PC and EP2 OUT for request packets from the host PC to DPS Transfers on EP1 and EP2 are terminated by a short packet a packet smaller than the max packet size of 64 bytes or a zero length packet ZLP For the DP5 PX5 and DP5G the USB Vendor ID VID and Product ID PID are VID 0x10C4 PID 0x842A The DPPMCA application and DP5 Visual Basic demo use the WinUSB driver This is a Microsoft product that is native to Vista and Windows 7 32 and 64 bit and installable on WinXP The Visual Basic demo includes source code and VC classes are available for those wishing to write their own communication software 3 1 1 Installing the WinUSB Driver Currently the INF file which links the DP5 to the WinUSB driver supports 32 bit WinXP and 32 and 64 bit versions of Vista and Windows 7 Vista
127. the selected time constant Contact Amptek for more information Note This command won t take effect until the next configuration request packet is received Response If no errors are detected the DPS will respond with ACK OK packet If the data byte is outside the range of 0 5 then a BAD PARAMETER error is returned Possible errors If the request packet is malformed or corrupted CHKSUM LEN or PID error ACK packets can be returned instead of ACK OK Amptek Inc Page 42 of 140 DP5 Programmer s Guide Rev A4 4 1 30 Request packet Select RS232 Baud Rate LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data MSB LSB Offset 0 1 2 3 4 5 6 7 8 Baud Value OxF5 OxFA OxFO 0x13 0 1 Rate varies Purpose This selects the RS232 baud rate The default is 115 200 baud 57 600 baud or 19 200 baud can be selected however these setting are incompatible with the Ethernet stack Therefore selecting 57 600 baud or 19 200 baud will disable the Ethernet interface When this value is changed the new setting will not take effect until the next power cycle The interpretation of the baud rate value setting is 0 gt 115 200 baud 1 gt 57 600 baud 2 gt 19 200 baud Response If no errors are detected the DP5 will respond with ACK OK packet If the data byte is outside the range of 0 2 then a BAD PARAMETER error is returned Possible errors If the request packet is m
128. tic Data esseseeeeseeeseesessesesreseeseseesrsersessrsesessesseee 22 4 1 8 Request packet Request Netfinder Packet ics cssceiseeicvdesaeseesnclauvewass sanpeasenvenddwuengeearseaveare 23 4 1 9 Request packet IC Transfer c ccsscscssssesssssssssessscssessessscssesstssssecssessnssesscsevsatessseeeneeass 24 4 1 10 Request packet Request 32 bit SCA Counters sssessssessessseseesseesreseesseeseesrrsseeseeseessre 24 4 1 11 Request packet Latch Request 32 bit SCA Counters s ssssseessesesseeseesseessessrssresse 25 4 1 12 Request packet Latch Clear Request 32 bit SCA Counters cccceseeeeeereeteee 25 4 1 13 Request packet Text Comme ura 25s c1scesgsscerssceucdnaavacerseavenetasoecunsasnaadeaioneesoeanaes 26 4 1 14 Request packet Text Configuration Readback 0 cccceccceesseceseceteeeeeeeeseeceaeenseeeeeeesaees 27 Amptek Inc Page 1 of 140 steh DP5 Programmer s Guide Rev A4 4 1 15 Request packet Clear S pect ui sitzssecadtnncssdcasndeaiscpeuiensendscbaueangarsseesaxsaatatenanlesudsbavceindss 28 4 1 16 Request packet Enable MCA MCS secs ca cossecceccscecsseleiniendesciaieaunueccantateeeseuncneiners 29 4 1 17 Request packet Disable MCA IMCS vccsscsccssssessacescaxednases decd cu teaetagorteudeserancendsepacaqoeaanaass 30 4 1 18 Request packet Arm Digital Scope secescsseszeatazessancgeveaders trenasenvitenteuatanctieouentavmmane
129. ts generally are limited to the local subnet and not routed beyond that The Interface Sharing Request format is also listed below If a Netfinder Identity Reply has indicated that a DPS is in use but that sharing is allowed the host can send the Interface Sharing Request to the Netfinder port of that DP5 The DP5 will use an ACK packet to indicate to its current host that a Sharing Request has been received If that host wishes to grant the request it does so by stopping transfers to the DP5 s UDP socket which will allow the socket to reset itself and the new host to gain control of it No acknowledgement of the Interface Sharing Request is sent by the DP5 the host can resend it periodically and either check the Interface Status in the Netfinder Identity Reply or try sending packets to the DP5 UDP port to see if it responds Broadcast Identity Request 6 bytes Offset 0 1 2 3 4 5 Value 0x00 0x00 Random 16 bit OxF4 Ox sequence ID FA Amptek Inc Page 10 of 140 mO mare Identity Reply variable length Data Value Offset 0 0x01 1 Ethernet General UDP Port Status 0 Interface is open unconnected 1 Interface is connected sharing is allowed 2 Interface is connected sharing is not allowed 3 Interface is locked 4 Interface is unavailable because USB is connected 2 3 Replication
130. tus packet since reboot occurred D4 D2 0 TBD D1 0 FPGA clock 20MHz formerly status of MCA RAM 1 FPGA clock 80MHz test which is now in DO 0 FPGA clock was explicitly set Diagnostic Packet with CLCK 20 or CLCK 80 1 CLCK AUTO was used to select FPGA clock 37 D7 D4 0 TBD D3 D0 0 15 Firmware Build Number FW6 06 and later 38 D7 0 PC5 not detected at power up DP5G PC5G not detected PX5 N A 1 PC5 detected at power up DP5G PC5G detected PX5 N A D6 0 PC5 HV polarity negative DP5G PX5 N A 1 PC5 HV polarity positive DP5G PX5 N A D5 0 PC5 preamp supply 5V DP5G PX5 N A 1 PC5 preamp supply 8 5V DP5G PX5 N A Amptek Inc Page 53 of 140 DP5 Programmer s Guide Rev A4 D4 DO 0 TBD 39 D7 DO 0 Device ID DP5 1 Device ID PX5 2 Device ID DP5G 40 63 D7 DO 0 N A Currently unused Amptek Inc Page 54 of 140 4 2 2 Response packet 256 channel spectrum DP5 Programmer s Guide Rev A4 LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data Field MSB LSB Offset 0 1 2 3 4 5 6 773 774 775 Value OxF
131. ue specified by the DACF command i e for DACF 200MV SNG produces 50mV steps and SNG produces 50mV steps If DBL or DBL is specified two step sizes are produced alternately one is 4 the value specified DACF the other is 1 16 the value i e for DACF 200MV DBL produces 50mV and 12 5mV steps alternately DBL produces 50mV and 12 5mV steps alternately For really large steps a negative DACF can be used This is treated as an unsigned value to calculate the resulting step size from a negative DACF setting use 1V DACF parameter For example for DACF 200MV SNG produces 1 4 1V 200mV 200mV steps Detector Reset Lockout RESL should be disabled or set to a short interval when the test pulser is enabled since a detector reset is simulated when the DAC output wraps around It produces a large pulse of the polarity opposite the desired pulses which looks like a detector reset Note that if the Test Pulser is enabled the internal digital scope will still capture the signal specified by DACO even though the DAC will output test pulses An INVALID PARAMETER error will be returned if the parameter is not one of the values specified TPMO SNG Enable the test pulser to produce single positive going steps Page 139 of 140 DP5 Programmer s Guide Rev A4 5 1 65 VOLU Turn the PX5 speaker ON OFF Command VOLU Parameter ONIOF F Range ON or OF F Default OFF D
132. une 31 4 1 19 Request packet Autoset Input Offset cc eccceceseceeeceeeeeeeeecsaeceseeeeeeeeaeecsaecesaessteessees 32 4 1 20 Request packet Autoset Fast Threshold oo ee eeeecssecssecneeeeeeeeeesecaecnaeeaeeeeeeeeesaeenes 33 BAe R g est packet Write VO IO neninn aineina E r A 34 4 1 22 Request packet Write 512 byte Misc Data 0 eee cesesecneeeeceeeeeeceaeceeeeseeeeeeseeeaeeeaee 35 A125 Re gu est packet Set DCA Lx ccssasasccnasasvesuvennsaseteancaapeastsciarassonvivenseuateansiaseeniataapanentiaens 36 4 1 24 Request packet Set PZ Correction cssteesers saxiesvoianeaartienneaemese aa eee ea 37 4 1 25 Request packet Set uC Temperature Calibration 0 0 0 ce eeeeeeeeeseceecneeeneeeeeeeeeeseenaee 38 41 26 Request packet Set ADC Calibration va scsssicssccusseasvaviadstasrceasadnesdovectaaveasVavesentaqutvepneudvosed 59 4 1 27 Request packet Clear G P Cooumter secsicciasseriaisspacagacssccastevntins tasiawd vaveaiei sasnaraagiarn ators 40 4 1 28 Request packet Set Ethernet Settings icssccsscsssesecasnnsescassenssecensesnseunaesaveoeea thane sasecunnese 41 4 1 29 Request packet Select High Pass Time Constant cccesccesceseceeceeeeeceaeeeseeeeeeeeaees 42 4 1 30 Request packet Select RS232 Baud Rate ce ceseccesceseeseeseetcoesescensersetsoeseeteenenes 43 4 1 31 Request packer Set HV Calibration 25 ccsssectecescsanncamiaeiasucuadaanticseaduscanausescaduiadsiaudons 4
133. y one is returned the second one PID2 3 is returned if the Scope Gain is set to 4 or 16 and the signal strayed outside the gain range during the scope acquisition Otherwise the first one PID2 1 is returned In either case the data is identical This second type is used for noise measurements See the ASCII commands DACO SCOE SCOT amp SCOG for information on configuring the Digital Scope Data Format The data field contains 2048 bytes of scope data where each byte is a single 8 bit sample from the scope The Digital Scope captures the most significant 8 bits of digital data that is being output on the output DAC The timebase for the scope is dependent on the FPGA clock and the peaking time selected as listed below The timebase listed is the interval between samples FPGA Clock 20MHz FPGA Clock 80MHz Peaking Time Scope Timebase Peaking Time Scope Timebase 0 800 6 40uS 50nS 0 200 1 600uS 12 5nS 6 60 12 80uS 100nS 1 650 3 200uS 25nS 13 20 25 60uS 200nS 3 30 6 40uS 50nS 26 40 51 20uS 400nS 6 60 12 80uS 100nS 52 80 102 4uS 800nS 13 20 25 60uS 200nS Amptek Inc Page 57 of 140 Sa 4 2 16 Response packet 512 byte Misc Data Packet DP5 Programmer s Guide Rev A4 LEN LEN CHKSUM CHKSUM SYNC1 SYNC2 PID1 PID2 MSB LSB Data Field MSB LSB Offset 0 1 2 3 4 5 6 517 518 519 Value OxF5 OxFA 0x82 2 2 0 Misc data Varies
Download Pdf Manuals
Related Search
Related Contents
CURSO: “INSTALACIONES FRIGORÍFICAS CON CO2” Frigidaire FGMV175QF Product Specifications Sheet 取扱説明書 Intellitherm C31 - Fantini & Cosmi TIMERGPS+ USER MANUAL, ENGLISH EDITION SEPTEMBER, 2014 curso de labview parte II Invacare TRACER EX2 User's Manual MultiFax 700 Bedienungsanleitung Copyright © All rights reserved.
Failed to retrieve file