MCE Timing Diagram

From MCEWiki
Revision as of 12:35, 13 September 2011 by Mandana (talk | contribs)

The following timing diagram is generated by simulating MCE firmware using ModelsimTM, therefore, it does not include the analog circuit delays (DAC delay, RC filters, settling time, etc) into account.

Frame timing diagram.png Parameters used for this simulation:

row_len 100
num_rows 33
sample_dly 40
sample_num 10
servo_mode 3
Address Card enbl_mux 1
Bias Card enbl_mux 1
RC firmware rev. 5.1.2
BC firmware rev. 5.0.5
AC firmware rev. 5.0.3
CC firmware rev. 5.0.7

Note that:

  • Bias Card DACs (MAX5443) latch on low-to-high transition of CS (chip-select). Address Card DACs are clocked on the negative edge of the main clock.
  • In Address Card section, both DAC_clk(0) and DAC_clk(32) are shown. This indicates that first, the previous row's DAC (32 in this case) is turned off and then the new DAC (0 in this case) is turned on. All Address-Card DACs are off for 2 clock cycles.
  • The coadd window takes the 4 clock cycles of ADC latency (for RC Rev. A) into account, i.e., When the coadd window is asserted at clock cycle 40 in the diagram above, the samples are stored starting clock cycle 44.
    • Rev. E cards have serial ADCs with 11 clock cycles of latency compared to 4 clock cycles for Rev. B cards with parallel ADC. Due to a bug up to firmware revision 5.1.4, the coadd window is always being adjusted for an ADC latency of 4 (even for Rev. E cards). This throws off the sampling window by 7 cycles. (First recorded sample is from clock cycle: sample_dly-7. Or in another word, one has to make that correction when plugging in a number for sample_dly.) This will be fixed in future firmware.
    • The time axis of a 50 MHz trace should be interpreted as starting at clock cycle -4 (revB) or -11 (revE).
    • In addition, the 50MHz data has 3 extra leading samples. (will be fixed in future firmware!).
  • Bias Card DACs (MAX5443) have ~400ns settling delay (see FULL-SCALE STEP RESPONSE on page 6 here,
  • Address Card and Readout Card DACs (AD9744) have a settling delay of 11 ns, see Table 2, pg 4 ohere

Raw mode timing diagram