MOXE Command Reference

This document lists and describes the variables located in the EEPROM table, in 
the order in which they appear.  Currently (9/96) we expect the EEPROM map 
may go through a few more changes before its final form is solidified; this 
document will be updated accordingly.

EEPROM map used for last update: 9/96

1st Wd (hex)
2nd 
Wd
Variable Name
Usage






0-6

filter1
unused






7-1E
P2
adcxybase
Initialized ADC values.






1F
P2
raweventin
If P2 is 1 then raw science data is added to the ILMM science 
blocks, if 0 the raw data is not added. The only legal values 
for P2 are 0 and 1.






20-37
P2
spotcompress
Set an element of the SPOTCOMPRESS array, 
SPOTCOMPRESS(I,J): J is from 1 to 8 and designates the hot 
spot, I is from 1 to 3, SPOTCOMPRESS gives pha ranges for 
which events within the hot spot are sorted (into the array 
SPOTACCUM). SPOTACCUM(I,J): J is from 1 to 8 and 
designates the hot spot, I is from 1 to 2. Events with pha 
values between SPOTCOMPRESS(1,J) and 
SPOTCOMPRESS(2,J) increment by 1 SPOTACCUM(1,J) and 
events with pha values between SPOTCOMPRESS(2,J) and 
SPOTCOMPRESS(3,J) increment by 1 SPOTACCUM(2,J). In 
mapping SPOTCOMPRESS into the 1st Wd, the first index 
varies fastest. The only legal values for P2 are 0 to 255.






38
P2
detenbuff
DETENBUFF controls whether the event interrupt for a 
particular detector is enabled. Only the 6 least significant bits 
of P2 are used, controlling detectors 5,4,3,2,1,0. A 1 value 
means that the interrupt will be enabled, a 0 means that the 
interrupt will not be enabled. The normal flight value is 63 (all 
detectors enabled). The only legal values of P2 are 0 to 63.






39
P2
maxilmmwait
After MAXILMMWAIT seconds, a science ILMM block will 
be written regardless of whether the block is filled. The 
unfilled portion of the block will have a fill pattern. The only 
legal values of P2 are 0 to 32767.






3A
P2
swswitch
SWSWITCH controls what happens in the reset that occurs at 
datacyle 8. Each bit controls a different process. The lower 
byte controls 8086 operations and the upper byte control 1750 
operations. SWSWITCH equal to zero means normal 
operations. Sending this command also sets RAMSWITCH to 
P2. 
	Bit 0-7: If equal to A5 the E-sq prom is written to with "2222" 
commands and the reset at 8 seconds uses values from e-sq 
prom If not equal to A5 then the "2222" commands do not 
write to the e-sq prom and the prom versions are used.
	Bit 8-9: If 01 The watchdog timer does a 8086 reset (if past 8 
seconds) if 10 the watchdog timer is disabled if 00 or 11, 
then it is equivalent to bit 0-7 not being A5 and the Prom 
value is used (watchdog is enabled).
	Bit 10-11: if 01 the ILMM is used, if 10 the ILMM will not be 
used if 00 or 11, it is equivalent to bit 0-7 not being A5 and 
the prom version is used.






3B


unused






3C-3F
P2
thottlects
There are 4 independent throttle criteria that can engage. 
THOTTLECTS(I) is the number of events into the ILMM 
within 4*THOTTLETIME(I) seconds that would cause the I-th 
throttle to engage. The only legal values for P2 are 1 to 32767.






40-43
P2
thottletime
The time base for the I-th throttle in units of 4 seconds, see 
definition of THOTTLECTS. The only legal values for P2 are 1 
to 32676.






44-47
P2
thottletimeoff
If the events into the ILMM exceeds the I-th throttle criterion 
then the I-th throttle is engaged for 4*P2 seconds. The only 
legal values for P2 are 1 to 32676.






48-4B
P2
thottlelimit
While the I-th throttle is engaged, a fraction of the events are 
omitted from the ILMM (based on a random number 
generator) such that only P2 events/sec for 
4*THOTTLETIMEOFF(I) sec is expected to go into the ILMM. 
Note that THOTTLELIMT is a rate (cts/sec) whereas 
THOTTLECTS is in counts. If CTSSEEN is the number of 
counts into the ILMM in time TIMESEEN, then the THOTTLE 
is set to 32768*THOTTLELIMIT/(CTSSEEN/TIMESEEN) and 
for each event a random number is selected between 0 and 
32768. If the random number is greater than THOTTLE the 
event is omitted from the ILMM. A throttle with a lower I will 
not engage while a throttle with a higher I is engaged. The 
only legal values for P2 are 0 to 32767.






4C-4F
P2
timehvoff
The time in seconds for the HV to be turned off under various 
circumstances. 
	TIMEHVOFF(1): HV off due to exceeding LLRATELIMIIT 
or ANTISCALE 
	TIMEHVOFF(2): HV off due to broadcast command that we 
are entering the radiation belts 
	TIMEHVOFF(3): HV off due to electrometer 
	TIMEHVOFF(4): The time to wait after a power on or a 
reset.
 The only legal values for P2 are 0 to 32767.






50
P2
hvstepup
If the HV is being turned on, it steps up P2 levels per second. 
The only legal values of P2 are 1 to 32767.






51
P2
hvstepdown
If the HV is being turned off (except by either Prepare for 
Emergency power down or Entering the radiation belts), it 
steps down P2 levels per second. The only legal values of P2 
are 1 to 32767.






52
P2
tbinning
TBINNING determines the value of one bit of the time in the 
time-tagged science data. Each bit is (4 
milliseconds)*TBINNING. The legal values are 1, 2, 4, 8






53
P2
specialdet
SPECIALDET selects which detector has additional 
information put into the ILMM HK (in particular, HV 
readings once per second). The legal values are 0 to 5.






54

ped_rate
rate of pedestal event generation (0-256)






55-5A

timehvdeteaton
time to disable electrometer at hv on, but if 128 disable 
electrometer forever.






5B-60

e_scale
energy scale factor (256=1x)






61

nonlinenab
enable nonlinear correction, bit 0...5






62

ratecmprsenab
enable rate compression (0=disabled)






63

initdump
number of 1 second HK blocks at startup






64

unused
unused






65-7C
P2
fe55spot
Sets an element of the array FE55SPOT(I,J). J varies from 0 to 5 
and designates the detector. I varies from 0 to 3 and gives the 
coordinates of the corners of the box that contains the Fe55 
calibration source. 
	I=0: lower x coordinate
	I=1: upper x 
	I=2: lower y coordinate
	I=3: upper y (each varies from 0 to 127, to turn off set all to 
150). 
When mapping FE55SPOT into the 1st Wd, the first index 
varies fastest. The only legal values of P2 are 0 to 255.






7D-84
P2
spotuse
Sets an element of the array SPOTUSE(J). J varies from 0 to 7 
and designates which spot. P2 can vary from 0 to 5 to indicate 
that the J-th spot is for the P2 detector When P2 is from 0 to 5, 
events within the box coordinates stored in SPOTTABLE are 
omitted from going into the ILMM. P2 can also be from 8 to 13 
in which case events outside the coordinates stored in 
SPOTTABLE are omitted from going into the ILMM and those 
within the coordinates increment by 1 SPOTACCUM(J) 
depending on the pha value and SPOTCOMPRESS. The only 
legal values for P2 are 0 to 5 and 8 to 13.






85-A4
P2
spottable
Set an element of the array SPOTTABLE(I,J) J varies from 0 to 
7 and designates the hot spot. I varies from 0 to 3 and gives 
the coordinates of the corners of the box. 
	I=0: lower x coordinate
	I=1: upper x 
	I=2: lower y coordinate
	I=3: upper y (each varies from 0 to 127, to turn off set all to 
150). 
When mapping SPOTTABLE into 1st Wd, the first index 
varies fastest. The legal values of P2 are 0 to 255.






A5-AA
P2
sunthreshold
Defines for each detector the number of events per row and 
column that will cause the engagement of the sun reject 
algorithm. In this case each "row" is 128 by 4 normal MOXE 
pixels and each "column" is 4 by 128 normal MOXE pixels. 
The legal values of P2 are 0 to 32767.






AB-AF
P2
sunok
Defines for each detector the number of events per row and 
column that will determine the size of the sun reject box. The 
legal values of P2 are 0 to 32767.






B1-B6
P2
tmgate
Defines for each detector what events will be allowed into the 
ILMM. Only the lowest 8 bits are used: 
	Bit 0: if =0, anti events not allowed into ILMM 
	Bit 1: if =0, rise time events not allowed in 
	Bit 2: if =0, valid events not allowed in 
	Bit 3: if =0, Fe55 events not allowed in
	Bit 4: if =0, hot spot events not allowed in 
	Bit 5: if =0, sun events not allowed in 
	Bit 6: if =0, upper level events not allowed in 
	Bit 7: if =0, lower level events not allowed in (Normal flight 
mode is to set TMGATE to 4). 
    Bit 8: if =0, saturated events not allowed in
    Bit 9: if =0, "small" events not allowed in
The legal values of P2 are 0 to 255.






B7-BC
P2
detset
Defines for each detector the settings. Note that the 
engineering model is different from the flight model. Only the 
lowest 8 bits are used: 
	Bit 0-1: lower level discriminator setting 
	Bit 2-3: anti-level discriminator setting 
	Bit 4: upper-level discriminator setting 
	Bit 5: if 1, rise time events are not(TBD) sent to the 1750 
	Bit 6: anti abort enable
    Bit 7: upper-level abort enable
    Bit 11: pedestal event generation







BD-C2
P2
hvset
Sets for each detector the HV setting that is used when HV is 
suppose to be on. Only the lowest 8 bits are used: 
	Bit 0-6: the HV setting 
	Bit 7: if 1, the HV is on at lowest level (about 2200V).
The legal values for P2 are 0 to 255.






C3
P2
ilmmaccess
Sets the number of seconds for the 1750 to wait after a reset 
before starting to write to the ILMM. The legal values for P2 
are 16 to 32767>>>Current definition true??.






C4-C9
P2
thottlenab
Sets for each detector which throttles are active. Only the 
lowest 4 significant bits are used. If Bits 3,2,1,or 0 is equal to 1 
then throttle 3,2,1,0 is active, respectively. The legal values of 
P2 are 0 to 15.






CA


unused






CB-D0
P2
hvmax
Sets for each detector the maximum value allowed for 
HVSET. If HVSET exceeds HVMAX then a telemetry word 
(COMMANDOK) has a bit set to one to indicate that MOXE 
did not accept the command. The legal values for P2 are 0 to 
255.






D1
P2
hvonreset
HVONRESET controls whether a 8086 reset does anything 
with the HV. Only the 6 least significant bits are used. If bit 
5,4,3,2,1,0 is set to 1 then the HV of detector 5,4,3,2,1,0 
(respectively) is turned on after TIMEHVOFF(4) seconds. If 
the bit is set to 0 then there is no HV operation upon an 8086 
reset effectively leaving the HV where it was (on or off). The 
legal values of P2 are 0 to 63.






D2
P2
hvdelay
Sets (for each detector?) the time between turning the HV on 
to the lowest level (about 2200V) and the first HVSTEPUP. 
The legal values of P2 are 0 to 32767.






D3
P2
sunrejectenab
 Enables sun rejection






D4-DF
P2
gamma
gamma[x|y][pdet], default=200h






E0-E5
P2
board_map
board_map[6], maps housekeeping board to detector






E6-1E6
P2
ratecompressm
ap
Defines the compression from 0 to 32767 to 0 to 255 for the 
rates reported in the ILMM HK. Uncompressed values greater 
than or equal to RATECOMPRESSMAP(I) and less than 
RATECOMPRESSMAP(I+1) is compressed to I. The legal 
values of P2 are 0 to 32767.






1E7
P2
pedenab
pedenab[6], bit 0..5 for pdet 0..5






1E8
P2
gainenab
gainenab[6], bit 0..5 for pdet 0..5






1E9
P2
pedupdate
pedupdate[6], bit 0..5 for pdet 0..5

 




1EA
P2
gainupdate
gainupdate[6], bit 0..5 for pdet 0..5






1EB
P2
pulsetime
number of 8 minute intervals between pulser runs






1EC-2B7
P2
nonlinear
nonlinear[pdet][x|y][128], 4 bits for each element






2B8-2D8
P2
fecompressmap
This defines the compression of the pha from values ranging 
from 0 to 255 into a value for the FE55PHA data that ranges 
from 0 to 15. Uncompressed pha values greater than or equal 
to FECOMPRESSMAP(I) and less than 
FECOMPRESSMAP(I+1) will have a compressed value of I. 
The only legal values are 0 to 256.






2D9-2F9
P2
compressmap
This defines the compression of the pha from values ranging 
from 0 to 255 into a value for the time-tagged science data that 
ranges from 0 to 15. Uncompressed pha values greater than or 
equal to COMPRESSMAP(I) and less than 
COMPRESSMAP(I+1) will have a compressed value of I. The 
only legal values of P2 are 0 to 256.






2FA-2FF
P2
llratelimit
If the lower level rate within any one second exceeds P2, then 
the high voltage is turned off for that detector for 
HVTIMEOFF(1) seconds. The only legal values of P2 are 0 to 
32767.






300-305
P2
antilimit
If the anti rate within any one second exceeds P2, then the 
high voltage is turned off for that detector for HVTIMEOFF(1) 
seconds. The legal values of P2 are 0 to 32767.






306-30B

fe_scale
scale factor for fe55 compress (256=1x)






30C

eeprom_end
Mark end of EEPROM




 

 
MOXE Command Reference	-