This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AFE7950: JESD CS STATE and JESD BUF STATE is changed

Part Number: AFE7950

Tool/software:

Hi,

The JESD CSATE and JESD BUF STATE values change.
When operating normally, it is read as 0xAA and 0xFF, respectively,
but when the signal is abnormal in the middle, it is read as a value other than 0xAA and 0xFF.
What should I do?

  • Hi,

    As a result of several repeated tests, it was coincidental that there was no problem, and the problem did not continue to occur at that time. However, it was found that a problem occurred when the reset was executed and AFE7950 was bringup again. It is recognized that there is an important timing in the bringup order of AFE7950.
    Can I get the breaking up order and timing information?

  • Hi,

    Through repeated tests, I found out that problems arise when bringup AFE7950 and resetting and bringup the operated AFE7950 again.
    The power on reset and reset of the AFE7950 seem to have different behavior.
    How can I do the reset operation with the power on reset?

  • Hi,
    As I kept testing it, I didn't always succeed in power on reset.
    It seems to have been successful by accident.
    I still can't find out how to be successful all the time.
    Please give me guidance.

    Thank you.

  • Hi Byungsoo,

    In regards to timing of the AFE7950 bringup can you confirm that you are doing all SPI writes, readcheckes, and polls? Additionally have any of the sleeps in bringup been modified from their original value? 

    For the exact bringup sequence you can reference the configuration file or reference section 9 'Bring-up Flow and Log File, of the AFE79xx Configuration Guide, which is available in the AFE79xx secure folder.

    Regards,

    David Chaparro  

  • Hi, David Chaparro

    Thank you for your reply.

    I make the bringup sequence as follow the 9.2 initialization Flow From Configuration File in the AFE79xx Configuration Guide.

    After power the AFE7950 on, I make the clock out for each interfaces. And wait for 1 second to become the clock is stable.

    And I reset the FPGA's JESD204 IP and setup the JESD204. And AFE7950 device reset for 100 microsecond. And waiting for 1 second. And I bringup the AFE7950 by SPI.

    The SPI command is came from the LOG file.

    Please, let me know my mistake.

    Thank you.

  • Hi Byungsoo,

    Just to confirm is this using a custom board or an AFE EVM?  Also, if you try performing an JESD resync does the link come back up? Does the issue only occur on the DAC side or does the ADC JESD link also get disturbed?

    Also, just to confirm do the JESD parameters, such as K/E and F, match on both the AFE and FPGA?

    Regards,

    David Chaparro 

  • Hi David Chaparro,

    Thank you for your reply.

    I am testing only on custom boards.

    It is simpler and more effective to repeat the entire bring-up process than when resync was used, so I avoid the problem by repeating the bring-up process.
    However, the number of times the repeat bring-up is different every time.
    The problem is only with the DAC, and there is no problem with the ADC.

    If K/E and F are not correct, I don't think the link will be formed even if the bring-up is repeated.

    I hope the link-up at once without repeatedly bring-up until the linked-up.

    Thank you.

  • Hi Byungsoo,

    Are you able to share your script? If so then I can test this on my setup to verify the issue is not with the script. Can you also confirm that the SYSREF frequency you are using matches the frequency requested by the AFE79xx GUI? 

    Also, what value would the CS and FS be when not in the working state? 

    Regards,


    David Chaparro 

  • Hi David Chaparro,

    Thank you for your reply.

    Below block is the script.

     

    //AFE79xx
    //START: Doing AFE Config
    
    
    //AFE79xx
    //Device Initialization for ChipVersion: 1.3
    
    
    //Library Version Used: 2.5.0
    
    
    //**********System Parameters**********
    
    
    //System Parameters:
    //	FRef	=	250.0
    //	FadcFb	=	3000.0
    //	FadcRx	=	3000.0
    //	Fdac	=	12000.0
    //	LMFSHdFb	=	['22210', '22210']
    //	LMFSHdRx	=	['22210', '22210', '22210', '22210']
    //	LMFSHdTx	=	['44210', '44210', '44210', '44210']
    //	RRFMode	=	5
    //	adcDataMuxEn	=	True
    //	adcSelect0	=	[0, 1, 2]
    //	adcSelect1	=	[0, 1, 2]
    //	agcParams[0] = {		'NumStep'	:5,
    //			'agcMode'	:0,
    //			'agcstate'	:{			'toggleDgc':512,			'freeze':2,			'toggleExtAgc':1024,			'toggle':256,			'restart':8,			'dgcEn':16,			'extAGCDis':128,			'start':1,			'unfreeze':4,			'dgcDis':32,			'extAgcEn':64},
    //			'alcEn'	:0,
    //			'alcMode'	:0,
    //			'alc_mode'	:{			'inputALC':5,			'coarsefineI':2,			'coarsefineALCpin':4,			'Floatingpoint':0,			'coarsefineIQ':3},
    //			'atkNumHitsAbs'	:[8, 8],
    //			'atkNumHitsRel'	:[25, 75],
    //			'atken'	:[0, 1, 0],
    //			'atksize'	:[6, 2],
    //			'atkthreshold'	:[-1, -2, -14],
    //			'atkwinlength'	:[170, 170],
    //			'blank_time_extcomp'	:600,
    //			'chainen'	:1,
    //			'custRfMode'	:1,
    //			'custRfModeDict'	:{			'bigStepAtk':1,			'lnaBypass':2,			'extAgc':0},
    //			'decayNumHitsAbs'	:[8, 8],
    //			'decayNumHitsRel'	:[75, 25],
    //			'decayen'	:[0, 1, 0],
    //			'decaysize'	:[6, 2],
    //			'decaythreshold'	:[-14, -8, -20],
    //			'decaywinlength'	:87380,
    //			'dsaInit'	:0,
    //			'dsaStep'	:1,
    //			'dualLnaAtkNumCrossingMode'	:0,
    //			'dualLnaAtkNumCrossingsB0'	:8,
    //			'dualLnaAtkNumCrossingsB1'	:8,
    //			'dualLnaAtkThB0'	:-8,
    //			'dualLnaAtkThB1'	:-8,
    //			'dualLnaBypassDecayThB0'	:60,
    //			'dualLnaBypassDecayThB1'	:60,
    //			'dualLnaDecayNumCrossingMode'	:0,
    //			'dualLnaDecayNumCrossingsB0'	:8,
    //			'dualLnaDecayNumCrossingsB1'	:8,
    //			'dualLnaDecayThB0'	:13,
    //			'dualLnaDecayThB1'	:13,
    //			'dualLnaDsaApproach'	:1,
    //			'dualLnaMode'	:0,
    //			'enBandDet'	:0,
    //			'en_agcfreeze_pin'	:0,
    //			'extLnaTempModel'	:0,
    //			'fltPtFmt'	:1,
    //			'fltPtMode'	:0,
    //			'frameXferMode'	:4,
    //			'frameXferfmt'	:0,
    //			'gainChangeIndEn'	:1,
    //			'gpioRstEnable'	:0,
    //			'indexInvert'	:0,
    //			'indexSwapIQ'	:0,
    //			'lnaDsaChangeOrder'	:0,
    //			'lnaEn'	:0,
    //			'lnaGainMargin'	:6,
    //			'lnagain0'	:12,
    //			'lnagain1'	:12,
    //			'lnaphase0'	:0,
    //			'lnaphase1'	:0,
    //			'maxDelay'	:0,
    //			'maxDsaAttn'	:50,
    //			'minAttnAlc'	:0,
    //			'minDsaAttn'	:0,
    //			'nBitIndex'	:3,
    //			'outputDgcPinDelay'	:306,
    //			'phmEn'	:0,
    //			'phmIQMode'	:0,
    //			'pin0sel'	:16448,
    //			'pin1sel'	:16432,
    //			'pin2sel'	:16416,
    //			'pin3sel'	:16400,
    //			'pkDetOnPenultimateLsb'	:0,
    //			'pkDetPinLsbSel'	:0,
    //			'preSyncHead'	:255,
    //			'pulseExpansionCount'	:50,
    //			'rfdetNumhitsmode'	:0,
    //			'rfdetThreshold'	:3,
    //			'rfdeten'	:0,
    //			'rfdetnumhits'	:8,
    //			'rfdetstepsize'	:8,
    //			'sigBackOff'	:0,
    //			'sigInvalidBasedDelay'	:400,
    //			'singleDualBandMode'	:0,
    //			'startTemp'	:0,
    //			'stepSize'	:6,
    //			'stepTemp'	:1,
    //			'syncBitDisable'	:0,
    //			'syncHead'	:65535,
    //			'tapOffPoint'	:0,
    //			'tdd_freeze_agc'	:1,
    //			'temp_idxB0'	:0,
    //			'temp_idxB1'	:0,
    //			'totalGainRange'	:32,
    //			'useMinAttnAgc'	:1,
    //			}
    //	
    //	agcParams[1] = {		'NumStep'	:5,
    //			'agcMode'	:0,
    //			'agcstate'	:{			'toggleDgc':512,			'freeze':2,			'toggleExtAgc':1024,			'toggle':256,			'restart':8,			'dgcEn':16,			'extAGCDis':128,			'start':1,			'unfreeze':4,			'dgcDis':32,			'extAgcEn':64},
    //			'alcEn'	:0,
    //			'alcMode'	:0,
    //			'alc_mode'	:{			'inputALC':5,			'coarsefineI':2,			'coarsefineALCpin':4,			'Floatingpoint':0,			'coarsefineIQ':3},
    //			'atkNumHitsAbs'	:[8, 8],
    //			'atkNumHitsRel'	:[25, 75],
    //			'atken'	:[0, 1, 0],
    //			'atksize'	:[6, 2],
    //			'atkthreshold'	:[-1, -2, -14],
    //			'atkwinlength'	:[170, 170],
    //			'blank_time_extcomp'	:600,
    //			'chainen'	:2,
    //			'custRfMode'	:1,
    //			'custRfModeDict'	:{			'bigStepAtk':1,			'lnaBypass':2,			'extAgc':0},
    //			'decayNumHitsAbs'	:[8, 8],
    //			'decayNumHitsRel'	:[75, 25],
    //			'decayen'	:[0, 1, 0],
    //			'decaysize'	:[6, 2],
    //			'decaythreshold'	:[-14, -8, -20],
    //			'decaywinlength'	:87380,
    //			'dsaInit'	:0,
    //			'dsaStep'	:1,
    //			'dualLnaAtkNumCrossingMode'	:0,
    //			'dualLnaAtkNumCrossingsB0'	:8,
    //			'dualLnaAtkNumCrossingsB1'	:8,
    //			'dualLnaAtkThB0'	:-8,
    //			'dualLnaAtkThB1'	:-8,
    //			'dualLnaBypassDecayThB0'	:60,
    //			'dualLnaBypassDecayThB1'	:60,
    //			'dualLnaDecayNumCrossingMode'	:0,
    //			'dualLnaDecayNumCrossingsB0'	:8,
    //			'dualLnaDecayNumCrossingsB1'	:8,
    //			'dualLnaDecayThB0'	:13,
    //			'dualLnaDecayThB1'	:13,
    //			'dualLnaDsaApproach'	:1,
    //			'dualLnaMode'	:0,
    //			'enBandDet'	:0,
    //			'en_agcfreeze_pin'	:0,
    //			'extLnaTempModel'	:0,
    //			'fltPtFmt'	:1,
    //			'fltPtMode'	:0,
    //			'frameXferMode'	:4,
    //			'frameXferfmt'	:0,
    //			'gainChangeIndEn'	:1,
    //			'gpioRstEnable'	:0,
    //			'indexInvert'	:0,
    //			'indexSwapIQ'	:0,
    //			'lnaDsaChangeOrder'	:0,
    //			'lnaEn'	:0,
    //			'lnaGainMargin'	:6,
    //			'lnagain0'	:12,
    //			'lnagain1'	:12,
    //			'lnaphase0'	:0,
    //			'lnaphase1'	:0,
    //			'maxDelay'	:0,
    //			'maxDsaAttn'	:50,
    //			'minAttnAlc'	:0,
    //			'minDsaAttn'	:0,
    //			'nBitIndex'	:3,
    //			'outputDgcPinDelay'	:306,
    //			'phmEn'	:0,
    //			'phmIQMode'	:0,
    //			'pin0sel'	:16448,
    //			'pin1sel'	:16432,
    //			'pin2sel'	:16416,
    //			'pin3sel'	:16400,
    //			'pkDetOnPenultimateLsb'	:0,
    //			'pkDetPinLsbSel'	:0,
    //			'preSyncHead'	:255,
    //			'pulseExpansionCount'	:50,
    //			'rfdetNumhitsmode'	:0,
    //			'rfdetThreshold'	:3,
    //			'rfdeten'	:0,
    //			'rfdetnumhits'	:8,
    //			'rfdetstepsize'	:8,
    //			'sigBackOff'	:0,
    //			'sigInvalidBasedDelay'	:400,
    //			'singleDualBandMode'	:0,
    //			'startTemp'	:0,
    //			'stepSize'	:6,
    //			'stepTemp'	:1,
    //			'syncBitDisable'	:0,
    //			'syncHead'	:65535,
    //			'tapOffPoint'	:0,
    //			'tdd_freeze_agc'	:1,
    //			'temp_idxB0'	:0,
    //			'temp_idxB1'	:0,
    //			'totalGainRange'	:32,
    //			'useMinAttnAgc'	:1,
    //			}
    //	
    //	agcParams[2] = {		'NumStep'	:5,
    //			'agcMode'	:0,
    //			'agcstate'	:{			'toggleDgc':512,			'freeze':2,			'toggleExtAgc':1024,			'toggle':256,			'restart':8,			'dgcEn':16,			'extAGCDis':128,			'start':1,			'unfreeze':4,			'dgcDis':32,			'extAgcEn':64},
    //			'alcEn'	:0,
    //			'alcMode'	:0,
    //			'alc_mode'	:{			'inputALC':5,			'coarsefineI':2,			'coarsefineALCpin':4,			'Floatingpoint':0,			'coarsefineIQ':3},
    //			'atkNumHitsAbs'	:[8, 8],
    //			'atkNumHitsRel'	:[25, 75],
    //			'atken'	:[0, 1, 0],
    //			'atksize'	:[6, 2],
    //			'atkthreshold'	:[-1, -2, -14],
    //			'atkwinlength'	:[170, 170],
    //			'blank_time_extcomp'	:600,
    //			'chainen'	:4,
    //			'custRfMode'	:1,
    //			'custRfModeDict'	:{			'bigStepAtk':1,			'lnaBypass':2,			'extAgc':0},
    //			'decayNumHitsAbs'	:[8, 8],
    //			'decayNumHitsRel'	:[75, 25],
    //			'decayen'	:[0, 1, 0],
    //			'decaysize'	:[6, 2],
    //			'decaythreshold'	:[-14, -8, -20],
    //			'decaywinlength'	:87380,
    //			'dsaInit'	:0,
    //			'dsaStep'	:1,
    //			'dualLnaAtkNumCrossingMode'	:0,
    //			'dualLnaAtkNumCrossingsB0'	:8,
    //			'dualLnaAtkNumCrossingsB1'	:8,
    //			'dualLnaAtkThB0'	:-8,
    //			'dualLnaAtkThB1'	:-8,
    //			'dualLnaBypassDecayThB0'	:60,
    //			'dualLnaBypassDecayThB1'	:60,
    //			'dualLnaDecayNumCrossingMode'	:0,
    //			'dualLnaDecayNumCrossingsB0'	:8,
    //			'dualLnaDecayNumCrossingsB1'	:8,
    //			'dualLnaDecayThB0'	:13,
    //			'dualLnaDecayThB1'	:13,
    //			'dualLnaDsaApproach'	:1,
    //			'dualLnaMode'	:0,
    //			'enBandDet'	:0,
    //			'en_agcfreeze_pin'	:0,
    //			'extLnaTempModel'	:0,
    //			'fltPtFmt'	:1,
    //			'fltPtMode'	:0,
    //			'frameXferMode'	:4,
    //			'frameXferfmt'	:0,
    //			'gainChangeIndEn'	:1,
    //			'gpioRstEnable'	:0,
    //			'indexInvert'	:0,
    //			'indexSwapIQ'	:0,
    //			'lnaDsaChangeOrder'	:0,
    //			'lnaEn'	:0,
    //			'lnaGainMargin'	:6,
    //			'lnagain0'	:12,
    //			'lnagain1'	:12,
    //			'lnaphase0'	:0,
    //			'lnaphase1'	:0,
    //			'maxDelay'	:0,
    //			'maxDsaAttn'	:50,
    //			'minAttnAlc'	:0,
    //			'minDsaAttn'	:0,
    //			'nBitIndex'	:3,
    //			'outputDgcPinDelay'	:306,
    //			'phmEn'	:0,
    //			'phmIQMode'	:0,
    //			'pin0sel'	:16448,
    //			'pin1sel'	:16432,
    //			'pin2sel'	:16416,
    //			'pin3sel'	:16400,
    //			'pkDetOnPenultimateLsb'	:0,
    //			'pkDetPinLsbSel'	:0,
    //			'preSyncHead'	:255,
    //			'pulseExpansionCount'	:50,
    //			'rfdetNumhitsmode'	:0,
    //			'rfdetThreshold'	:3,
    //			'rfdeten'	:0,
    //			'rfdetnumhits'	:8,
    //			'rfdetstepsize'	:8,
    //			'sigBackOff'	:0,
    //			'sigInvalidBasedDelay'	:400,
    //			'singleDualBandMode'	:0,
    //			'startTemp'	:0,
    //			'stepSize'	:6,
    //			'stepTemp'	:1,
    //			'syncBitDisable'	:0,
    //			'syncHead'	:65535,
    //			'tapOffPoint'	:0,
    //			'tdd_freeze_agc'	:1,
    //			'temp_idxB0'	:0,
    //			'temp_idxB1'	:0,
    //			'totalGainRange'	:32,
    //			'useMinAttnAgc'	:1,
    //			}
    //	
    //	agcParams[3] = {		'NumStep'	:5,
    //			'agcMode'	:0,
    //			'agcstate'	:{			'toggleDgc':512,			'freeze':2,			'toggleExtAgc':1024,			'toggle':256,			'restart':8,			'dgcEn':16,			'extAGCDis':128,			'start':1,			'unfreeze':4,			'dgcDis':32,			'extAgcEn':64},
    //			'alcEn'	:0,
    //			'alcMode'	:0,
    //			'alc_mode'	:{			'inputALC':5,			'coarsefineI':2,			'coarsefineALCpin':4,			'Floatingpoint':0,			'coarsefineIQ':3},
    //			'atkNumHitsAbs'	:[8, 8],
    //			'atkNumHitsRel'	:[25, 75],
    //			'atken'	:[0, 1, 0],
    //			'atksize'	:[6, 2],
    //			'atkthreshold'	:[-1, -2, -14],
    //			'atkwinlength'	:[170, 170],
    //			'blank_time_extcomp'	:600,
    //			'chainen'	:8,
    //			'custRfMode'	:1,
    //			'custRfModeDict'	:{			'bigStepAtk':1,			'lnaBypass':2,			'extAgc':0},
    //			'decayNumHitsAbs'	:[8, 8],
    //			'decayNumHitsRel'	:[75, 25],
    //			'decayen'	:[0, 1, 0],
    //			'decaysize'	:[6, 2],
    //			'decaythreshold'	:[-14, -8, -20],
    //			'decaywinlength'	:87380,
    //			'dsaInit'	:0,
    //			'dsaStep'	:1,
    //			'dualLnaAtkNumCrossingMode'	:0,
    //			'dualLnaAtkNumCrossingsB0'	:8,
    //			'dualLnaAtkNumCrossingsB1'	:8,
    //			'dualLnaAtkThB0'	:-8,
    //			'dualLnaAtkThB1'	:-8,
    //			'dualLnaBypassDecayThB0'	:60,
    //			'dualLnaBypassDecayThB1'	:60,
    //			'dualLnaDecayNumCrossingMode'	:0,
    //			'dualLnaDecayNumCrossingsB0'	:8,
    //			'dualLnaDecayNumCrossingsB1'	:8,
    //			'dualLnaDecayThB0'	:13,
    //			'dualLnaDecayThB1'	:13,
    //			'dualLnaDsaApproach'	:1,
    //			'dualLnaMode'	:0,
    //			'enBandDet'	:0,
    //			'en_agcfreeze_pin'	:0,
    //			'extLnaTempModel'	:0,
    //			'fltPtFmt'	:1,
    //			'fltPtMode'	:0,
    //			'frameXferMode'	:4,
    //			'frameXferfmt'	:0,
    //			'gainChangeIndEn'	:1,
    //			'gpioRstEnable'	:0,
    //			'indexInvert'	:0,
    //			'indexSwapIQ'	:0,
    //			'lnaDsaChangeOrder'	:0,
    //			'lnaEn'	:0,
    //			'lnaGainMargin'	:6,
    //			'lnagain0'	:12,
    //			'lnagain1'	:12,
    //			'lnaphase0'	:0,
    //			'lnaphase1'	:0,
    //			'maxDelay'	:0,
    //			'maxDsaAttn'	:50,
    //			'minAttnAlc'	:0,
    //			'minDsaAttn'	:0,
    //			'nBitIndex'	:3,
    //			'outputDgcPinDelay'	:306,
    //			'phmEn'	:0,
    //			'phmIQMode'	:0,
    //			'pin0sel'	:16448,
    //			'pin1sel'	:16432,
    //			'pin2sel'	:16416,
    //			'pin3sel'	:16400,
    //			'pkDetOnPenultimateLsb'	:0,
    //			'pkDetPinLsbSel'	:0,
    //			'preSyncHead'	:255,
    //			'pulseExpansionCount'	:50,
    //			'rfdetNumhitsmode'	:0,
    //			'rfdetThreshold'	:3,
    //			'rfdeten'	:0,
    //			'rfdetnumhits'	:8,
    //			'rfdetstepsize'	:8,
    //			'sigBackOff'	:0,
    //			'sigInvalidBasedDelay'	:400,
    //			'singleDualBandMode'	:0,
    //			'startTemp'	:0,
    //			'stepSize'	:6,
    //			'stepTemp'	:1,
    //			'syncBitDisable'	:0,
    //			'syncHead'	:65535,
    //			'tapOffPoint'	:0,
    //			'tdd_freeze_agc'	:1,
    //			'temp_idxB0'	:0,
    //			'temp_idxB1'	:0,
    //			'totalGainRange'	:32,
    //			'useMinAttnAgc'	:1,
    //			}
    //	
    //	agcParams[4] = {		'NumStep'	:5,
    //			'agcMode'	:0,
    //			'agcstate'	:{			'toggleDgc':512,			'freeze':2,			'toggleExtAgc':1024,			'toggle':256,			'restart':8,			'dgcEn':16,			'extAGCDis':128,			'start':1,			'unfreeze':4,			'dgcDis':32,			'extAgcEn':64},
    //			'alcEn'	:0,
    //			'alcMode'	:0,
    //			'alc_mode'	:{			'inputALC':5,			'coarsefineI':2,			'coarsefineALCpin':4,			'Floatingpoint':0,			'coarsefineIQ':3},
    //			'atkNumHitsAbs'	:[8, 8],
    //			'atkNumHitsRel'	:[25, 75],
    //			'atken'	:[0, 1, 0],
    //			'atksize'	:[6, 2],
    //			'atkthreshold'	:[-1, -2, -14],
    //			'atkwinlength'	:[170, 170],
    //			'blank_time_extcomp'	:600,
    //			'chainen'	:16,
    //			'custRfMode'	:1,
    //			'custRfModeDict'	:{			'bigStepAtk':1,			'lnaBypass':2,			'extAgc':0},
    //			'decayNumHitsAbs'	:[8, 8],
    //			'decayNumHitsRel'	:[75, 25],
    //			'decayen'	:[0, 1, 0],
    //			'decaysize'	:[6, 2],
    //			'decaythreshold'	:[-14, -8, -20],
    //			'decaywinlength'	:87380,
    //			'dsaInit'	:0,
    //			'dsaStep'	:1,
    //			'dualLnaAtkNumCrossingMode'	:0,
    //			'dualLnaAtkNumCrossingsB0'	:8,
    //			'dualLnaAtkNumCrossingsB1'	:8,
    //			'dualLnaAtkThB0'	:-8,
    //			'dualLnaAtkThB1'	:-8,
    //			'dualLnaBypassDecayThB0'	:60,
    //			'dualLnaBypassDecayThB1'	:60,
    //			'dualLnaDecayNumCrossingMode'	:0,
    //			'dualLnaDecayNumCrossingsB0'	:8,
    //			'dualLnaDecayNumCrossingsB1'	:8,
    //			'dualLnaDecayThB0'	:13,
    //			'dualLnaDecayThB1'	:13,
    //			'dualLnaDsaApproach'	:1,
    //			'dualLnaMode'	:0,
    //			'enBandDet'	:0,
    //			'en_agcfreeze_pin'	:0,
    //			'extLnaTempModel'	:0,
    //			'fltPtFmt'	:1,
    //			'fltPtMode'	:0,
    //			'frameXferMode'	:4,
    //			'frameXferfmt'	:0,
    //			'gainChangeIndEn'	:1,
    //			'gpioRstEnable'	:0,
    //			'indexInvert'	:0,
    //			'indexSwapIQ'	:0,
    //			'lnaDsaChangeOrder'	:0,
    //			'lnaEn'	:0,
    //			'lnaGainMargin'	:6,
    //			'lnagain0'	:12,
    //			'lnagain1'	:12,
    //			'lnaphase0'	:0,
    //			'lnaphase1'	:0,
    //			'maxDelay'	:0,
    //			'maxDsaAttn'	:50,
    //			'minAttnAlc'	:0,
    //			'minDsaAttn'	:0,
    //			'nBitIndex'	:3,
    //			'outputDgcPinDelay'	:306,
    //			'phmEn'	:0,
    //			'phmIQMode'	:0,
    //			'pin0sel'	:16448,
    //			'pin1sel'	:16432,
    //			'pin2sel'	:16416,
    //			'pin3sel'	:16400,
    //			'pkDetOnPenultimateLsb'	:0,
    //			'pkDetPinLsbSel'	:0,
    //			'preSyncHead'	:255,
    //			'pulseExpansionCount'	:50,
    //			'rfdetNumhitsmode'	:0,
    //			'rfdetThreshold'	:3,
    //			'rfdeten'	:0,
    //			'rfdetnumhits'	:8,
    //			'rfdetstepsize'	:8,
    //			'sigBackOff'	:0,
    //			'sigInvalidBasedDelay'	:400,
    //			'singleDualBandMode'	:0,
    //			'startTemp'	:0,
    //			'stepSize'	:6,
    //			'stepTemp'	:1,
    //			'syncBitDisable'	:0,
    //			'syncHead'	:65535,
    //			'tapOffPoint'	:0,
    //			'tdd_freeze_agc'	:1,
    //			'temp_idxB0'	:0,
    //			'temp_idxB1'	:0,
    //			'totalGainRange'	:32,
    //			'useMinAttnAgc'	:1,
    //			}
    //	
    //	agcParams[5] = {		'NumStep'	:5,
    //			'agcMode'	:0,
    //			'agcstate'	:{			'toggleDgc':512,			'freeze':2,			'toggleExtAgc':1024,			'toggle':256,			'restart':8,			'dgcEn':16,			'extAGCDis':128,			'start':1,			'unfreeze':4,			'dgcDis':32,			'extAgcEn':64},
    //			'alcEn'	:0,
    //			'alcMode'	:0,
    //			'alc_mode'	:{			'inputALC':5,			'coarsefineI':2,			'coarsefineALCpin':4,			'Floatingpoint':0,			'coarsefineIQ':3},
    //			'atkNumHitsAbs'	:[8, 8],
    //			'atkNumHitsRel'	:[25, 75],
    //			'atken'	:[0, 1, 0],
    //			'atksize'	:[6, 2],
    //			'atkthreshold'	:[-1, -2, -14],
    //			'atkwinlength'	:[170, 170],
    //			'blank_time_extcomp'	:600,
    //			'chainen'	:32,
    //			'custRfMode'	:1,
    //			'custRfModeDict'	:{			'bigStepAtk':1,			'lnaBypass':2,			'extAgc':0},
    //			'decayNumHitsAbs'	:[8, 8],
    //			'decayNumHitsRel'	:[75, 25],
    //			'decayen'	:[0, 1, 0],
    //			'decaysize'	:[6, 2],
    //			'decaythreshold'	:[-14, -8, -20],
    //			'decaywinlength'	:87380,
    //			'dsaInit'	:0,
    //			'dsaStep'	:1,
    //			'dualLnaAtkNumCrossingMode'	:0,
    //			'dualLnaAtkNumCrossingsB0'	:8,
    //			'dualLnaAtkNumCrossingsB1'	:8,
    //			'dualLnaAtkThB0'	:-8,
    //			'dualLnaAtkThB1'	:-8,
    //			'dualLnaBypassDecayThB0'	:60,
    //			'dualLnaBypassDecayThB1'	:60,
    //			'dualLnaDecayNumCrossingMode'	:0,
    //			'dualLnaDecayNumCrossingsB0'	:8,
    //			'dualLnaDecayNumCrossingsB1'	:8,
    //			'dualLnaDecayThB0'	:13,
    //			'dualLnaDecayThB1'	:13,
    //			'dualLnaDsaApproach'	:1,
    //			'dualLnaMode'	:0,
    //			'enBandDet'	:0,
    //			'en_agcfreeze_pin'	:0,
    //			'extLnaTempModel'	:0,
    //			'fltPtFmt'	:1,
    //			'fltPtMode'	:0,
    //			'frameXferMode'	:4,
    //			'frameXferfmt'	:0,
    //			'gainChangeIndEn'	:1,
    //			'gpioRstEnable'	:0,
    //			'indexInvert'	:0,
    //			'indexSwapIQ'	:0,
    //			'lnaDsaChangeOrder'	:0,
    //			'lnaEn'	:0,
    //			'lnaGainMargin'	:6,
    //			'lnagain0'	:12,
    //			'lnagain1'	:12,
    //			'lnaphase0'	:0,
    //			'lnaphase1'	:0,
    //			'maxDelay'	:0,
    //			'maxDsaAttn'	:50,
    //			'minAttnAlc'	:0,
    //			'minDsaAttn'	:0,
    //			'nBitIndex'	:3,
    //			'outputDgcPinDelay'	:306,
    //			'phmEn'	:0,
    //			'phmIQMode'	:0,
    //			'pin0sel'	:16448,
    //			'pin1sel'	:16432,
    //			'pin2sel'	:16416,
    //			'pin3sel'	:16400,
    //			'pkDetOnPenultimateLsb'	:0,
    //			'pkDetPinLsbSel'	:0,
    //			'preSyncHead'	:255,
    //			'pulseExpansionCount'	:50,
    //			'rfdetNumhitsmode'	:0,
    //			'rfdetThreshold'	:3,
    //			'rfdeten'	:0,
    //			'rfdetnumhits'	:8,
    //			'rfdetstepsize'	:8,
    //			'sigBackOff'	:0,
    //			'sigInvalidBasedDelay'	:400,
    //			'singleDualBandMode'	:0,
    //			'startTemp'	:0,
    //			'stepSize'	:6,
    //			'stepTemp'	:1,
    //			'syncBitDisable'	:0,
    //			'syncHead'	:65535,
    //			'tapOffPoint'	:0,
    //			'tdd_freeze_agc'	:1,
    //			'temp_idxB0'	:0,
    //			'temp_idxB1'	:0,
    //			'totalGainRange'	:32,
    //			'useMinAttnAgc'	:1,
    //			}
    //	
    //	auxAdcEn	=	False
    //	broadcastRxNcoSel	=	0
    //	broadcastTxNcoSel	=	0
    //	chipId	=	121
    //	chipVersion	=	19
    //	combineDucMode	=	[0, 0]
    //	continuousSysref	=	True
    //	dacDataMuxEn	=	1
    //	ddcFactorFb	=	[2, 2]
    //	ddcFactorRx	=	[2, 2, 2, 2]
    //	defaultFbDsa	=	[0, 0]
    //	defaultRxDsa	=	[0, 0, 0, 0]
    //	defaultTxDsa	=	[0, 0, 0, 0]
    //	doSerdesAdaptationSeparately	=	False
    //	ducFactorTx	=	[8, 8, 8, 8]
    //	enableAdcAveragingMode	=	[False, False]
    //	enableDacInterleavedMode	=	False
    //	enableReliabilityDetector	=	True
    //	enableRxDsaCalibration	=	False
    //	enableTxDsaCalibration	=	False
    //	enableTxFbLoopbackLowLatencyMode	=	[False, False]
    //	executeLinkUpSequenceSeparately	=	False
    //	externalClockRx	=	False
    //	externalClockTx	=	False
    //	fb15BitMode	=	[False, False]
    //	fbChainSelForDsaCalib	=	0
    //	fbDataMux	=	[0, 1]
    //	fbDsaPerTx	=	[0, 0, 0, 0]
    //	fbDsaPerTxEn	=	False
    //	fbEnable	=	[False, False]
    //	fbJesdTxK	=	[1, 1]
    //	fbJesdTxScr	=	[False, False]
    //	fbJesdTxSyncMux	=	[0, 0]
    //	fbNco0	=	[9800, 9800]
    //	fbNco1	=	[1800.0, 1900.0]
    //	fbNco2	=	[1800.0, 1900.0]
    //	fbNco3	=	[1800.0, 1900.0]
    //	gpioMapping = {		'E7'	:['RXATDD', 'RXBTDD'],
    //			'G9'	:'DAC_SYNC1',
    //			'H15'	:['TXATDD', 'TXBTDD'],
    //			'H7'	:'ADC_SYNC1',
    //			'H8'	:'ADC_SYNC0',
    //			'H9'	:'DAC_SYNC0',
    //			'K14'	:'FBABTDD',
    //			'N7'	:'ADC_SYNC3',
    //			'N8'	:'ADC_SYNC2',
    //			'N9'	:'DAC_SYNC2',
    //			'P14'	:'GLOBAL_PDN',
    //			'P9'	:'DAC_SYNC3',
    //			'R15'	:['RXCTDD', 'RXDTDD'],
    //			'R6'	:'FBCDTDD',
    //			'V5'	:['TXCTDD', 'TXDTDD'],
    //			}
    //	gpioOverrideValSet	=	[]
    //	gpioPolarityInv	=	[]
    //	halfRateModeFb	=	[False, False]
    //	halfRateModeRx	=	[False, False]
    //	halfRateModeTx	=	[False, False]
    //	intPinsParams[0] = {		'JESD'	:True,
    //			'PLL'	:True,
    //			'SPI'	:True,
    //			'TXAPAP'	:True,
    //			'TXBPAP'	:True,
    //			'TXCPAP'	:True,
    //			'TXDPAP'	:True,
    //			}
    //	
    //	intPinsParams[1] = {		'JESD'	:True,
    //			'PLL'	:True,
    //			'SPI'	:True,
    //			'TXAPAP'	:True,
    //			'TXBPAP'	:True,
    //			'TXCPAP'	:True,
    //			'TXDPAP'	:True,
    //			}
    //	
    //	jesdABLvdsSync	=	True
    //	jesdCDLvdsSync	=	True
    //	jesdLoopbackEn	=	0
    //	jesdRxInitLmfcCounter	=	[0, 0, 0, 0]
    //	jesdRxK	=	[1, 1, 1, 1]
    //	jesdRxLaneMux	=	[0, 1, 2, 3, 4, 5, 6, 7]
    //	jesdRxProtocol	=	[2, 2]
    //	jesdRxRbd	=	[50, 50, 50, 50]
    //	jesdRxScr	=	[False, False, False, False]
    //	jesdRxSyncMux	=	[0, 0, 0, 0]
    //	jesdSendZeroesInTddOff	=	False
    //	jesdSystemMode	=	[3, 3]
    //	jesdTxIlaL	=	[4, 4, 2, 4, 4, 2]
    //	jesdTxIlaLid	=	[0, 1, 2, 3, 4, 5, 6, 7]
    //	jesdTxIlaM	=	[8, 8, 2, 8, 8, 2]
    //	jesdTxLaneMux	=	[0, 1, 2, 3, 4, 5, 6, 7]
    //	jesdTxProtocol	=	[2, 2]
    //	libVersion	=	'2.5.0'
    //	modeTdd	=	2
    //	ncoFbMode	=	0
    //	ncoFreqMode	=	'FCW'
    //	ncoRxMode	=	[0, 0]
    //	ncoTxMode	=	[0, 0]
    //	numBandRx	=	[0, 0, 0, 0]
    //	numBandsRx	=	[0, 0, 0, 0]
    //	numBandsTx	=	[0, 0, 0, 0]
    //	numFbNCO	=	[1, 1]
    //	numRxNCOB0	=	[1, 1, 1, 1]
    //	numRxNCOB1	=	[1, 1, 1, 1]
    //	numTxNCOB0	=	[1, 1, 1, 1]
    //	numTxNCOB1	=	[1, 1, 1, 1]
    //	papParams[0] = {		'alarmChannelMask'	:14,
    //			'alarmMask'	:64,
    //			'alarmPinDynamicMode'	:1,
    //			'alarmPulseGPIO'	:1000,
    //			'amplUpdateCycles'	:2,
    //			'attnStepSize'	:5,
    //			'detectInWaitState'	:0,
    //			'enable'	:False,
    //			'gainStepSize'	:5,
    //			'hpfEnable'	:1,
    //			'hpfNumSample'	:4,
    //			'hpfThreshB0'	:30.0,
    //			'hpfThreshB1'	:30.0,
    //			'hpfThreshComb'	:30.0,
    //			'hpfWindowCntr'	:0,
    //			'hpfWindowCntrTh'	:0,
    //			'maEnable'	:1,
    //			'maNumSample'	:128,
    //			'maThreshB0'	:90.0,
    //			'maThreshB1'	:90.0,
    //			'maThreshComb'	:90.0,
    //			'maWindowCntr'	:1,
    //			'maWindowCntrTh'	:1,
    //			'multMode'	:0,
    //			'rampDownStartVal'	:128,
    //			'rampStickyMode'	:0,
    //			'triggerClearToRampUp'	:50,
    //			'triggerToRampDown'	:50,
    //			'waitCounter'	:200,
    //			}
    //	
    //	papParams[1] = {		'alarmChannelMask'	:14,
    //			'alarmMask'	:64,
    //			'alarmPinDynamicMode'	:1,
    //			'alarmPulseGPIO'	:1000,
    //			'amplUpdateCycles'	:2,
    //			'attnStepSize'	:5,
    //			'detectInWaitState'	:0,
    //			'enable'	:False,
    //			'gainStepSize'	:5,
    //			'hpfEnable'	:1,
    //			'hpfNumSample'	:4,
    //			'hpfThreshB0'	:30.0,
    //			'hpfThreshB1'	:30.0,
    //			'hpfThreshComb'	:30.0,
    //			'hpfWindowCntr'	:0,
    //			'hpfWindowCntrTh'	:0,
    //			'maEnable'	:1,
    //			'maNumSample'	:128,
    //			'maThreshB0'	:90.0,
    //			'maThreshB1'	:90.0,
    //			'maThreshComb'	:90.0,
    //			'maWindowCntr'	:1,
    //			'maWindowCntrTh'	:1,
    //			'multMode'	:0,
    //			'rampDownStartVal'	:128,
    //			'rampStickyMode'	:0,
    //			'triggerClearToRampUp'	:50,
    //			'triggerToRampDown'	:50,
    //			'waitCounter'	:200,
    //			}
    //	
    //	papParams[2] = {		'alarmChannelMask'	:14,
    //			'alarmMask'	:64,
    //			'alarmPinDynamicMode'	:1,
    //			'alarmPulseGPIO'	:1000,
    //			'amplUpdateCycles'	:2,
    //			'attnStepSize'	:5,
    //			'detectInWaitState'	:0,
    //			'enable'	:False,
    //			'gainStepSize'	:5,
    //			'hpfEnable'	:1,
    //			'hpfNumSample'	:4,
    //			'hpfThreshB0'	:30.0,
    //			'hpfThreshB1'	:30.0,
    //			'hpfThreshComb'	:30.0,
    //			'hpfWindowCntr'	:0,
    //			'hpfWindowCntrTh'	:0,
    //			'maEnable'	:1,
    //			'maNumSample'	:128,
    //			'maThreshB0'	:90.0,
    //			'maThreshB1'	:90.0,
    //			'maThreshComb'	:90.0,
    //			'maWindowCntr'	:1,
    //			'maWindowCntrTh'	:1,
    //			'multMode'	:0,
    //			'rampDownStartVal'	:128,
    //			'rampStickyMode'	:0,
    //			'triggerClearToRampUp'	:50,
    //			'triggerToRampDown'	:50,
    //			'waitCounter'	:200,
    //			}
    //	
    //	papParams[3] = {		'alarmChannelMask'	:14,
    //			'alarmMask'	:64,
    //			'alarmPinDynamicMode'	:1,
    //			'alarmPulseGPIO'	:1000,
    //			'amplUpdateCycles'	:2,
    //			'attnStepSize'	:5,
    //			'detectInWaitState'	:0,
    //			'enable'	:False,
    //			'gainStepSize'	:5,
    //			'hpfEnable'	:1,
    //			'hpfNumSample'	:4,
    //			'hpfThreshB0'	:30.0,
    //			'hpfThreshB1'	:30.0,
    //			'hpfThreshComb'	:30.0,
    //			'hpfWindowCntr'	:0,
    //			'hpfWindowCntrTh'	:0,
    //			'maEnable'	:1,
    //			'maNumSample'	:128,
    //			'maThreshB0'	:90.0,
    //			'maThreshB1'	:90.0,
    //			'maThreshComb'	:90.0,
    //			'maWindowCntr'	:1,
    //			'maWindowCntrTh'	:1,
    //			'multMode'	:0,
    //			'rampDownStartVal'	:128,
    //			'rampStickyMode'	:0,
    //			'triggerClearToRampUp'	:50,
    //			'triggerToRampDown'	:50,
    //			'waitCounter'	:200,
    //			}
    //	
    //	pllGsmMode	=	False
    //	reliabilityDetectorDecayMode	=	2
    //	rxChainSelForDsaCalib	=	15
    //	rxDataMux	=	[0, 1, 2, 3, 4, 5, 6, 7]
    //	rxDsaBandCalibMode	=	0
    //	rxDsaCalibMode	=	0
    //	rxDsaGainRange	=	[0, 25]
    //	rxEnable	=	[True, False, False, False]
    //	rxJesdTxK	=	[1, 1, 1, 1]
    //	rxJesdTxScr	=	[False, False, False, False]
    //	rxJesdTxSyncMux	=	[0, 0, 0, 0]
    //	rxNco0	=	[[9800, 9800], [9800, 9800], [9800, 9800], [9800, 9800]]
    //	rxNco1	=	[[1800.0, 2600.0], [1800.0, 2600.0], [1800.0, 2600.0], [1800.0, 2600.0]]
    //	serdesFirmware	=	True
    //	serdesManualCTLE	=	[6, 6, 6, 6, 6, 6, 6, 6]
    //	serdesManualCTLEEn	=	False
    //	serdesRxLanePolarity	=	[False, False, False, False, False, False, False, False]
    //	serdesTxLanePolarity	=	[False, False, False, False, False, False, False, False]
    //	serdesTxMainCursor	=	[3, 0, 0, 0, 0, 0, 0, 3]
    //	serdesTxPostCursor	=	[0, 0, 0, 0, 0, 0, 0, 0]
    //	serdesTxPreCursor	=	[0, 0, 0, 0, 0, 0, 0, 0]
    //	setIlaParams	=	True
    //	skipAdcPuc	=	1
    //	skipDacPuc	=	1
    //	spiMode	=	1
    //	syncLoopBack	=	False
    //	sysrefTermination	=	0
    //	txChainDirectCtrl	=	0
    //	txDataMux	=	[0, 1, 2, 3, 4, 5, 6, 7]
    //	txDsaBandCalibMode	=	0
    //	txDsaCalibMode	=	0
    //	txEnable	=	[True, False, False, False]
    //	txNco0	=	[[9800, 9800], [9800, 9800], [9800, 9800], [9800, 9800]]
    //	txNco1	=	[[1800.0, 2600.0], [1800.0, 2600.0], [1800.0, 2600.0], [1800.0, 2600.0]]
    //	txToFbMode	=	0
    //	txdsaStartStop	=	[0, 29]
    //	useSpiSysref	=	False
    //	useTxForCalib	=	0
    //	
    
    
    //**********Configuration Starting**********
    //	
    
    
    //EXTERNAL-ACTION: Toggle HW Reset
    
    
    //STEP: rstDevice/step0 
    
    //START: Device Soft Reset and SPI Check
    
    SPIWrite 0000,30,0,7	//global_soft_reset=0x0; 	Address(0x0[7:7])
    SPIWrite 0000,b0,0,7	//global_soft_reset=0x1; 	Address(0x0[7:7])
    SPIWrite 0000,30,0,7	//global_soft_reset=0x0; 	Address(0x0[7:7])
    SPIWrite 0000,30,0,7	//global_4pin=0x1; 	Address(0x0[7:4])
    SPIWrite 0000,30,0,7	//global_ascend=0x1; 	Address(0x0[7:5])
    SPIReadCheck 0003,0,7,0a
    
    //Read	chip_type=0x0; 	Address(0x3[7:0],0x4[7:0])
    
    SPIReadCheck 0004,0,7,78
    SPIReadCheck 0005,0,7,00
    
    //Read	chip_id=0x0; 	Address(0x4[7:0],0x5[7:0],0x5[7:0],0x6[7:0])
    
    SPIReadCheck 0006,0,7,11
    
    //Read	chip_ver=0x0; 	Address(0x6[7:0],0x7[7:0])
    
    SPIRead 0007,0,7
    SPIRead 0008,0,7
    
    //Read	vendor_id=0x0; 	Address(0x7[7:0],0x8[7:0],0x8[7:0],0x9[7:0])
    
    
    //END: Device Soft Reset and SPI Check
    
    
    //STEP: rstDevice/step1 
    
    //START: Waking up device
    
    SPIWrite 0015,80,0,7	//timing_controller=0x1; 	Address(0x15[7:7])
    SPIWrite 0191,00,0,7	//Property_170h_8_8=0x0; 	Address(0x191[7:0])
    SPIWrite 0231,00,0,7	//Property_210h_8_8=0x0; 	Address(0x231[7:0])
    SPIWrite 02d1,00,0,7	//Property_2b0h_8_8=0x0; 	Address(0x2d1[7:0])
    SPIWrite 0371,00,0,7	//Property_350h_8_8=0x0; 	Address(0x371[7:0])
    SPIWrite 042a,00,0,7	//Property_408h_16_16=0x0; 	Address(0x42a[7:0])
    SPIWrite 04e2,00,0,7	//Property_4c0h_16_16=0x0; 	Address(0x4e2[7:0])
    SPIWrite 059a,00,0,7	//Property_578h_16_16=0x0; 	Address(0x59a[7:0])
    SPIWrite 0652,00,0,7	//Property_630h_16_16=0x0; 	Address(0x652[7:0])
    SPIWrite 070a,00,0,7	//Property_6e8h_16_16=0x0; 	Address(0x70a[7:0])
    SPIWrite 07c2,00,0,7	//Property_7a0h_16_16=0x0; 	Address(0x7c2[7:0])
    
    //START: Setting TDD Pin in override state and setting override values.
    
    SPIWrite 00ec,01,0,7	//Property_cch_0_0=0x1; 	Address(0xec[7:0])
    SPIWrite 00f4,01,0,7	//Property_d4h_0_0=0x1; 	Address(0xf4[7:0])
    SPIWrite 00e4,01,0,7	//Property_c4h_0_0=0x1; 	Address(0xe4[7:0])
    SPIWrite 00ed,00,0,7	//Property_cch_11_8=0x0; 	Address(0xed[7:0])
    SPIWrite 00f5,00,0,7	//Property_d4h_9_8=0x0; 	Address(0xf5[7:0])
    SPIWrite 00e5,00,0,7	//Property_c4h_11_8=0x0; 	Address(0xe5[7:0])
    SPIWrite 00ed,00,0,7	//Property_cch_11_8=0x0; 	Address(0xed[7:0])
    SPIWrite 00f5,00,0,7	//Property_d4h_9_8=0x0; 	Address(0xf5[7:0])
    SPIWrite 00e5,00,0,7	//Property_c4h_11_8=0x0; 	Address(0xe5[7:0])
    
    //END: Setting TDD Pin in override state and setting override values.
    
    SPIWrite 0015,00,0,7	//timing_controller=0x0; 	Address(0x15[7:7])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0190,03,0,7	//misc_spi_global_pdn_ctrl=0x1; 	Address(0x190[7:0])
    SPIWrite 0190,01,0,7	//misc_spi_global_pdn_sig=0x0; 	Address(0x190[7:1])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    
    WAIT 0.001
    
    //END: Done waking up device
    
    
    //START: Power Saving Options
    
    SPIWrite 0013,02,0,7	//txdh=0x2; 	Address(0x13[7:0])
    SPIWrite 0020,01,0,7	//Property_0h_0_0=0x1; 	Address(0x20[7:0])
    SPIWrite 0158,02,0,7	//Property_138h_1_1=0x1; 	Address(0x158[7:1])
    SPIWrite 0159,02,0,7	//Property_138h_9_9=0x1; 	Address(0x159[7:1])
    SPIWrite 0158,02,0,7	//Property_138h_0_0=0x0; 	Address(0x158[7:0])
    SPIWrite 0159,02,0,7	//Property_138h_8_8=0x0; 	Address(0x159[7:0])
    SPIWrite 015a,02,0,7	//Property_138h_17_17=0x1; 	Address(0x15a[7:1])
    SPIWrite 015a,02,0,7	//Property_138h_16_16=0x0; 	Address(0x15a[7:0])
    SPIWrite 0158,06,0,7	//Property_138h_2_2=0x1; 	Address(0x158[7:2])
    SPIWrite 0159,06,0,7	//Property_138h_10_10=0x1; 	Address(0x159[7:2])
    SPIWrite 0158,0e,0,7	//Property_138h_3_3=0x1; 	Address(0x158[7:3])
    SPIWrite 0159,0e,0,7	//Property_138h_11_11=0x1; 	Address(0x159[7:3])
    SPIWrite 015a,42,0,7	//Property_138h_22_22=0x1; 	Address(0x15a[7:6])
    SPIWrite 015a,4a,0,7	//Property_138h_19_19=0x1; 	Address(0x15a[7:3])
    SPIWrite 015a,ca,0,7	//Property_138h_23_23=0x1; 	Address(0x15a[7:7])
    SPIWrite 01a1,08,0,7	//Property_180h_15_0=0x800; 	Address(0x1a0[7:0],0x1a1[7:0],0x1a2[7:0])
    SPIWrite 01a0,00,0,7
    SPIWrite 0013,00,0,7	//txdh=0x0; 	Address(0x13[7:0])
    SPIWrite 0019,20,0,7	//txdig=0x2; 	Address(0x19[7:4])
    SPIWrite 0461,01,0,7	//Property_440h_8_8=0x1; 	Address(0x461[7:0])
    SPIWrite 0460,01,0,7	//Property_440h_0_0=0x1; 	Address(0x460[7:0])
    SPIWrite 0019,00,0,7	//txdig=0x0; 	Address(0x19[7:4])
    SPIWrite 0013,04,0,7	//txdh=0x4; 	Address(0x13[7:0])
    SPIWrite 0020,01,0,7	//Property_0h_0_0=0x1; 	Address(0x20[7:0])
    SPIWrite 0013,00,0,7	//txdh=0x0; 	Address(0x13[7:0])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0930,04,0,7	//Property_910h_2_2=0x1; 	Address(0x930[7:2])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0019,40,0,7	//txdig=0x4; 	Address(0x19[7:4])
    SPIWrite 0461,01,0,7	//Property_440h_8_8=0x1; 	Address(0x461[7:0])
    SPIWrite 0460,01,0,7	//Property_440h_0_0=0x1; 	Address(0x460[7:0])
    SPIWrite 0019,00,0,7	//txdig=0x0; 	Address(0x19[7:4])
    SPIWrite 0013,08,0,7	//txdh=0x8; 	Address(0x13[7:0])
    SPIWrite 0020,01,0,7	//Property_0h_0_0=0x1; 	Address(0x20[7:0])
    SPIWrite 0013,00,0,7	//txdh=0x0; 	Address(0x13[7:0])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0930,0c,0,7	//Property_910h_3_3=0x1; 	Address(0x930[7:3])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0019,80,0,7	//txdig=0x8; 	Address(0x19[7:4])
    SPIWrite 0461,01,0,7	//Property_440h_8_8=0x1; 	Address(0x461[7:0])
    SPIWrite 0460,01,0,7	//Property_440h_0_0=0x1; 	Address(0x460[7:0])
    SPIWrite 0019,40,0,7	//txdig=0x4; 	Address(0x19[7:4])
    SPIWrite 0b81,20,0,7	//TxClkDiv4_inclk_gate=0x1; 	Address(0xb81[7:5])
    SPIWrite 0019,00,0,7	//txdig=0x0; 	Address(0x19[7:4])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0931,01,0,7	//Property_910h_8_8=0x1; 	Address(0x931[7:0])
    SPIWrite 0932,02,0,7	//Property_910h_17_17=0x1; 	Address(0x932[7:1])
    SPIWrite 0931,03,0,7	//Property_910h_9_9=0x1; 	Address(0x931[7:1])
    SPIWrite 0932,06,0,7	//Property_910h_18_18=0x1; 	Address(0x932[7:2])
    SPIWrite 0932,0e,0,7	//Property_910h_19_19=0x1; 	Address(0x932[7:3])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0011,3f,0,7	//ec_ana=0x3f; 	Address(0x11[7:0])
    SPIWrite 00ce,20,0,7	//Property_ceh_5_5=0x1; 	Address(0xce[7:5])
    SPIWrite 00cb,04,0,7	//Property_cbh_2_2=0x1; 	Address(0xcb[7:2])
    SPIWrite 00ca,20,0,7	//Property_cah_5_5=0x1; 	Address(0xca[7:5])
    SPIWrite 00ce,30,0,7	//Property_ceh_4_4=0x1; 	Address(0xce[7:4])
    SPIWrite 00c3,40,0,7	//Property_c3h_6_6=0x1; 	Address(0xc3[7:6])
    SPIWrite 00c0,01,0,7	//Property_c0h_0_0=0x1; 	Address(0xc0[7:0])
    SPIWrite 00b9,40,0,7	//Property_b9h_6_6=0x1; 	Address(0xb9[7:6])
    SPIWrite 00b9,50,0,7	//Property_b9h_4_4=0x1; 	Address(0xb9[7:4])
    SPIWrite 00b9,70,0,7	//Property_b9h_5_5=0x1; 	Address(0xb9[7:5])
    SPIWrite 00b9,78,0,7	//Property_b9h_3_3=0x1; 	Address(0xb9[7:3])
    SPIWrite 0011,00,0,7	//ec_ana=0x0; 	Address(0x11[7:0])
    SPIWrite 0010,3f,0,7	//ec_dig=0x3f; 	Address(0x10[7:0])
    SPIWrite 00b0,30,0,7	//Property_b0h_5_5=0x1; 	Address(0xb0[7:5])
    SPIWrite 00b4,30,0,7	//Property_b4h_5_5=0x1; 	Address(0xb4[7:5])
    SPIWrite 0010,00,0,7	//ec_dig=0x0; 	Address(0x10[7:0])
    
    //END: Power Saving Options
    
    
    //START: Setting MCU Clock Div
    
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 00c0,01,0,7	//Property_a0h_2_0=0x1; 	Address(0xc0[7:0])
    
    //END: Setting MCU Clock Div
    
    
    //START: Changing termination to 100 ohm
    
    
    //START: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0170,01,0,7	//pll_reg_spi_req_a=0x1; 	Address(0x170[7:0])
    SPIWrite 0540,00,0,7	//Property_520h_0_0=0x0; 	Address(0x540[7:0])
    
    SPIPoll 0171,0,0,01
    SPIRead 0171,0,0
    
    //Read	pll_reg_spi_a_ack=0x0(Meaning: );; 	Address(0x171[7:0])
    
    
    //END: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0015,01,0,7	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 0054,81,0,7
    SPIWrite 0015,00,0,7	//pll=0x0; 	Address(0x15[7:0])
    
    //START: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0170,00,0,7	//pll_reg_spi_req_a=0x0; 	Address(0x170[7:0])
    SPIWrite 0540,00,0,7	//Property_520h_0_0=0x0; 	Address(0x540[7:0])
    
    //END: Requesting/releasing SPI Access to PLL Pages
    
    
    //END: Changing termination to 100 ohm
    
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    
    //STEP: efuseChain/step0 
    
    //START: Loading Efuse Chain
    
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 08a8,02,0,7	//Property_888h_7_0=0x2; 	Address(0x8a8[7:0],0x8a9[7:0])
    SPIWrite 0810,01,0,7	//Property_7f0h_0_0=0x1; 	Address(0x810[7:0])
    SPIWrite 0830,01,0,7	//Property_810h_0_0=0x1; 	Address(0x830[7:0])
    SPIWrite 0200,00,0,7	//Property_1e0h_2_0=0x0; 	Address(0x200[7:0])
    SPIWrite 0210,00,0,7	//Property_1f0h_2_0=0x0; 	Address(0x210[7:0])
    SPIWrite 0814,00,0,7	//Property_7f4h_1_0=0x0; 	Address(0x814[7:0])
    SPIWrite 0834,00,0,7	//Property_814h_1_0=0x0; 	Address(0x834[7:0])
    SPIWrite 0814,01,0,7	//Property_7f4h_1_0=0x1; 	Address(0x814[7:0])
    SPIWrite 0834,01,0,7	//Property_814h_1_0=0x1; 	Address(0x834[7:0])
    SPIWrite 0810,00,0,7	//Property_7f0h_0_0=0x0; 	Address(0x810[7:0])
    SPIWrite 0830,00,0,7	//Property_810h_0_0=0x0; 	Address(0x830[7:0])
    SPIWrite 0810,01,0,7	//Property_7f0h_0_0=0x1; 	Address(0x810[7:0])
    SPIWrite 0830,01,0,7	//Property_810h_0_0=0x1; 	Address(0x830[7:0])
    SPIWrite 0200,05,0,7	//Property_1e0h_2_0=0x5; 	Address(0x200[7:0])
    SPIWrite 0210,00,0,7	//Property_1f0h_2_0=0x0; 	Address(0x210[7:0])
    SPIWrite 0814,03,0,7	//Property_7f4h_1_0=0x3; 	Address(0x814[7:0])
    SPIWrite 0834,03,0,7	//Property_814h_1_0=0x3; 	Address(0x834[7:0])
    SPIWrite 0814,00,0,7	//Property_7f4h_1_0=0x0; 	Address(0x814[7:0])
    SPIWrite 0834,00,0,7	//Property_814h_1_0=0x0; 	Address(0x834[7:0])
    SPIWrite 0810,00,0,7	//Property_7f0h_0_0=0x0; 	Address(0x810[7:0])
    SPIWrite 0830,00,0,7	//Property_810h_0_0=0x0; 	Address(0x830[7:0])
    SPIWrite 0814,00,0,7	//Property_7f4h_5_2=0x0; 	Address(0x814[7:2])
    SPIWrite 0834,00,0,7	//Property_814h_5_2=0x0; 	Address(0x834[7:2])
    SPIWrite 0814,1c,0,7	//Property_7f4h_5_2=0x7; 	Address(0x814[7:2])
    SPIWrite 0834,1c,0,7	//Property_814h_5_2=0x7; 	Address(0x834[7:2])
    SPIWrite 0814,00,0,7	//Property_7f4h_5_2=0x0; 	Address(0x814[7:2])
    SPIWrite 0834,00,0,7	//Property_814h_5_2=0x0; 	Address(0x834[7:2])
    
    WAIT 0.005
    
    //END: Loading Efuse Chain
    
    
    //START: Checking for Efuse
    
    SPIReadCheck 0150,0,3,0f
    
    //Read	obs_func_spi_chain_autoload_done=0x0; 	Address(0x150[7:0])
    
    SPIReadCheck 0150,4,7,00
    
    //Read	obs_func_spi_chain_autoload_error=0x0; 	Address(0x150[7:4])
    
    SPIReadCheck 0160,0,3,0f
    
    //Read	obs_func_spi_chain_autoload_done=0x0; 	Address(0x160[7:0])
    
    SPIReadCheck 0160,4,7,00
    
    //Read	obs_func_spi_chain_autoload_error=0x0; 	Address(0x160[7:4])
    
    
    //END: Checking for Efuse
    
    
    //START: enabling Efuse Clock
    
    SPIWrite 0830,01,0,7	//Property_810h_0_0=0x1; 	Address(0x830[7:0])
    SPIWrite 0810,01,0,7	//Property_7f0h_0_0=0x1; 	Address(0x810[7:0])
    SPIWrite 0910,0f,0,7	//Property_8f0h_3_0=0xf; 	Address(0x910[7:0])
    SPIWrite 0911,03,0,7	//Property_8f0h_9_8=0x3; 	Address(0x911[7:0])
    SPIWrite 0912,0f,0,7	//Property_8f0h_19_16=0xf; 	Address(0x912[7:0])
    
    //END: enabling Efuse Clock
    
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    
    //STEP: mcuWakeUp/step0 
    SPIWrite 0016,10,0,7	//jesd_subchip=0x1; 	Address(0x16[7:4])
    SPIWrite 00c1,02,0,7	//apb_clk_div_factor=0x2; 	Address(0xc1[7:0])
    SPIWrite 00c0,42,0,7	//apb_clk_sysref_sel=0x1; 	Address(0xc0[7:6])
    SPIWrite 00c0,42,0,7	//apb_clk_sysref_val=0x0; 	Address(0xc0[7:7])
    SPIWrite 00c0,c2,0,7	//apb_clk_sysref_val=0x1; 	Address(0xc0[7:7])
    SPIWrite 00c0,42,0,7	//apb_clk_sysref_val=0x0; 	Address(0xc0[7:7])
    SPIWrite 0016,00,0,7	//jesd_subchip=0x0; 	Address(0x16[7:4])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIWrite 0140,01,0,7	//Property_120h_0_0=0x1; 	Address(0x140[7:0])
    SPIWrite 0140,00,0,7	//Property_120h_0_0=0x0; 	Address(0x140[7:0])
    
    WAIT 0.001
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x2; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,02,0,7
    SPIWrite 0193,01,0,7	//MACRO_OPCODE=0x1; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00fb,0,7
    SPIRead 00fa,0,7
    SPIRead 00f9,0,7
    SPIRead 00f8,0,7
    
    //Read	MACRO_RESULT_REG0=0x0; 	Address(0xf8[7:0],0xf9[7:0],0xfa[7:0],0xfb[7:0],0xfc[7:0])
    
    SPIReadCheck 00ff,0,7,00
    SPIReadCheck 00fe,0,7,00
    SPIReadCheck 00fd,0,7,2a
    SPIReadCheck 00fc,0,7,f8
    
    //Read	MACRO_RESULT_REG1=0x0; 	Address(0xfc[7:0],0xfd[7:0],0xfe[7:0],0xff[7:0],0x100[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x0; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 0193,90,0,7	//MACRO_OPCODE=0x90; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0144,08,0,7	//Property_124h_4_2=0x2; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,08,0,7	//Property_18h_3_3=0x1; 	Address(0x18[7:3])
    SPIWrite 1a28,10,0,7
    SPIWrite 1a29,27,0,7
    SPIWrite 1a2a,00,0,7
    SPIWrite 1a2b,00,0,7
    SPIWrite 0018,00,0,7	//Property_18h_3_3=0x0; 	Address(0x18[7:3])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIWrite 0144,08,0,7	//Property_124h_4_2=0x2; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,08,0,7	//Property_18h_3_3=0x1; 	Address(0x18[7:3])
    SPIWrite 1a2c,10,0,7
    SPIWrite 1a2d,27,0,7
    SPIWrite 1a2e,00,0,7
    SPIWrite 1a2f,00,0,7
    SPIWrite 0018,00,0,7	//Property_18h_3_3=0x0; 	Address(0x18[7:3])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIWrite 0144,08,0,7	//Property_124h_4_2=0x2; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,08,0,7	//Property_18h_3_3=0x1; 	Address(0x18[7:3])
    SPIWrite 1a30,10,0,7
    SPIWrite 1a31,27,0,7
    SPIWrite 1a32,00,0,7
    SPIWrite 1a33,00,0,7
    SPIWrite 0018,00,0,7	//Property_18h_3_3=0x0; 	Address(0x18[7:3])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIWrite 0144,08,0,7	//Property_124h_4_2=0x2; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,08,0,7	//Property_18h_3_3=0x1; 	Address(0x18[7:3])
    SPIWrite 1a34,10,0,7
    SPIWrite 1a35,27,0,7
    SPIWrite 1a36,00,0,7
    SPIWrite 1a37,00,0,7
    SPIWrite 0018,00,0,7	//Property_18h_3_3=0x0; 	Address(0x18[7:3])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIWrite 0144,08,0,7	//Property_124h_4_2=0x2; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,08,0,7	//Property_18h_3_3=0x1; 	Address(0x18[7:3])
    SPIWrite 03bf,00,0,7
    SPIWrite 03be,03,0,7
    SPIWrite 03bd,d0,0,7
    SPIWrite 03bc,90,0,7
    SPIWrite 03c3,00,0,7
    SPIWrite 03c2,04,0,7
    SPIWrite 03c1,29,0,7
    SPIWrite 03c0,57,0,7
    SPIWrite 03d0,05,0,7
    SPIWrite 03ac,1d,0,7
    SPIWrite 03ad,1d,0,7
    SPIWrite 1abd,03,0,7
    SPIWrite 1402,00,0,7
    SPIWrite 1403,00,0,7
    SPIWrite 1401,00,0,7
    SPIWrite 0018,00,0,7	//Property_18h_3_3=0x0; 	Address(0x18[7:3])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIWrite 0144,08,0,7	//Property_124h_4_2=0x2; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,08,0,7	//Property_18h_3_3=0x1; 	Address(0x18[7:3])
    SPIWrite 1b5f,0c,0,7
    SPIWrite 0018,00,0,7	//Property_18h_3_3=0x0; 	Address(0x18[7:3])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIWrite 0144,08,0,7	//Property_124h_4_2=0x2; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,08,0,7	//Property_18h_3_3=0x1; 	Address(0x18[7:3])
    SPIWrite 1b6f,04,0,7
    SPIWrite 0018,00,0,7	//Property_18h_3_3=0x0; 	Address(0x18[7:3])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIWrite 0144,08,0,7	//Property_124h_4_2=0x2; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,08,0,7	//Property_18h_3_3=0x1; 	Address(0x18[7:3])
    SPIWrite 1e7d,04,0,7
    SPIWrite 0018,00,0,7	//Property_18h_3_3=0x0; 	Address(0x18[7:3])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIWrite 0144,08,0,7	//Property_124h_4_2=0x2; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,08,0,7	//Property_18h_3_3=0x1; 	Address(0x18[7:3])
    SPIWrite 1a5e,c0,0,7
    SPIWrite 1a5f,01,0,7
    SPIWrite 0018,00,0,7	//Property_18h_3_3=0x0; 	Address(0x18[7:3])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIWrite 0144,08,0,7	//Property_124h_4_2=0x2; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,08,0,7	//Property_18h_3_3=0x1; 	Address(0x18[7:3])
    SPIWrite 1b14,c0,0,7
    SPIWrite 1b15,01,0,7
    SPIWrite 0018,00,0,7	//Property_18h_3_3=0x0; 	Address(0x18[7:3])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x1; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,90,0,7	//MACRO_OPCODE=0x90; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    
    //STEP: mcuWakeUp/step1 
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIWrite 0144,00,0,7	//Property_124h_4_2=0x0; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,01,0,7	//Property_18h_0_0=0x1; 	Address(0x18[7:0])
    SPIBurstWrite 0020,[00, 00, 00, 00, 69, 1a, 03, 00, b5, a4, 6d, ea, 7d, 19, ce, ca, 01, 07, 08, 12, 14, 00, 01, 0a, 07, 13, f8, 2a, 01, 0a, 07, 13, f8, 2a, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, c5, 4a, 0c, 23, 10, fb, 03, f0, 00, eb, 81, 00, 10, 58, 90, f8, b8, 14, 00, eb, 41, 00, b0, f8, bc, 04, 70, 47, ab, 4a, 03, 78, 11, 68, 4b, 40, 03, f0, 07, 03, 59, 40, 11, 60, 40, 78, a2, f1, 00, 42, 11, 68, 48, 40, 00, f0, 07, 00, 48, 40, 10, 60, 70, 47, 38, b5, b5, 4c, 13, 78, 0c, 25, 10, fb, 05, f0, 00, eb, 81, 00, 20, 58, 80, f8, aa, 34, 51, 78, d0, f8, 14, 2b, 61, f3, 8b, 22, c0, f8, 14, 2b, 38, bd, f8, b5, ab, 4c, ac, 4b, 0c, 25, 4f, f4, 25, 77, dc, 26, 10, fb, 05, f5, 10, fb, 07, f7, 05, eb, 81, 00, 11, fb, 06, 71, 20, 58, 59, 5c, 0b, 09, 24, bf, 13, 88, a0, f8, 38, 34, cb, 08, 24, bf, 53, 88, a0, f8, 34, 34, 89, 09, 24, bf, 91, 88, a0, f8, 3e, 14, 91, 79, 80, f8, a0, 14, f8, bd, 2d, e9, f0, 47, 08, af, 3c, 79, 99, 46, 15, 46, 8a, 46, 06, 46, 8c, b9, 36, 01, 30, 46, eb, f7, 99, fc, 80, 46, 30, 46, eb, f7, 95, fc, 08, eb, 88, 08, 05, 21, 10, fb, 01, f0, c0, f3, 00, 20, 00, eb, 68, 20, 0e, e0, eb, f7, 89, fc, 80, 46, 30, 46, eb, f7, 85, fc, 08, eb, 88, 08, 05, 21, 10, fb, 01, f0, c0, f3, 40, 20, 00, eb, a8, 20, 39, 78, a5, eb, 09, 05, 00, b2, 6d, 18, a0, eb, 05, 10, a0, eb, 0a, 00, 00, b2, 41, 42, c1, f3, 80, 00, 00, eb, e1, 00, 80, b2, b0, f5, 80, 7f, a8, bf, ff, 20, 00, 2c, 19, bf, c8, 49, 31, f8, 10, 00, c7, 49, 31, f8, 10, 00, bd, e8, f0, 87, 2d, e9, f0, 4f, 76, 4e, 4f, f4, 25, 7c, 82, 46, dc, 24, 89, 46, 1a, fb, 0c, f0, 19, fb, 04, 05, ad, 19, 28, 89, ad, f1, 24, 0d, 02, 90, e8, 88, 03, 90, a8, 89, 04, 90, 95, f8, 38, 00, 95, f8, 3d, 70, 05, 90, 50, 46, ff, f7, 44, ff, 4f, f0, 00, 08, 06, 21, 43, 46, b5, 4a, 06, 90, 1a, fb, 01, f1, cd, f8, 1c, 80, 0f, 30, 08, 93, 01, eb, 49, 01, 4f, ea, 20, 1b, 02, eb, c1, 04, b8, f1, 01, 0f, 3f, d1, 28, 78, 95, f8, 3c, 60, c1, 08, 13, d3, 00, 96, 07, 98, 01, 90, 06, 99, 05, 9a, 03, 98, 3b, 46, ff, f7, 78, ff, 57, 4b, 03, 90, dc, 21, 4f, f4, 25, 70, 1a, fb, 00, f0, 19, fb, 01, 05, ed, 18, 28, 78, 01, 09, 12, d3, 00, 96, 08, 98, 01, 90, 06, 99, 05, 9a, 02, 98, 3b, 46, ff, f7, 62, ff, 4c, 4b, 02, 90, dc, 21, 4f, f4, 25, 70, 1a, fb, 00, f0, 19, fb, 01, 00, 18, 5c, 80, 09, 09, d3, 00, 96, 01, 20, 01, 90, 06, 99, 05, 9a, 04, 98, 3b, 46, ff, f7, 4d, ff, 04, 90, 5e, 44, 76, 1c, f7, b2, 40, 2f, a8, bf, 3f, 27, 02, 98, 03, 9e, a7, 71, 08, f1, 01, 08, 20, 80, 04, 9b, 66, 80, b8, f1, 02, 0f, a3, 80, 04, f1, 08, 04, ae, db, 09, b0, bd, e8, f0, 8f, f8, b5, c9, 4c, 33, 4b, 8a, 00, 0c, 25, 10, fb, 05, 25, 27, 78, 5b, 59, 00, 26, 00, 2f, 08, bf, 35, 1c, 0c, d0, d3, f8, e8, 45, d3, f8, e8, 55, c4, f3, 80, 14, c5, f3, 80, 15, ac, 42, 18, bf, b7, f1, 01, 07, f2, d1, bd, 4f, 03, 23, 10, fb, 03, f3, 5c, 18, e4, 19, 27, 78, bd, 42, 1c, d0, c5, 4e, 37, 78, 01, 2f, 4f, f0, 01, 06, 0d, d0, c3, 4f, 3f, 78, 01, 2f, 11, d1, c2, 4f, 05, eb, 43, 03, 02, eb, 43, 02, 2b, 46, d2, 19, 00, f0, db, fe, 07, e0, 68, 4a, 5b, 18, 05, eb, 43, 03, 02, eb, c3, 02, ff, f7, d1, fe, 25, 70, 30, 46, f8, bd, c0, 46, 44, 27, 10, 68, b4, 48, 2d, e9, f0, 4f, 00, 78, ad, f1, 34, 0d, 06, 90, 00, 20, 07, 90, 0d, f1, 0f, 07, 08, 90, 84, 46, 09, 90, a0, 48, 0a, 4a, 08, 9b, c5, 4e, 07, 9c, 0c, eb, 00, 01, 00, 25, 49, 1e, 98, 18, 06, 4b, 05, 91, 66, 44, 29, 46, a0, f1, 04, 0b, 07, f8, 01, 1f, e4, 18, dc, 3c, 04, e0, c0, 46, a8, 75, 02, 00, e0, ab, 00, 20, dc, 34, 5b, f8, 04, 0f, 94, f8, 3d, 10, d0, f8, 98, a4, 05, 9a, 94, f8, 38, 30, 94, f8, 3c, 90, 94, f8, 7a, 80, 0a, 91, ff, 20, 0b, 93, 29, 46, 02, f8, 01, 0f, 09, 98, 05, 92, ff, f7, 58, fe, 06, 99, 0a, f0, 01, 02, 11, 40, 01, 29, 0d, d1, b8, f1, 00, 0f, 0a, d1, 0a, 9a, 0b, 9b, 0f, 30, a2, eb, 09, 02, 03, eb, 20, 10, 90, 42, a8, bf, 01, 20, 00, da, 00, 20, 01, 29, 30, 70, 04, d1, 39, 78, 01, 20, a8, 40, 08, 43, 38, 70, 6d, 1c, 76, 1c, 03, 2d, c6, db, 08, 99, 09, 98, 07, 9e, 0c, 31, 0c, f1, 03, 0c, 40, 1c, 08, 91, 02, 28, 09, 90, 06, f5, 25, 71, 07, 91, 9e, db, 04, a8, ff, f7, 34, fe, 00, 26, 4f, f0, dc, 09, 37, 46, df, f8, 4c, 82, 91, 4d, 00, 24, ad, 19, 15, f8, 01, 0b, 18, bb, 01, 21, 07, eb, 47, 00, 8d, f8, 01, 10, 00, 19, 09, fb, 00, 80, c3, 88, 01, 89, ad, f8, 0a, 30, 83, 89, ad, f8, 08, 10, 6a, 46, ad, f8, 0c, 30, 90, f8, 3d, 30, 90, f8, 38, 00, 8d, f8, 0e, 30, 21, 46, 8d, f8, 00, 00, 38, 46, ff, f7, 1c, fe, 02, aa, 38, 46, 21, 46, ff, f7, 2a, fe, 12, e0, 38, 46, 21, 46, ff, f7, 91, fe, 00, 20, 21, 46, 6a, 46, 8d, f8, 00, 00, 03, 46, 8d, f8, 01, 30, 38, 46, ff, f7, 07, fe, 38, 46, 21, 46, ff, f7, 05, ff, 64, 1c, 03, 2c, c2, db, 7f, 1c, f6, 1c, 02, 2f, bb, db, 0d, b0, bd, e8, f0, 8f, c0, 46, 18, 70, 02, 00, 18, 6e, 02, 00, 9c, 22, 01, 20, 2d, e9, b8, 41, 51, 48, 6b, 4a, 77, 4c, 6b, 4d, df, f8, b0, 81, 07, 78, 12, 78, 4c, 48, 52, 08, 18, d2, 00, 21, 01, 70, 5f, b9, 4f, f0, 00, 70, 80, 34, 20, 60, 66, 49, c8, f8, 7c, 11, 66, 4a, c8, f8, a0, 21, 61, 4f, 2f, 60, 64, 48, c8, f8, 98, 01, 64, 48, c8, f8, b8, 01, ff, f7, 16, ff, bd, e8, b8, 81, 01, 2f, 16, d0, 01, 21, 01, 70, ff, f7, 0e, ff, 5e, 48, 28, 60, 5f, 4f, c8, f8, a0, 71, 5d, 49, c8, f8, 7c, 11, 5d, 4b, c8, f8, 98, 31, 5d, 4a, c8, f8, b8, 21, 4f, f0, 00, 75, 25, 60, bd, e8, b8, 81, 08, 20, 08, 70, bd, e8, b8, 81, 38, b5, 0d, 46, d2, f7, e1, ff, 2e, 48, 48, 49, 00, 78, 0c, 78, 01, 28, 0a, d0, 2c, 48, 00, 78, 01, 28, 08, d1, 00, f0, fe, fd, 20, 46, 29, 46, 00, f0, a9, fe, 38, bd, ff, f7, e0, fe, 38, bd, 08, b5, d3, f7, c0, fa, ff, f7, da, fe, 08, bd, 08, b5, d3, f7, 34, fb, ff, f7, d4, fe, 08, bd, f8, b5, 0c, 46, d3, f7, d7, fc, 4f, f0, 22, 40, 90, f8, b4, e3, 43, 4b, 90, f8, b5, c3, 01, 25, 08, 22, 00, 20, 01, 46, 05, fa, 00, f6, 1e, ea, 06, 0f, 07, d0, bc, f1, 01, 0f, 03, d1, 1f, 5c, 07, b9, 22, 70, 00, e0, 21, 70, 40, 1c, 04, 28, ef, db, f8, bd, c0, 46, 2b, 22, 01, 20, a4, 23, 01, 20, 38, b5, 0d, 46, d4, f7, be, f8, 09, 48, 24, 49, 00, 78, 0c, 78, 01, 28, 0a, d0, 07, 48, 00, 78, 01, 28, 08, d1, 00, f0, b5, fd, 20, 46, 29, 46, 00, f0, 60, fe, 38, bd, ff, f7, 97, fe, 38, bd, ce, 23, 01, 20, cc, 23, 01, 20, 3c, 23, 01, 20, 2d, e9, f0, 47, df, f8, 50, a0, 4f, f0, 00, 09, c8, 46, 1e, e0, 00, 26, 4f, f0, 01, 09, 37, 46, 06, eb, 0a, 04, 00, 25, 64, 1e, 14, f8, 01, 0f, 01, 28, 07, d1, 38, 46, 29, 46, ff, f7, 32, fe, 01, 28, 08, bf, 4f, f0, 00, 09, 6d, 1c, 03, 2d, f0, db, 7f, 1c, f6, 1c, 02, 2f, e8, db, 08, f1, 01, 00, 5f, fa, 80, f8, 58, ea, 09, 00, dd, d0, bd, e8, f0, 87, 9c, 23, 01, 20, e0, ab, 00, 20, b4, 03, 00, a2, 68, da, 00, 20, 2b, fd, 01, 00, d4, f7, 00, 20, dd, 34, 00, 00, 29, 47, 00, 00, bd, 3b, 00, 00, c9, 3a, 00, 00, e1, 05, 03, 00, 13, 05, 03, 00, a5, 05, 03, 00, 4f, 05, 03, 00, 43, 05, 03, 00, 00, e1, 00, e0, 22, 02, 01, 20, 2d, e9, f8, 4f, d2, f7, b0, ff, 4f, f0, dc, 0a, 00, 25, 4f, f0, 22, 41, 91, f8, b4, 03, 91, f8, b6, 93, 00, 90, 91, f8, b7, 83, 91, f8, b8, c3, 91, f8, b9, 43, 91, f8, ba, 33, 91, f8, bb, e3, 00, 99, 01, 20, a8, 40, 01, 42, 00, f0, be, 80, be, 4f, 6a, 10, 05, f0, 01, 01, 02, eb, 42, 00, 40, 18, c0, 19, 90, f9, 01, 00, 7f, 28, 00, f0, b1, 80, b9, 49, d0, 4f, 0e, 78, 09, eb, 40, 09, b9, f5, 80, 7f, 07, eb, 45, 01, 07, da, b9, f1, 00, 0f, 54, bf, 5f, fa, 89, f9, 4f, f0, 00, 09, 01, e0, 4f, f0, ff, 09, 40, 00, 00, eb, 08, 07, b7, f5, 80, 7f, 06, da, 00, 2f, 54, bf, 5f, fa, 87, f8, 4f, f0, 00, 08, 01, e0, 4f, f0, ff, 08, 00, eb, 0c, 07, b7, f5, 80, 7f, 06, da, 00, 2f, 54, bf, 5f, fa, 87, fc, 4f, f0, 00, 0c, 01, e0, 4f, f0, ff, 0c, 04, 19, b4, f5, 80, 7f, 04, da, 00, 2c, 54, bf, e4, b2, 00, 24, 00, e0, ff, 24, c3, 18, b3, f5, 80, 7f, 04, da, 00, 2b, 54, bf, db, b2, 00, 23, 00, e0, ff, 23, 70, 44, b0, f5, 80, 7f, 06, da, 00, 28, 54, bf, 5f, fa, 80, fe, 4f, f0, 00, 0e, 01, e0, 4f, f0, ff, 0e, 08, 78, 04, 28, 5b, d0, b1, 08, 0d, d3, ba, 49, 31, f8, 19, 10, 57, 46, 4f, f4, 25, 7b, 10, fb, 07, f7, 0b, fb, 02, 77, df, f8, d0, b2, 2b, f8, 07, 10, f1, 08, 0d, d3, b2, 49, 31, f8, 18, 10, 57, 46, 4f, f4, 25, 7b, 10, fb, 07, f7, 0b, fb, 02, 77, df, f8, b8, b2, 2b, f8, 07, 10, 31, 09, 0d, d3, aa, 49, 31, f8, 1c, 10, 57, 46, 4f, f4, 25, 7b, 10, fb, 07, f7, 0b, fb, 02, 77, df, f8, 9c, b2, 2b, f8, 07, 10, 71, 09, 0d, d3, a2, 49, 31, f8, 14, 10, 57, 46, 4f, f4, 25, 7b, 10, fb, 07, f7, 0b, fb, 02, 77, df, f8, 80, b2, 2b, f8, 07, 10, b1, 09, 0c, d3]
    SPIWrite 0018,00,0,7	//Property_18h_0_0=0x0; 	Address(0x18[7:0])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,08,0,7	//MACRO_OPERAND_REG0=0x8000000; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 00a7,00,0,7	//MACRO_OPERAND_REG1=0x0; 	Address(0xa4[7:0],0xa5[7:0],0xa6[7:0],0xa7[7:0],0xa8[7:0])
    SPIWrite 00a6,00,0,7
    SPIWrite 00a5,00,0,7
    SPIWrite 00a4,00,0,7
    SPIWrite 0193,78,0,7	//MACRO_OPCODE=0x78; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0144,00,0,7	//Property_124h_4_2=0x0; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,01,0,7	//Property_18h_0_0=0x1; 	Address(0x18[7:0])
    SPIBurstWrite 0020,[9f, 49, 31, f8, 13, 10, 10, fb, 0a, f7, 4f, f4, 25, 7b, 0b, fb, 02, 77, df, f8, 68, b2, 2b, f8, 07, 10, f1, 09, 0a, d3, 98, 49, 98, 4f, 31, f8, 1e, 10, 10, fb, 0a, f0, 4f, f4, 25, 76, 06, fb, 02, 00, 39, 52, 6d, 1c, 04, 2d, ff, f6, 38, af, 4f, f4, 25, 7b, 00, 20, 00, 9f, 02, 1d, 01, 21, 91, 40, 0f, 42, 00, f0, ab, 80, cd, 49, 0f, 5c, 00, 2f, 40, f0, a6, 80, 56, 4a, 00, eb, 40, 01, 51, 56, 7f, 29, 00, f0, 9f, 80, 53, 4a, cf, 4f, 15, 78, 09, eb, 41, 09, b9, f5, 80, 7f, 07, eb, 40, 02, 07, da, b9, f1, 00, 0f, 54, bf, 5f, fa, 89, f9, 4f, f0, 00, 09, 01, e0, 4f, f0, ff, 09, 49, 00, 01, eb, 08, 06, b6, f5, 80, 7f, 06, da, 00, 2e, 54, bf, 5f, fa, 86, f8, 4f, f0, 00, 08, 01, e0, 4f, f0, ff, 08, 01, eb, 0c, 06, b6, f5, 80, 7f, 06, da, 00, 2e, 54, bf, 5f, fa, 86, fc, 4f, f0, 00, 0c, 01, e0, 4f, f0, ff, 0c, 0c, 19, b4, f5, 80, 7f, 04, da, 00, 2c, 54, bf, e4, b2, 00, 24, 00, e0, ff, 24, cb, 18, b3, f5, 80, 7f, 04, da, 00, 2b, 54, bf, db, b2, 00, 23, 00, e0, ff, 23, 71, 44, b1, f5, 80, 7f, 06, da, 00, 29, 54, bf, 5f, fa, 81, fe, 4f, f0, 00, 0e, 01, e0, 4f, f0, ff, 0e, 11, 78, 04, 29, 49, d0, aa, 08, 0a, d3, 55, 4a, 32, f8, 19, 20, 56, 46, 5f, 46, 11, fb, 06, f6, 07, fb, 00, 66, 4f, 4f, ba, 53, ea, 08, 0a, d3, 4e, 4a, 32, f8, 18, 20, 56, 46, 5f, 46, 11, fb, 06, f6, 07, fb, 00, 66, 4b, 4f, ba, 53, 2a, 09, 0a, d3, 48, 4a, 32, f8, 1c, 20, 56, 46, 5f, 46, 11, fb, 06, f6, 07, fb, 00, 66, 45, 4f, ba, 53, 6a, 09, 08, d3, 41, 4a, 44, 4f, 32, f8, 14, 20, 11, fb, 0a, f6, 0b, fb, 00, 66, ba, 53, aa, 09, 08, d3, 41, 4a, 3f, 4f, 32, f8, 13, 20, 11, fb, 0a, f6, 0b, fb, 00, 66, ba, 53, ea, 09, 0a, d3, 3b, 4a, 3c, 4e, 32, f8, 1e, 20, 55, 46, 5f, 46, 11, fb, 05, f1, 07, fb, 00, 11, 72, 52, 40, 1c, 02, 28, ff, f6, 4a, af, bd, e8, f8, 8f, c0, 46, 94, 23, 01, 20, 34, 1f, 01, 20, 2d, e9, f8, 4f, d3, f7, 54, fd, 4f, f0, 22, 40, 90, f8, b4, e3, df, f8, 40, 92, df, f8, 44, b0, df, f8, 94, c0, 6e, 27, 4f, f4, a5, 78, 00, 22, 15, 46, 90, f8, b5, 13, 90, f8, b6, 03, 8d, f8, 00, 10, ff, 26, 8d, f8, 01, 00, 01, 20, 90, 40, 1e, ea, 00, 0f, 2e, d0, 85, 4c, 51, 10, 02, f0, 01, 03, 01, eb, 41, 00, c0, 18, 00, 19, 90, f9, 01, 00, 7f, 28, 22, d0, 01, e0, 06, d6, 00, 20, 1b, f8, 12, 30, 04, 2b, 1b, d0, 13, fb, 07, f3, 08, fb, 01, 3a, 44, 00, 69, 46, 02, 23, 09, eb, 4a, 0a, 08, 78, 00, 19, b0, f5, 80, 7f, 04, da, 00, 28, 54, bf, 08, 70, 0d, 70, 00, e0, 0e, 70, 11, f8, 01, 0b, 3c, f8, 10, 00, 5b, 1e, 2a, f8, 02, 0b, ec, d1, 52, 1c, 04, 2a, c8, db, bd, e8, f8, 8f, c0, 46, e2, ab, 00, 20, 18, 6e, 02, 00, e4, ab, 00, 20, e6, ab, 00, 20, e8, ab, 00, 20, ea, ab, 00, 20, 18, 70, 02, 00, ec, ab, 00, 20, 2d, e9, f8, 4f, d3, f7, a0, fd, 00, 24, 4f, f0, 01, 08, 4f, f4, 25, 77, 4f, f0, 22, 41, 91, f8, b4, 03, 5d, 4b, df, f8, 78, c1, df, f8, 70, e1, 91, f8, b6, b3, 91, f9, bc, 13, 00, 90, 48, 00, 00, 9d, 08, fa, 04, f2, 15, 42, 43, d0, 62, 10, 04, f0, 01, 06, 02, eb, 42, 05, ad, 19, 51, 4e, ad, 19, 95, f9, 01, 50, 0c, eb, 44, 06, 7f, 2d, 0a, d1, 80, 28, 05, da, 10, f1, 80, 0f, b8, bf, 6f, f0, 7f, 00, 00, e0, 7f, 20, 35, 78, 26, e0, a9, 46, 09, eb, d9, 79, a1, eb, 69, 01, 80, 29, 06, da, 11, f1, 80, 0f, ac, bf, 49, b2, 6f, f0, 7f, 01, 00, e0, 7f, 21, 40, 1b, 00, b2, 80, 28, 05, da, 10, f1, 80, 0f, b8, bf, 6f, f0, 7f, 00, 00, e0, 7f, 20, 35, 78, 04, 2d, 0d, d0, bb, f1, 01, 0f, 0a, d1, dc, 26, 15, fb, 06, f6, 07, fb, 02, 66, 0e, f8, 06, 10, 02, eb, 42, 02, 52, 19, 98, 54, 64, 1c, 04, 2c, b3, db, df, f8, 34, a0, 00, 22, 4f, f0, dc, 09, 00, 9d, 14, 1d, 08, fa, 04, f4, 25, 42, 4e, d0, 1a, f8, 02, 60, 00, 2e, 4a, d1, 29, 4d, 02, eb, 42, 04, 2c, 57, 7f, 2c, 4f, ea, 42, 05, 16, d1, 80, 28, 65, 44, 09, da, 02, e0, c0, 46, 9e, 13, 01, 20, 10, f1, 80, 0f, b8, bf, 6f, f0, 7f, 00, 00, e0, 7f, 20, 2c, 78, 02, eb, 42, 05, 2d, 19, 58, 55, 2e, e0, c0, 46, 64, d6, 00, 20, 26, 46, 06, eb, d6, 76, a1, eb, 66, 01, 1b, 4e, 80, 29, 35, 44, 06, da, 11, f1, 80, 0f, ac, bf, 49, b2, 6f, f0, 7f, 01, 00, e0, 7f, 21, 00, 1b, 00, b2, 80, 28, 05, da, 10, f1, 80, 0f, b8, bf, 6f, f0, 7f, 00, 00, e0, 7f, 20, 2c, 78, 04, 2c, 0c, d0, bb, f1, 01, 0f, 09, d1, 14, fb, 09, f5, 02, eb, 42, 06, 07, fb, 02, 55, 0e, f8, 05, 10, 36, 19, 98, 55, 52, 1c, 02, 2a, a7, db, bd, e8, f8, 8f, c0, 46, 62, ac, 00, 20, 94, 23, 01, 20, 8c, 23, 01, 20, a4, ac, 00, 20, 06, d6, 00, 20, 64, d6, 00, 20, f8, b5, 76, 48, 77, 4b, 04, 68, 44, f0, 40, 01, d2, 4f, 01, 60, 1e, 68, 50, f8, c0, 1c, 72, 48, 00, 91, 01, 68, 41, f0, 01, 01, 01, 60, 01, 68, 00, 25, 21, f0, 02, 01, 01, 60, 02, 68, 3c, 60, c6, f3, 40, 11, 01, eb, 96, 11, 42, f0, 08, 02, 02, 60, 0f, e0, 21, 46, 49, 1e, fd, d1, 00, bf, 5b, 1c, 20, e0, 22, 46, 52, 1e, fd, d1, 00, bf, 6d, 1c, 0d, e0, 64, 1e, fd, d1, 00, bf, 6d, 1c, 13, 24, a9, 42, c0, f2, 00, 04, f6, d8, 02, 68, 00, 25, 22, f0, 08, 02, 02, 60, a9, 42, e9, d8, 08, 33, 01, 68, 1d, 68, 41, f0, 02, 01, c5, f3, 40, 12, 00, 23, 01, 60, 02, eb, 95, 10, 98, 42, d6, d8, f8, bd, 52, 4a, c9, 4b, 11, 68, 06, 20, 21, f0, 01, 01, 11, 60, 53, f8, 04, 2b, d2, f8, 18, 11, 40, 1e, 21, f4, 00, 71, c2, f8, 18, 11, f5, d1, d8, 48, 01, 68, 4a, 4a, d1, f8, 04, 05, 20, f0, 3f, 00, c1, f8, 04, 05, 12, 68, 00, 21, c2, f3, 40, 10, 00, eb, 92, 10, 06, e0, 13, 22, c0, f2, 00, 02, 52, 1e, fd, d1, 00, bf, 49, 1c, 88, 42, f6, d8, 9b, 48, 3c, 49, 00, 68, 08, 60, 70, 47, 3b, 49, 01, 28, f8, b5, 09, d0, 0a, 68, 22, f4, 60, 02, 02, f5, 00, 12, 0a, 60, 0a, 68, 22, f4, e0, 12, 08, e0, 0a, 68, 22, f4, 60, 02, 0a, 60, 0a, 68, 22, f4, e0, 12, 02, f5, 80, 22, 30, 4d, 0a, 60, 00, 23, 2a, 1d, 0b, 75, 16, 68, 0c, 68, 1f, 46, c6, f3, 40, 12, 24, f0, 02, 04, 02, eb, 96, 12, 0c, 60, 0f, e0, 34, 46, 64, 1e, fd, d1, 00, bf, 5b, 1c, 1d, e0, 37, 46, 7f, 1e, fd, d1, 00, bf, 6d, 1c, 13, e0, 76, 1e, fd, d1, 00, bf, 7f, 1c, 13, 26, ba, 42, c0, f2, 00, 06, f6, d8, 08, 35, 0c, 68, 2f, 68, 44, f0, 02, 04, c7, f3, 40, 1c, 1d, 46, 0c, 60, 0c, eb, 97, 14, ac, 42, e3, d8, 01, 24, 0c, 75, 9a, 42, d9, d8, b1, f9, 10, 10, 01, 28, 0c, bf, c1, f5, 40, 61, a1, f5, 80, 61, 08, b2, f8, bd, af, 4a, b2, f9, 00, 20, 48, 43, 00, 28, cc, bf, 00, eb, 62, 00, a0, eb, 62, 00, 90, fb, f2, f0, 70, 47, 03, 46, 00, 28, b8, bf, 40, 42, 49, b2, 01, 22, 49, 1e, c9, b2, 8a, 40, 51, 1e, 81, 42, 38, bf, 08, 1c, 00, 2b, 48, bf, 10, 44, 70, 47, c0, 00, 03, ad, 00, 05, 02, ac, 5c, 23, 01, 20, 2d, e9, f0, 4f, df, f8, 74, 82, d8, f8, 00, 32, 0c, 46, 81, 46, 01, 21, 00, 20, 0a, 46, ad, f1, 1c, 0d, 98, 47, ff, f7, fc, fe, 48, 46, 00, 2c, 05, 94, 00, f0, f7, 80, df, f8, 54, 82, 95, 4f, 40, 1e, 4f, f0, 00, 0b, 04, 90, 04, 98, 66, 4b, 03, 25, 06, 26, 10, f8, 01, cf, 04, 90, 9c, fb, f5, f2, 53, f8, 04, 1b, d1, f8, 18, 01, 20, f4, 00, 70, c1, f8, 18, 01, 08, 6e, 76, 1e, 20, f0, 00, 70, 08, 66, f1, d1, 5b, 48, 50, f8, 2c, 40, d4, f8, 18, 01, 40, f4, 00, 70, c4, f8, 18, 01, 20, 6e, 40, f0, 80, 60, 20, 66, 20, 68, 01, 2a, 00, 90, 0c, d0, d8, f8, 00, 00, 20, f0, 38, 00, 38, 30, c8, f8, 00, 00, d8, f8, 00, 00, 20, f0, 07, 00, c0, 1d, 0b, e0, d8, f8, 00, 00, 20, f0, 38, 00, 30, 30, c8, f8, 00, 00, d8, f8, 00, 00, 20, f0, 07, 00, 80, 1d, c8, f8, 00, 00, 00, 20, ff, f7, 23, ff, 05, 46, 01, 20, ff, f7, 1f, ff, 28, 49, 4d, 60, 0e, 46, b0, 60, 21, 6e, 21, f0, 80, 61, 21, 66, 21, 6e, 41, f0, 00, 71, 21, 66, 61, 6e, 2b, 18, 4f, ea, 63, 0a, 00, 26, c1, f3, c0, 43, 00, 2b, 5d, d1, 35, 46, b1, 46, 23, e0, 28, 46, ff, f7, 04, ff, b7, f9, 00, 10, aa, eb, 00, 00, ff, f7, 55, ff, 36, 1a, 03, d4, 10, 2e, a8, bf, 0f, 26, 04, e0, 16, f1, 0f, 0f, b8, bf, 6f, f0, 0e, 06, 30, 46, 05, 21, ff, f7, 53, ff, d4, f8, 80, 10, 60, f3, 1c, 61, c4, f8, 80, 10, 20, 68, 09, f1, 01, 03, 5f, fa, 83, f9, 01, 90, b8, 79, 48, 45, d8, dc, 2e, 46, b0, 42, 59, dd, 01, 20, ff, f7, da, fe, b7, f9, 02, 10, aa, eb, 00, 00, ff, f7, 2b, ff, 2d, 18, 06, d4, 08, 2d, a8, bf, 07, 25, 07, e0, c0, 46, 78, 23, 01, 20, 15, f1, 07, 0f, b8, bf, 6f, f0, 06, 05, 00, 21, 00, 2d, d8, bf, 01, 21, 20, 6f, 20, f4, 00, 50, 40, ea, 41, 30, 20, 67, 29, 46, 00, 29, b8, bf, 49, 42, d4, f8, 84, 00, 61, f3, 8c, 20, c4, f8, 84, 00, b8, 79, 21, 68, 76, 1c, f6, b2, 02, 91, cc, e7, 35, 46, 23, e0, 01, 20, ff, f7, a7, fe, b7, f9, 00, 10, aa, eb, 00, 00, ff, f7, f8, fe, 36, 1a, 05, d4, 10, 2e, a8, bf, 0f, 26, 06, e0, c0, 75, 02, 00, 16, f1, 0f, 0f, b8, bf, 6f, f0, 0e, 06, 30, 46, 05, 21, ff, f7, f4, fe, d4, f8, 80, 10, 60, f3]
    SPIWrite 0018,00,0,7	//Property_18h_0_0=0x0; 	Address(0x18[7:0])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,08,0,7	//MACRO_OPERAND_REG0=0x8000000; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 00a7,00,0,7	//MACRO_OPERAND_REG1=0x800; 	Address(0xa4[7:0],0xa5[7:0],0xa6[7:0],0xa7[7:0],0xa8[7:0])
    SPIWrite 00a6,00,0,7
    SPIWrite 00a5,08,0,7
    SPIWrite 00a4,00,0,7
    SPIWrite 0193,78,0,7	//MACRO_OPCODE=0x78; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0144,00,0,7	//Property_124h_4_2=0x0; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,01,0,7	//Property_18h_0_0=0x1; 	Address(0x18[7:0])
    SPIBurstWrite 0020,[1c, 61, c4, f8, 80, 10, 20, 68, 6d, 1c, ed, b2, 03, 90, b8, 79, a8, 42, d8, dc, 20, 6e, 05, 9e, 0b, f1, 01, 0b, 20, f0, 00, 70, 5e, 45, 20, 66, 3f, f7, 10, af, ff, f7, 48, fe, 17, 48, d0, f8, 04, 32, 01, 21, 0a, 46, 00, 20, 98, 47, 07, b0, bd, e8, f0, 8f, c4, 23, 01, 20, 01, 22, 49, 1e, 8a, 40, 01, 46, 50, 1e, 11, 42, 01, ea, 00, 00, 18, bf, 40, 42, 70, 47, 01, 46, 1c, b5, 00, 20, 01, 24, 02, 46, 04, fa, 02, f3, 19, 42, 03, d0, 43, 1c, 00, f8, 0d, 20, d8, b2, 52, 1c, 06, 2a, f4, db, 18, b1, 01, 46, 68, 46, ff, f7, c6, fe, 1c, bd, c0, 46, 58, 23, 01, 20, 90, d6, 00, 20, 04, 05, 02, ac, 54, 23, 01, 20, 38, b5, b0, 4c, 0c, 25, 10, fb, 05, f0, 00, eb, 81, 00, 20, 58, 01, 2b, 06, d0, 51, 78, 80, f8, a0, 14, 11, 78, 80, f8, aa, 14, 38, bd, 11, 78, 80, f8, aa, 14, 51, 78, 80, f8, a0, 14, 38, bd, f8, b5, c5, 4a, df, f8, 0c, e3, 84, 46, 4f, f4, 25, 73, dc, 20, 1c, fb, 03, f3, 11, fb, 00, 30, 80, 18, 90, f8, 38, 60, 90, f8, 3d, 70, be, 4a, 00, 24, 06, 20, 1c, fb, 00, f3, 03, eb, 41, 03, 03, 20, 02, eb, 43, 02, 01, 2c, 0b, d0, 1c, fb, 00, 13, 1e, f8, 03, 50, f3, 1b, 5b, 19, 5b, b2, 00, 2b, 48, bf, 00, 23, db, b2, 01, e0, 3d, 46, 33, 46, 13, 70, 64, 1c, 55, 70, 02, 2c, 02, f1, 02, 02, e8, db, f8, bd, 2d, e9, fe, 4f, ad, 48, df, f8, a8, 92, 90, f8, 00, a0, 4f, f0, 00, 0e, 4f, f0, 01, 08, 0d, f1, 01, 04, 76, 46, 35, 46, a8, 48, 83, 4f, a6, 49, 33, 18, 0e, eb, 07, 02, a3, f1, 01, 0c, 00, 27, 89, 19, 12, 1f, 04, f8, 01, 7f, 38, 46, 52, f8, 04, 3f, d3, f8, 98, 34, 03, f0, 01, 03, 0a, ea, 03, 07, ff, 23, 01, 2f, 0c, f8, 01, 3f, 0d, d1, dc, 23, 4f, f4, 25, 7b, 43, 43, 0b, fb, 05, 33, 4b, 44, 93, f8, 7a, 30, 00, 2b, 08, bf, 81, f8, 00, 80, 01, d0, 00, 23, 0b, 70, 01, 2f, 04, d1, 27, 78, 08, fa, 00, f3, 3b, 43, 23, 70, 40, 1c, 49, 1c, 03, 28, d7, db, 6d, 1c, f6, 1c, 0e, f1, 0c, 0e, 02, 2d, c3, db, 0d, f1, 02, 00, fe, f7, 40, ff, 00, 26, 4f, f0, dc, 08, 37, 46, 85, 4d, 00, 24, ad, 19, 15, f8, 01, 0b, 98, b9, 07, eb, 47, 00, 00, 19, 08, fb, 00, 90, 6a, 46, 90, f8, 3d, 10, 90, f8, 38, 00, 8d, f8, 01, 10, 00, 23, 8d, f8, 00, 00, 21, 46, 38, 46, ff, f7, 49, ff, 06, e0, 38, 46, 21, 46, ff, f7, 5c, ff, 38, 46, ff, f7, 2f, f8, 64, 1c, 03, 2c, de, db, 7f, 1c, f6, 1c, 02, 2f, d7, db, bd, e8, fe, 8f, f8, b5, 72, 48, 72, 4a, 7b, 4c, 72, 4e, 74, 4d, 07, 78, 12, 78, 6b, 48, 52, 08, 11, d2, 00, 21, 01, 70, 5f, b9, 4f, f0, 00, 70, 80, 34, 20, 60, 6e, 49, c5, f8, 7c, 11, 6e, 4a, c5, f8, a0, 21, 69, 4f, 37, 60, ff, f7, 67, ff, f8, bd, 01, 2f, 0f, d0, 01, 21, 01, 70, ff, f7, 60, ff, 6a, 4f, c5, f8, a0, 71, 66, 48, 30, 60, 66, 49, c5, f8, 7c, 11, 4f, f0, 00, 73, 23, 60, f8, bd, 08, 20, 08, 70, f8, bd, 2d, e9, f8, 4f, df, f8, 8c, b1, df, f8, c4, a0, df, f8, 44, 81, df, f8, 3c, 91, 02, 46, 4f, f0, dc, 0c, 01, 23, 00, 24, 4f, f4, 25, 7e, 04, 20, 00, 92, 00, 9d, 03, fa, 04, f2, 15, 42, 1d, d0, 1b, f8, 14, 50, 04, 2d, 19, d0, 66, 10, 06, eb, 46, 02, 52, 19, 5a, f8, 22, 70, d7, f8, 98, 74, 7f, 08, 0f, d3, 19, f8, 02, 70, 15, fb, 0c, f5, 0e, fb, 06, 55, 45, 44, 95, f8, 3d, 20, 95, f8, 38, 50, d2, 1b, 95, 42, bc, bf, 08, 70, 4b, 80, 64, 1c, 04, 2c, d9, db, df, f8, 28, b1, 00, 24, 00, 9d, 22, 1d, 03, fa, 02, f2, 15, 42, 1f, d0, 44, 4a, 17, 5d, e7, b9, 1b, f8, 14, 50, 04, 2d, 18, d0, 04, eb, 44, 02, 52, 19, 5a, f8, 22, 60, d6, f8, 98, 64, 76, 08, 0f, d3, 19, f8, 02, 60, 15, fb, 0c, f5, 0e, fb, 04, 55, 45, 44, 95, f8, 3d, 20, 95, f8, 38, 50, 92, 1b, 95, 42, bc, bf, 08, 70, 4b, 80, 64, 1c, 02, 2c, d6, db, bd, e8, f8, 8f, c0, 46, a8, 75, 02, 00, 2d, e9, f8, 43, 89, 46, 24, 4c, df, f8, b4, c0, 1b, 49, 20, 78, 01, 22, 00, 25, 02, fa, 05, f3, 18, 42, 09, d0, 1c, f8, 15, 60, 04, 2e, 05, d0, 67, 78, 6b, 10, 03, eb, 43, 03, 9b, 19, cf, 54, 6d, 1c, 04, 2d, ee, db, df, f8, 8c, 80, df, f8, 8c, e0, 00, 23, 94, 46, 08, 25, 1a, 1d, 0c, fa, 02, f2, 10, 42, 0e, d0, 18, f8, 03, 70, 4f, b9, 1e, f8, 13, 70, 04, 2f, 07, d0, 66, 78, 03, eb, 43, 02, d2, 19, 8e, 54, 01, e0, 89, f8, 00, 50, 5b, 1c, 02, 2b, e8, db, 49, 46, ff, f7, 5a, ff, bd, e8, f8, 83, 84, 23, 01, 20, e0, ab, 00, 20, 3c, 23, 01, 20, cc, 23, 01, 20, 9c, 23, 01, 20, a4, 23, 01, 20, ce, 23, 01, 20, b4, 03, 00, a2, 68, da, 00, 20, 2b, fd, 01, 00, d4, f7, 00, 20, dd, 34, 00, 00, 29, 47, 00, 00, e1, 05, 03, 00, 13, 05, 03, 00, a5, 05, 03, 00, 00, e1, 00, e0, 06, d6, 00, 20, 9e, 13, 01, 20, 64, d6, 00, 20, 2d, e9, f8, 4f, 89, 46, bc, 4a, bc, 49, 80, 46, 4f, ea, 68, 00, b8, 4b, 12, 5c, 09, 88, bb, 48, 9c, 5c, 00, 68, b8, 4a, 03, 46, 4c, 43, 02, eb, c8, 02, 01, 20, 21, 46, 98, 47, df, f8, d8, c2, 4f, ea, 08, 1a, 00, 25, 56, 46, 22, 46, 02, 24, 4f, ea, 12, 1e, 05, eb, 0a, 03, 0c, eb, 06, 00, 02, 27, 63, 44, 90, 30, 03, f5, 20, 7b, 50, f8, 04, 3b, 19, 01, 7f, 1e, b1, fb, f2, f1, 0e, fb, 11, 31, 4b, f8, 08, 1b, f4, d1, 64, 1e, 06, f1, 08, 06, 05, f1, 04, 05, e5, d1, 40, 46, 49, 46, e1, f7, 34, fb, bd, e8, f8, 8f, 10, b5, 04, 46, e1, f7, 2b, fe, a0, 48, 00, 78, 08, bb, a0, 48, 21, 18, 00, eb, 44, 02, 91, f8, fb, 11, 92, f8, 8c, 02, 92, f8, 8d, 22, 00, eb, 42, 02, d2, b2, 19, b9, 00, 21, 00, b1, 01, 21, 0a, 46, 93, 48, 7c, 30, 21, 18, 0b, 78, 10, 46, 01, 2b, 02, d0, 09, 79, 01, 29, 00, d1, 00, 20, 92, 49, 00, eb, 02, 10, 64, 1a, 20, 70, 10, bd, 70, b5, 02, 46, d2, f8, a4, 60, d2, f8, 44, 51, d2, f8, 04, 41, 08, 46, 02, 28, 0d, db, 40, 1e, 01, 21, 02, eb, 81, 03, c3, f8, a4, 60, 40, 1e, c3, f8, 44, 51, 01, f1, 01, 01, c3, f8, 04, 41, f3, d1, 70, bd, 10, b5, 04, 46, 82, 48, 04, 70, 20, 46, e1, f7, 2b, fe, 81, 48, 50, f8, 24, 00, 0f, 21, ff, f7, d9, ff, 10, bd, 2d, e9, f0, 41, 04, 46, 7d, 4d, 7d, 48, 2e, 88, 2b, 80, 00, 68, 90, 46, 0f, 46, 80, 47, 01, 28, 41, 46, 3c, d1, 4f, f0, 29, 42, 92, f8, 77, 00, 40, f0, 08, 00, 82, f8, 77, 00, 92, f8, 82, 00, 00, f0, c3, 00, 0c, 30, 82, f8, 82, 00, 07, eb, 04, 17, 82, f8, 76, 70, 92, f8, 77, 00, 01, f0, 03, 01, 00, f0, fc, 00, 01, 43, 82, f8, 77, 10, 92, f8, 77, 00, 00, f0, fb, 00, 82, f8, 77, 00, 92, f8, 77, 00, 40, f0, 04, 00, 82, f8, 77, 00, 92, f8, 77, 00, 00, f0, f7, 00, 82, f8, 77, 00, 92, f8, 82, 00, 00, f0, c3, 00, 82, f8, 82, 00, 00, 23, 82, f8, 76, 30, 92, f8, 77, 00, 00, f0, fc, 00, 82, f8, 77, 00, 5b, 48, d0, f8, 18, 04, 80, 47, 2e, 80, bd, e8, f0, 81, 70, b5, 53, 4b, 50, 4d, 1b, 78, 05, eb, 63, 04, 5b, 19, 9e, 7a, a5, 79, 54, 4c, 6b, 00, 03, eb, c5, 03, 9b, 19, e3, 5c, 06, 2b, 06, da, 8a, 00, 83, 08, b2, fb, f0, f0, 03, fb, 10, 10, 70, bd, e2, f7, d7, f8, 70, bd, 2d, e9, f0, 43, 4f, f0, 00, 08, 04, 46, 15, 46, ad, f1, 14, 0d, 81, f8, 00, 80, e2, f7, e7, f8, 3e, 4a, 50, 78, 01, 21, 01, fa, 04, f3, 03, 42, 64, d0, 44, 4b, 42, 4e, 14, 20, a7, 18, 14, fb, 00, f0, 1b, 58, 38, 7a, 3f, 4f, 30, 5c, b7, f8, 9e, 61, 70, 43, 18, 26, 14, fb, 06, 2c, 0c, eb, c5, 0e, de, f8, d0, 60, b2, 00, b2, fb, f0, f9, 82, 08, 02, fb, 19, 66, 00, 96, de, f8, d4, 60, 4f, ea, 86, 0e, be, fb, f0, fe, 02, fb, 1e, 66, 01, 96, dc, f8, e0, 60, 4f, ea, 86, 0e, be, fb, f0, fe, 02, fb, 1e, 66, 02, 96, dc, f8, e4, 60, 4f, ea, 86, 0c, bc, fb, f0, f0, 02, fb, 10, 60, 03, 90, e6, 19, 96, f8, 6c, 00, 0a, 46, 03, 28, 07, d0, 0a, 28, 05, d0, 0b, 28, 03, d0, 0c, 28, 1c, bf, 0d, 28, 42, 46, 12, fb, 05, f0, 04, 27, ec, 46, 40, 01, 00, f5, 80, 72, 96, b2, 40, 46, 5c, f8, 04, 2b, 85, 19, 7f, 1e, 00, f1, 04, 00, 5a, 51, f7, d1, 1b, 4a, 15, 20, 14, fb, 00, f0, 10, 5c, 06, 28, 03, d0, 40, 08, 2c, bf, 0f, 21, 07, 21, 16, 48, 50, f8, 24, 00, ff, f7, f3, fe, 05, b0, bd, e8, f0, 83, 3b, 78, 02, 00, 17, 01, 01, 20, 52, 03, 01, 20, 34, fe, 00, 20, bc, dc, 00, 20, d4, fb, 00, 20, 29, 1f, 01, 20, 18, ff, 00, 20, 64, ff, f9, 57, d0, 23, 01, 20, 9c, 77, 02, 00, 1c, 08, 06, a8, a4, da, 00, 20, 90, d6, 00, 20, b8, 16, 01, 20, ac, 78, 02, 00, b4, 01, 01, 20, d8, 74, 02, 00, 32, d4, 00, 20, 90, 78, 02, 00, 10, b5, b6, 4b, b4, 4c, 03, 22, 10, fb, 02, 10, 18, 5c, 20, 5c, 80, 00, c0, b2, 10, bd, 2d, e9, f0, 4f, ad, f1, 34, 0d, 08, 90, e7, f7, c4, fa, ae, 4a, 06, 27, 10, 46, 00, 21, 7f, 1e, 00, f8, 01, 1b, fa, d1, a9, 49, 08, 98, ab, 4c, 89, 1f, 40, 18, 80, 78, b1, f8, 9e, 31, 20, 5c, 4f, f0, 01, 0a, 89, 46, 58, 43, 09, 90, a7, 48, d0, f8, d8, 31, 04, 27, 51, 46, 6a, 46, 08, 98, 8d, f8, 00, 70, 98, 47, ad, f1, 01, 06, 02, 96, 02, 20, 06, 90, 02, 98, 10, f8, 01, 1f, 04, 29, 02, 90, 00, f0, 8f, 80, 9c, 48, 08, 9c, d0, f8, f8, 21, 20, 46, 90, 47, 98, 49, 98, 4f, 4f, f0, 0d, 0b]
    SPIWrite 0018,00,0,7	//Property_18h_0_0=0x0; 	Address(0x18[7:0])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,08,0,7	//MACRO_OPERAND_REG0=0x8000000; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 00a7,00,0,7	//MACRO_OPERAND_REG1=0x1000; 	Address(0xa4[7:0],0xa5[7:0],0xa6[7:0],0xa7[7:0],0xa8[7:0])
    SPIWrite 00a6,00,0,7
    SPIWrite 00a5,10,0,7
    SPIWrite 00a4,00,0,7
    SPIWrite 0193,78,0,7	//MACRO_OPCODE=0x78; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0144,00,0,7	//Property_124h_4_2=0x0; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,01,0,7	//Property_18h_0_0=0x1; 	Address(0x18[7:0])
    SPIBurstWrite 0020,[09, 18, 89, 7a, 0a, 90, 62, 00, 0b, fb, 00, fb, 02, eb, 0a, 06, 07, eb, 0b, 00, 90, f8, 22, 00, 0b, 91, ba, f1, 01, 0f, 0c, 90, 10, 46, 00, eb, 0a, 01, a6, f1, 01, 02, a1, f1, 01, 01, d3, b2, c9, b2, 4f, ea, 61, 01, 0c, bf, 02, 22, 01, 22, 49, 44, 91, f8, ed, 70, 8d, f8, 04, 30, 80, 18, 40, 1e, 8d, f8, 05, 00, 00, 2f, 0c, bf, 01, 20, 02, 20, 07, 90, 0d, f1, 03, 00, 03, 90, 03, 98, 10, f8, 01, 5f, 03, 90, 09, eb, 05, 01, 91, f8, 6e, 00, 40, 1c, c7, b2, 00, 2f, 45, d0, 7b, 48, df, f8, d4, 81, 0a, 9e, e1, 31, 00, 24, 04, 91, 40, 19, 11, 30, b0, 44, 05, 90, 05, 98, 04, 99, 03, 78, 98, f8, 00, 60, 08, 78, 23, b1, 72, 49, 04, eb, 45, 00, 40, 18, 40, 7d, 0c, 99, b1, 42, 27, dd, 0b, 99, 81, 42, 24, d1, 6b, 49, d1, f8, 2c, c4, 99, f8, cc, 30, 0b, 9a, e0, 00, 00, eb, 05, 10, 48, 44, 09, 99, c0, 68, e0, 47, 64, 49, 4f, f4, 7a, 72, b0, fb, f2, f0, 59, 44, 01, eb, 46, 01, a1, f8, 23, 00, 08, 98, 51, 46, ff, f7, 45, ff, 5d, 4a, 98, f8, 00, 10, 5a, 44, 49, 1c, 88, f8, 00, 10, 92, 19, 82, f8, 2b, 00, 7f, 1e, 04, f1, 01, 04, c4, d1, 07, 98, 40, 1e, 07, 90, a9, d1, 06, 98, 40, 1e, 06, 90, 7f, f4, 65, af, 0a, f1, 01, 0a, ba, f1, 03, 0f, ff, f6, 50, af, 0d, b0, bd, e8, f0, 8f, 2d, e9, f0, 4f, 81, 46, ad, f1, 24, 0d, e7, f7, ea, fa, 47, 4c, 4a, 4f, 47, 4a, 05, 90, 09, eb, 04, 00, d7, f8, d8, 31, b4, f8, 9e, 61, 01, 79, 04, 20, 55, 5c, 8d, f8, 00, 00, 00, 21, 48, 46, 6a, 46, 98, 47, 4f, f0, 02, 0b, 4c, 44, 75, 43, 02, 94, ad, f1, 01, 00, 06, 95, df, f8, f0, a0, 01, 90, 01, 98, 10, f8, 01, 1f, 04, 29, 01, 90, 5d, d0, 38, 48, d0, f8, f8, 21, 48, 46, 90, 47, 04, 46, 02, 98, 4f, f0, 0d, 08, 0a, eb, 04, 02, 08, fb, 04, f8, 0a, eb, 08, 01, 92, 7a, 90, f8, df, 00, 91, f8, 22, 10, 07, 92, 40, 1c, c7, b2, 08, 91, 00, 2f, 43, d0, 02, 99, 27, 4e, 2b, 48, 00, 25, e5, 31, a4, 19, 48, 44, 03, 91, 21, 30, 04, 90, 04, 98, 03, 9a, 03, 78, 26, 78, 10, 78, 2b, b1, 24, 49, 05, eb, 89, 00, 40, 18, 90, f8, 23, 00, 08, 99, b1, 42, 26, dd, 07, 99, 81, 42, 23, d1, 1d, 4b, 1a, 49, d3, f8, 2c, c4, 07, 9a, 91, f8, ce, 30, a8, 00, 00, eb, 09, 10, 40, 18, c0, 6c, 06, 99, e0, 47, 0a, eb, 08, 01, 4f, f4, 7a, 72, 01, eb, 46, 01, b0, fb, f2, f0, a1, f8, 23, 00, 00, 21, 48, 46, ff, f7, a8, fe, 0a, eb, 08, 02, 92, 19, 21, 78, 82, f8, 2b, 00, 49, 1c, 21, 70, 7f, 1e, 05, f1, 01, 05, c5, d1, bb, f1, 01, 0b, 98, d1, 05, 98, 09, b0, bd, e8, f0, 8f, c0, 46, 31, 78, 02, 00, ba, 01, 01, 20, b4, 23, 01, 20, b4, 01, 01, 20, ac, 78, 02, 00, 98, 0e, 01, 20, 90, d6, 00, 20, a0, 13, 01, 20, f8, b5, 67, 48, 65, 4c, 67, 49, 6e, 4b, c4, f8, 50, 06, 66, 48, c4, f8, fc, 10, 02, 27, c4, f8, c4, 00, 64, 49, 1f, 70, 66, 48, c4, f8, c0, 10, 65, 49, c4, f8, 30, 01, 65, 48, c4, f8, 40, 11, 71, 49, c4, f8, 38, 01, 71, 48, c4, f8, a8, 16, 70, 49, c4, f8, ac, 06, 70, 48, c4, f8, f4, 15, 6f, 4a, a0, 64, 00, 26, c4, f8, 3c, 26, 5d, 4a, 6d, 49, 16, 70, 6d, 48, c4, f8, 30, 16, 5b, 49, c4, f8, 40, 06, 5f, 48, 0e, 70, a6, 22, 42, 80, 40, f2, b7, 51, 81, 80, 28, 23, 03, 80, 41, f2, 88, 32, 5e, 49, c2, 60, 4c, 4d, 0e, 70, 03, 23, 83, 71, 52, 4a, 52, 49, c5, f8, f4, 21, 49, 4b, c5, f8, 38, 12, 50, 4a, c5, f8, 84, 31, 51, 49, c5, f8, 3c, 22, 4e, 4a, 11, 60, 50, 49, 81, 60, 50, 49, 01, 61, 50, 48, a8, 65, 58, 48, c4, f8, 34, 06, 01, f0, e9, f9, 00, f0, a6, fe, 56, 48, 56, 49, 00, f0, 3f, fe, 57, 49, 58, 48, c4, f8, 70, 19, 58, 49, c4, f8, 4c, 05, 57, 48, c4, f8, 38, 16, 57, 49, c4, f8, c4, 04, 56, 48, c4, f8, 94, 14, 56, 49, c4, f8, 98, 04, 55, 48, c4, f8, 00, 12, 57, 49, c4, f8, 04, 02, 57, 48, c4, f8, 18, 14, 57, 49, c4, f8, 24, 03, 56, 48, c4, f8, 94, 11, 58, 49, c4, f8, c4, 02, 58, 48, c4, f8, 4c, 14, 44, 49, 4b, 4a, 0e, 70, 56, 4b, c4, f8, c8, 04, 01, 20, 10, 70, 4f, 4a, c4, f8, bc, 31, 47, 4b, 17, 70, 08, 21, 19, 80, 4c, 49, 08, 80, 4d, 48, 06, 70, 38, 48, c5, f8, 34, 02, 44, 48, c5, f8, f8, 00, 4c, 48, c5, f8, 5c, 03, 4c, 48, c4, f8, e8, 05, 00, f0, 19, fd, 4a, 48, c5, f8, 60, 01, 4a, 48, c5, f8, 94, 01, 49, 48, c5, f8, 14, 02, 49, 48, c4, f8, e4, 00, 00, f0, 10, fb, 4a, 48, 0d, 21, 41, 70, 0a, 21, 81, 70, 17, 21, c1, 70, a9, 21, 81, 80, 43, 48, c4, f8, 38, 04, 42, 48, c5, f8, 60, 03, 42, 48, c5, f8, 64, 03, f8, bd, c0, 46, 90, d6, 00, 20, ad, 14, 03, 00, 3b, 24, 03, 00, bd, 23, 03, 00, ed, 22, 03, 00, d4, f7, 00, 20, 5b, 05, 03, 00, 73, 1e, 03, 00, 0f, 1d, 03, 00, 9d, 1d, 03, 00, 2b, 22, 01, 20, cc, 23, 01, 20, ce, 23, 01, 20, 8d, 04, 03, 00, 29, 12, 03, 00, 61, 13, 03, 00, c4, 23, 01, 20, 00, 00, 02, ac, 54, 23, 01, 20, 40, 78, 7d, 01, 48, e8, 01, 00, 21, 26, 03, 00, cf, 23, 01, 20, e3, 2c, 03, 00, d7, 2c, 03, 00, 3d, 2e, 03, 00, 23, 2b, 03, 00, 2d, 14, 03, 00, 35, 15, 03, 00, f5, 15, 03, 00, 2b, 16, 03, 00, 30, 30, 03, 00, 58, 30, 03, 00, 65, 27, 03, 00, af, 28, 03, 00, d1, 23, 01, 20, d1, 2d, 03, 00, 39, 28, 03, 00, e1, 2e, 03, 00, 87, 17, 03, 00, 27, 19, 03, 00, 75, 2e, 03, 00, 83, 2e, 03, 00, cd, 23, 01, 20, c8, 23, 01, 20, 09, 2f, 03, 00, 33, 26, 03, 00, c5, 2e, 03, 00, 0d, 29, 03, 00, 9f, 2d, 03, 00, d2, 23, 01, 20, ca, 23, 01, 20, 0d, 2a, 03, 00, a1, 13, 01, 20, e3, 2e, 03, 00, 43, 29, 03, 00, 05, 2d, 03, 00, 2d, 2e, 03, 00, 7d, 06, 03, 00, 89, 0a, 03, 00, bd, 09, 03, 00, 71, 23, 03, 00, 49, 22, 03, 00, 15, 2c, 03, 00, c5, 2b, 03, 00, 3c, d6, 00, 20, 70, 47, f8, b5, 75, 4c, 84, 46, 60, 79, e4, 79, 24, 18, 02, 2c, 3a, d1, 57, 78, 37, f0, 02, 07, 36, d1, 72, 4a, 0c, 20, 1c, fb, 00, f0, 00, eb, 81, 00, 70, 4c, 12, 58, 6d, 4e, 92, f9, 90, 54, 03, 27, dc, 20, 11, fb, 00, f0, 1c, fb, 07, 11, 67, 5c, 4f, f4, 25, 7e, 1c, fb, 0e, 00, 80, 19, 94, 46, 90, f9, 89, 10, 90, f9, 87, 40, 90, f9, 86, 20, 9c, f9, 91, 64, 90, f9, 88, 00, 4f, b9, 86, 42, 0e, bf, a5, 42, 01, 21, 19, 70, 8c, f8, 90, 44, 8c, f8, 91, 04, f8, bd, 95, 42, 0e, bf, 8e, 42, 01, 20, 18, 70, 8c, f8, 91, 14, 8c, f8, 90, 24, f8, bd, 60, 46, eb, f7, df, fc, f8, bd, 2d, e9, fe, 4f, 0c, 9e, 82, 46, 89, 46, 14, 46, 0d, 9f, 00, 96, 1d, 46, 01, 97, eb, f7, 00, fe, df, f8, 3c, b1, 20, 88, 20, b9, 60, 88, 00, 28, 4f, d0, 01, 20, 4e, e0, 63, 88, 00, 2b, 4a, d0, e9, f7, 2d, fe, 80, 46, 60, 88, e9, f7, 29, fe, 69, 79, 00, eb, 80, 00, 08, eb, 88, 02, c0, 13, d2, 13, 01, 29, 44, b2, 53, b2, 3f, d1, 3f, 49, dc, 20, 4f, f4, 25, 72, 19, fb, 00, f0, 1a, fb, 02, 00, b2, 78, 40, 18, 71, 78, b0, f9, 5a, c0, b0, f9, 5c, 60, c2, f1, 01, 02, c1, f1, 01, 01, 11, fb, 0c, f0, c0, eb, 43, 10, 12, fb, 06, f1, 40, 11, c1, eb, 44, 11, a0, eb, 61, 10, 42, b2, 10, 46, 00, 28, b8, bf, 40, 42, c1, b2, 00, 2a, 4f, f0, 00, 00, d8, bf, 01, 20, aa, 79, 8a, 42, 0e, da, 2b, 78, 9b, 18, 8b, 42, 0a, db, 03, 22, 59, 46, 1a, fb, 02, 92, 89, 5c, 81, 42, 1c, bf, 01, 21, 79, 70, 00, e0, 00, 20, 03, 22, 59, 46, 1a, fb, 02, 92, 88, 54, bd, e8, fe, 8f, 2d, e9, fe, 43, 21, 48, 1f, 49, 08, 60, eb, f7, 36, ff, 00, 24, 1f, 4d, df, f8, 80, 80, 20, 4f, df, f8, 78, 90, 18, 4e, 8d, f8, 04, 40, 6d, 1e, 15, f8, 01, 0f, 01, 28, 1f, d1, 19, f8, 04, 00, e0, b9, 18, f8, 14, 10, 63, 00, 03, eb, 84, 03, db, 19, 9a, 78, 60, 10, 01, 2a, 0c, d0, 82, 00, 02, eb, c0, 02, 02, eb, 81, 02, b1, 58, d1, f8, 00, 04, 20, f4, 80, 70, c1, f8, 00, 04, 05, e0, 01, aa, 00, 92, da, 78, 1b, 1d, eb, f7, f3, fb, 64, 1c, 04, 2c, d8, db, bd, e8, fe, 83, e6, 1d, 01, 20, e0, ab, 00, 20, a8, 75, 02, 00, ac, 23, 01, 20, cc, d7, 00, 20, 0d, 1d, 03, 00, f0, 1e, 01, 20, f4, 1e, 01, 20, 06, d6, 00, 20, 6c, 1a, 01, 20, 2d, e9, f0, 41, 1c, 46, 15, 46, 8c, 42, 08, bf, 85, 42, 82, bf, 00, 23, 00, 22, e5, e0, 00, 2c, 08, bf, 00, 2d, 0a, d1, 00, 29, 0e, bf, 00, 28, 6f, f0, 00, 00, 6f, f0, 00, 01, 00, f0, e1, f8, bd, e8, f0, 81, 5f, f0, 00, 08, 5f, f0, 00, 0e, 00, 2c, 08, bf, 8d, 42, 9c, bf, 2c, 1c, 00, 25, 07, 0c, 47, ea, 01, 47, 0e, 0c, b4, 42, 08, bf, bd, 42, 9e, bf, 5f, ea, 04, 44, 44, ea, 15, 44, 5f, ea, 05, 45, 07, 0a, 47, ea, 01, 67, 0e, 0a, b4, 42, 08, bf, bd, 42, 9e, bf, 5f, ea, 04, 24, 44, ea, 15, 64, 5f, ea, 05, 25, 47, 08, 47, ea, c1, 77, 4e, 08, b4, 42, 08, bf, bd, 42, 00, f2, 93, 80, 87, 08, 47, ea, 81, 77, 8e, 08, b4, 42, 08, bf, bd, 42, 7c, d8, c7, 08, 47, ea, 41, 77, ce, 08, b4, 42, 08, bf, bd, 42, 66, d8, 07, 09, 47, ea, 01, 77, 0e, 09, b4, 42, 08, bf, bd, 42, 50, d8, 47, 09, 47, ea, c1, 67, 4e, 09, b4, 42, 08, bf, bd, 42, 3a, d8, 87, 09, 47, ea, 81, 67, 8e, 09, b4, 42, 08, bf, bd, 42, 24, d8, c7, 09, 47, ea, 41, 67, ce, 09, b4, 42, 08, bf, bd, 42]
    SPIWrite 0018,00,0,7	//Property_18h_0_0=0x0; 	Address(0x18[7:0])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,08,0,7	//MACRO_OPERAND_REG0=0x8000000; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 00a7,00,0,7	//MACRO_OPERAND_REG1=0x1800; 	Address(0xa4[7:0],0xa5[7:0],0xa6[7:0],0xa7[7:0],0xa8[7:0])
    SPIWrite 00a6,00,0,7
    SPIWrite 00a5,18,0,7
    SPIWrite 00a4,00,0,7
    SPIWrite 0193,78,0,7	//MACRO_OPCODE=0x78; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0144,00,0,7	//Property_124h_4_2=0x0; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,01,0,7	//Property_18h_0_0=0x1; 	Address(0x18[7:0])
    SPIBurstWrite 0020,[0d, d8, e6, 01, 46, ea, 55, 66, ef, 01, b1, 42, 08, bf, b8, 42, 01, d3, c0, 1b, b1, 41, 58, eb, 08, 08, 5e, eb, 0e, 0e, a6, 01, 46, ea, 95, 66, 4f, ea, 85, 17, b1, 42, 08, bf, b8, 42, 01, d3, c0, 1b, b1, 41, 58, eb, 08, 08, 4e, eb, 0e, 0e, 66, 01, 46, ea, d5, 66, 6f, 01, b1, 42, 08, bf, b8, 42, 01, d3, c0, 1b, b1, 41, 58, eb, 08, 08, 4e, eb, 0e, 0e, 26, 01, 46, ea, 15, 76, 2f, 01, b1, 42, 08, bf, b8, 42, 01, d3, c0, 1b, b1, 41, 58, eb, 08, 08, 5e, eb, 0e, 0e, e6, 00, 46, ea, 55, 76, ef, 00, b1, 42, 08, bf, b8, 42, 01, d3, c0, 1b, b1, 41, 58, eb, 08, 08, 4e, eb, 0e, 0e, a6, 00, 46, ea, 95, 76, af, 00, b1, 42, 08, bf, b8, 42, 01, d3, c0, 1b, b1, 41, 58, eb, 08, 08, 4e, eb, 0e, 0e, 66, 00, 46, ea, d5, 76, 6f, 00, b1, 42, 08, bf, b8, 42, 01, d3, c0, 1b, b1, 41, 58, eb, 08, 08, 5e, eb, 0e, 0e, a1, 42, 08, bf, a8, 42, 01, d3, 40, 1b, a1, 41, 58, eb, 08, 08, 5e, eb, 0e, 0e, a3, 42, 08, bf, aa, 42, 3e, bf, 2d, 0a, 45, ea, 04, 65, 24, 0a, 89, d3, 73, 46, 42, 46, 1e, 46, 17, 46, 0b, 46, 02, 46, 31, 46, 38, 46, bd, e8, f0, 81, 70, 47, 74, 4a, 38, b5, 1c, 21, 10, fb, 01, 24, b4, f9, 10, 50, a3, 68, 21, 68, 62, 68, 14, 20, 95, fb, f0, f0, 40, 42, 03, fb, 02, 11, 40, b2, 61, 61, 0f, 21, e9, f7, f6, fd, 47, f6, ff, 71, 81, 42, 28, bf, 81, b2, 21, 83, 38, bd, f8, b5, 9c, 46, df, f8, 98, e1, 66, 4b, 67, 4d, 00, 24, 5e, f8, 20, 00, 5f, 68, a0, f8, 74, 17, 2d, 68, 59, 68, a0, f8, 76, 47, 0c, fb, 07, 27, 01, 23, 80, f8, b8, 43, 4e, 1c, 80, f8, 47, 44, 8d, 42, 80, f8, 46, 34, 0c, fb, 06, 26, c0, f8, 50, 73, 98, bf, 16, 1c, c1, b2, c0, f8, 54, 63, 5e, f8, 21, 20, 82, f8, 58, 3e, 00, bf, 00, bf, 00, bf, 00, bf, 00, bf, d0, f8, 58, 1e, 41, f4, 80, 71, c0, f8, 58, 1e, 10, 21, c0, f2, 00, 01, 49, 1e, fd, d1, 82, f8, 58, 4e, 04, 21, 80, f8, 71, 17, f8, bd, 70, b5, 04, 46, ff, f7, a2, ff, 45, 49, 1c, 20, 14, fb, 00, 15, 2a, 68, 6b, 68, 29, 8b, 20, 46, ff, f7, b4, ff, 44, 48, 2e, 68, 6b, 68, 01, 22, 00, eb, 04, 10, 00, 25, 05, 70, 3f, 49, c5, 60, 0c, 39, 42, 70, 9b, 19, 46, 60, 0d, 68, 83, 60, a2, 40, 2a, 43, 0a, 60, 70, bd, f8, b5, 38, 4a, 38, 4e, 00, 20, 0a, 21, 01, 23, 10, 60, 0c, 3e, 50, 60, 14, 25, 71, 60, 4f, f4, 80, 44, 30, 60, 04, 27, b3, 60, 32, 4a, f0, 60, 2d, 49, 50, 60, 90, 60, d0, 60, 10, 70, 50, 70, 0d, 82, 08, 60, 48, 60, 88, 60, cb, 60, 48, 61, 0c, 83, 7f, 1e, 02, f1, 10, 02, 01, f1, 1c, 01, ed, d1, f8, bd, 26, 49, 25, 48, 2d, e9, f0, 41, 0c, 39, 03, 68, 44, 68, 8a, 68, 5b, 1c, 9a, 42, 8e, bf, 00, 27, 0f, 68, 00, 23, df, f8, 74, c0, 00, 25, 01, 22, 03, 60, 02, fa, 05, f3, 1f, 42, 05, d0, 5c, f8, 25, 60, 04, f0, 01, 03, 86, f8, 58, 3e, 6d, 1c, 04, 2d, f2, d3, f7, b1, cb, 68, 64, 1c, a3, 42, 38, bf, 00, 24, 10, 4d, 44, 60, 04, f0, 01, 0e, 00, 23, 02, fa, 03, f0, 07, 42, 0d, d0, 5c, f8, 23, 80, 58, 01, a0, eb, 83, 00, 40, 19, 46, 68, 00, 68, 08, eb, 8e, 08, 04, fb, 06, 00, c8, f8, 50, 03, 5b, 1c, 04, 2b, ea, d3, 48, 68, 80, 08, 02, d0, 00, bf, 40, 1e, fc, d1, bd, e8, f0, 81, 2c, 22, 01, 20, bc, 77, 02, 00, bc, 23, 01, 20, 74, 23, 01, 20, fc, 22, 01, 20, 2d, e9, f0, 41, 0d, 46, 5e, 49, 04, 46, 1e, 46, a3, 00, 08, 46, c7, 5c, c9, 18, bd, 42, 08, d0, 89, 78, 8d, 42, 18, bf, 04, 27, 14, d1, 01, 21, 01, eb, 44, 01, 00, e0, 61, 00, cf, b2, 04, 2f, 0c, d0, 54, 49, 00, eb, 47, 00, 0a, 5d, 41, 78, 90, 46, 04, 29, 05, d0, 33, 46, 20, 46, dd, f7, 7d, f9, 00, e0, 90, 46, 20, 46, 29, 46, 33, 46, 42, 46, dd, f7, 75, f9, 04, 2f, 10, d0, 4b, 4b, 49, 49, 0c, 20, 14, fb, 00, f0, 00, eb, 85, 02, 13, f8, 17, 30, 8a, 58, 00, eb, 83, 00, 92, f8, 02, 26, 08, 58, 80, f8, 02, 26, bd, e8, f0, 81, f8, b5, 42, 4b, 4f, f4, 25, 74, dc, 22, 10, fb, 04, f4, 11, fb, 02, 42, 3f, 4c, d2, 18, 92, f8, bc, 60, 01, 2e, 10, d1, 3d, 4d, 92, f9, c4, 70, 03, 23, 10, fb, 03, 13, ea, 56, 25, 78, 23, 46, a2, eb, 47, 02, 52, 19, 52, b2, 00, 2a, 48, bf, 00, 22, 1a, 70, dd, f7, 6c, fd, 01, 2e, 08, bf, 25, 70, f8, bd, 70, b5, 05, 46, 0c, 46, dd, f7, e5, fd, 2d, 4b, 2a, 4a, 4f, f4, 25, 76, 15, fb, 06, f6, 0c, 21, dc, 20, 15, fb, 01, f1, 14, fb, 00, 60, 01, eb, 84, 01, c0, 18, 54, 58, 90, f8, 42, 10, 90, f8, 74, 20, d4, f8, 3c, 66, 52, 18, 92, 1e, 06, 21, d2, b2, 0d, 46, b2, fb, f1, f1, 11, fb, 05, f3, d2, 1a, 6f, f0, 02, 03, d2, b2, 9b, 1a, 63, f3, 12, 46, c4, f8, 3c, 66, 90, f8, 42, 00, d4, f8, 3c, 26, 00, 1d, 90, fb, f5, f3, 4f, f4, 00, 20, c9, 1a, 00, eb, c1, 40, c0, 0c, 60, f3, d7, 42, c4, f8, 3c, 26, 70, bd, 38, b5, 0f, 4a, 12, 4c, 4f, f4, 25, 75, dc, 23, 10, fb, 05, f5, b1, 32, 11, fb, 03, 53, d2, 5c, 94, f9, 01, 50, 03, 2a, 03, d0, 94, f9, 01, 20, 92, 1f, 62, 70, dd, f7, db, ff, 65, 70, 38, bd, c0, 46, fe, d5, 00, 20, b6, 01, 01, 20, a8, 75, 02, 00, 06, d6, 00, 20, e0, ab, 00, 20, 24, 1f, 01, 20, 8c, 23, 01, 20, 36, d6, 00, 20, f8, b5, 17, 46, 5f, 4a, 06, 46, 5b, 1d, 4f, f0, 02, 0c, 08, 46, 00, 2f, 5f, fa, 83, fe, c0, f2, 00, 0c, 4a, d1, 58, 4b, 15, 21, 11, fb, 00, f1, 5b, 5c, 00, 25, c3, f3, 40, 04, 03, f0, 01, 01, c1, f1, 03, 01, c3, f3, 80, 03, 09, 1b, c9, 1a, c9, b2, 02, 29, a8, bf, 01, 25, 01, 24, 01, 2e, 1c, bf, 00, 2d, 00, 24, 00, 23, 00, 2e, 1c, bf, 00, 2d, 01, 23, 83, f0, 01, 03, 7c, b1, 81, 00, 01, eb, c0, 01, 01, eb, 87, 01, 51, 58, 00, 25, 81, f8, 64, 5d, 66, 46, 76, 1e, fd, d1, 00, bf, 00, bf, 81, f8, 66, 5d, 81, 00, 01, eb, c0, 01, 01, eb, 87, 01, 50, 58, 00, 21, 43, b1, 80, f8, 84, 1d, 62, 46, 52, 1e, fd, d1, 00, bf, 00, bf, 80, f8, 86, 1d, 80, f8, 62, 1d, 0c, b1, 80, f8, 88, e1, 0b, b1, 80, f8, 8c, e1, 19, e0, 81, 00, 01, eb, c0, 01, 01, eb, 87, 01, 50, 58, 00, 21, 80, f8, 64, 1d, 62, 46, 52, 1e, fd, d1, 00, bf, 00, bf, 80, f8, 66, 1d, 80, f8, 74, 1d, 80, f8, 76, 1d, 80, f8, 62, 1d, 80, f8, 88, e1, 80, f8, 88, e2, 80, f8, 60, 1d, 62, 46, 52, 1e, fd, d1, 00, bf, 00, bf, 01, 22, 80, f8, 60, 2d, bc, f1, 01, 0c, fc, d1, 00, bf, 00, bf, 80, f8, 60, 1d, f8, bd, 2d, e9, f8, 43, df, f8, 78, 80, df, f8, 78, 90, 06, 46, 00, 25, 03, 24, 77, 00, 78, 19, c0, b2, 19, f8, 10, 20, 04, 2a, 0a, d0, 16, fb, 04, 50, 40, 44, 90, f9, 01, 30, 7f, 2b, 03, d0, 31, 46, 01, 20, ff, f7, 60, ff, 6d, 1c, 02, 2d, eb, db, 12, 48, c2, 5d, 04, 2a, 09, d0, 16, fb, 04, f0, 18, f9, 00, 30, 7f, 2b, 03, d0, 31, 46, 00, 20, ff, f7, 4f, ff, bd, e8, f8, 83, 08, 4a, 7f, 21, 02, 20, 02, f8, 01, 1b, 02, f8, 01, 1b, 40, 1e, 02, f8, 01, 1b, f7, d1, 70, 47, c0, 46, 32, d4, 00, 20, a8, 75, 02, 00, 94, 23, 01, 20, fe, d5, 00, 20, 58, d6, 00, 20, 55, 48, 10, b5, 00, 78, 0c, 46, fe, f7, 17, fd, 00, 20, 20, 70, 10, bd, 51, 48, 2d, e9, f8, 4f, 07, 78, 51, 4e, 4f, 48, 00, 22, 0d, 46, 3c, 01, c6, eb, 82, 01, 0b, 68, 42, f3, 5d, 0c, 02, f0, 01, 01, 52, 1c, c9, 00, 04, 2a, 01, eb, 8c, 01, 21, 44, 01, 44, cb, 67, ef, db, df, f8, 20, 81, 90, f8, c2, 20, 45, 49, d8, f8, 50, 37, 98, 47, 45, 4a, d6, 19, d4, 19, 42, 49, d8, f8, 68, 39, 30, 79, 94, f8, 00, 90, 96, f8, 08, b0, 96, f8, 0c, a0, 00, 90, 38, 46, 98, 47, 20, 46, 01, 78, 49, 45, 0b, d1, 31, 79, 00, 9a, 91, 42, 07, d1, 31, 7a, 59, 45, 04, d1, 31, 7b, 51, 45, 08, bf, 00, 24, 00, d0, 01, 24, 90, f8, cc, 62, 00, 2e, 3d, d1, d8, f8, 60, 29, 38, 46, 29, 46, 90, 47, 28, 78, 00, 28, 48, d1, d8, f8, 70, 29, 38, 46, 29, 46, 90, 47, 28, 78, 00, 28, 40, d1, d8, f8, 38, 26, 38, 46, 29, 46, 90, 47, 28, 78, 00, 28, 38, d1, d8, f8, 3c, 26, 38, 46, 29, 46, 90, 47, 28, 78, 88, bb, d8, f8, 50, 16, 38, 46, 88, 47, d8, f8, 54, 16, 38, 46, 88, 47, d8, f8, 58, 16, 38, 46, 88, 47, 1e, 48, 00, 78, 10, b3, 01, 28, 18, bf, 01, 2c, 1e, d1, 1c, 48, 03, 88, 00, 21, 01, 26, 0a, 46, 06, fa, 07, f0, c0, b2, fe, f7, 0d, ff, bd, e8, f8, 8f, 6a, 88, 08, 23, 01, 21, 6c, 68, 2b, 70, 42, f4, 80, 42, 01, fa, 07, f3, 6a, 80, 23, 43, 6b, 60, 90, f8, cc, 02, 6a, 68, 00, 1d, 81, 40, 11, 43, 69, 60, bd, e8, f8, 8f, 04, 48, 00, 78, 02, 28, a4, bf, 04, 20, 08, 70, 01, da, 00, f0, 38, b8, 70, 47, b4, 03, 00, a2, b4, 01, 01, 20, 4b, fc, ff, 5d, 18, ff, 00, 20, 90, d6, 00, 20, d4, fb, 00, 20, cd, 23, 01, 20, c8, 23, 01, 20, 3a, b1, 03, 46, 10, 46, 13, f8, 01, 2b, 40, 1e, 01, f8, 01, 2b, f9, d1, 70, 47, 38, b5, 05, 46, 0c, 46, 28, 68, 21, 68, 0c, 22, ff, f7, ee, ff, 68, 68, 61, 68, 05, 22, ff, f7, e9, ff, a8, 68, a1, 68, 18, 22, ff, f7, e4, ff, e8, 68, e1, 68, d2, 22, ff, f7, df, ff, 28, 69, 21, 69, 96, 22, ff, f7, da, ff, 38, bd, b0, b5, 3b, 49, 3c, 4d, 00, f0, 01, 02, 04, 27, 12, 04, 08, 70, 55, f8, 04, 4b, d4, f8, 80, 1b, 21, f4]
    SPIWrite 0018,00,0,7	//Property_18h_0_0=0x0; 	Address(0x18[7:0])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,08,0,7	//MACRO_OPERAND_REG0=0x8000000; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 00a7,00,0,7	//MACRO_OPERAND_REG1=0x2000; 	Address(0xa4[7:0],0xa5[7:0],0xa6[7:0],0xa7[7:0],0xa8[7:0])
    SPIWrite 00a6,00,0,7
    SPIWrite 00a5,20,0,7
    SPIWrite 00a4,00,0,7
    SPIWrite 0193,78,0,7	//MACRO_OPCODE=0x78; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0144,00,0,7	//Property_124h_4_2=0x0; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,01,0,7	//Property_18h_0_0=0x1; 	Address(0x18[7:0])
    SPIBurstWrite 0020,[80, 31, 11, 43, c4, f8, 80, 1b, d4, f8, 48, 3b, 7f, 1e, 80, ea, 03, 01, 01, f0, 01, 01, 81, ea, 03, 01, c4, f8, 48, 1b, ea, d1, 01, 28, 19, bf, 2f, 48, 00, 21, 02, 21, 2f, 48, 2c, 4a, 11, 70, 2e, 49, ff, f7, bb, ff, b0, bd, 8c, 46, 2d, 49, f8, b5, 09, 5c, 01, 29, 12, d1, 2b, 4e, 45, 01, 02, 23, 00, 24, 62, 19, 02, 27, 92, 19, b2, f9, 00, 10, 7f, 1e, 4f, ea, 41, 01, 22, f8, 10, 1b, f7, d1, 5b, 1e, 04, f1, 08, 04, f0, d1, 61, 46, e0, f7, 4c, fa, f8, bd, 98, b5, 20, 4c, 00, 21, 84, f8, 24, 10, 20, 48, 84, f8, 25, 10, 03, 22, 84, f8, 29, 10, 1c, 4b, 84, f8, 2a, 10, 0a, 21, 40, 1e, 10, f8, 01, 4f, 05, 27, 7f, 1e, 03, f8, 01, 4b, fb, d1, 49, 1e, f6, d1, 52, 1e, 00, f1, 01, 00, f0, d1, 98, bd, 0a, 4a, 80, b5, 12, 78, 01, 2a, 0c, d1, 12, 4b, 42, 10, 9a, 5c, 92, 1e, d7, b2, 1f, b1, 01, 2f, 04, d1, 05, 22, 00, e0, 07, 22, 0e, 4b, 1a, 70, d7, f7, 17, f8, 80, bd, d1, 23, 01, 20, bc, 77, 02, 00, dd, 0b, 01, 20, 58, 30, 03, 00, 44, 30, 03, 00, 30, 30, 03, 00, ac, fe, 00, 20, 28, fd, 00, 20, 4a, 0c, 01, 20, fb, 20, 01, 20, 0f, 30, 03, 00, a2, 01, 01, 20, d4, 1e, 01, 20, 98, b5, e5, f7, a5, fe, 37, 48, 37, 4a, 00, 27, 4f, f6, df, 73, 40, 1e, 10, f8, 01, 1f, 01, 29, 09, d1, 00, 2f, 14, bf, 02, f1, b8, 04, 14, 1c, 21, 88, 19, 40, 41, f4, 00, 51, 21, 80, 7f, 1c, 02, 2f, ee, db, 98, bd, f8, b5, 2c, 4b, 98, 78, dc, 78, 84, 42, c8, bf, 04, 1c, 2a, 48, 42, 1d, 05, 78, 11, 78, a9, 42, b4, bf, 2f, 1c, 0f, 1c, 90, 7a, 52, 79, 90, 42, b4, bf, 16, 1c, 06, 1c, be, 42, 04, da, a9, 42, b8, bf, 29, 1c, 0a, 46, 01, e0, 90, 42, 00, da, 10, 46, 1a, 79, 59, 79, 09, 38, c5, b2, 91, 42, c8, bf, 11, 1c, 1c, 48, 02, 78, 40, 79, 90, 42, b8, bf, 10, 1c, a1, 42, a0, f1, 09, 00, c2, b2, c8, bf, 21, 1c, 17, 48, 04, 78, 07, 29, 18, bf, 44, 5c, aa, 42, b8, bf, 2a, 1c, 14, 48, d3, f8, b0, 11, 00, 78, a1, fb, 00, 01, c6, 0e, 07, 0f, 4b, 01, 45, 01, 09, 01, 1e, 43, 00, 01, 39, 43, 40, 19, 41, eb, 06, 01, 00, f0, 64, fa, c8, 22, 00, 23, 14, fb, 02, f2, ff, f7, 94, fa, e5, f7, 79, ff, f8, bd, c0, 46, 9e, 13, 01, 20, 06, 07, 06, a8, b4, 01, 01, 20, 3c, 1b, 01, 20, eb, 1c, 01, 20, ac, 78, 02, 00, 2f, 1f, 01, 20, 0a, 46, 2d, e9, f8, 4f, 00, 21, 4f, f0, aa, 0a, a0, f1, aa, 08, 0f, 46, d3, 46, 00, 92, 08, f1, aa, 08, 98, f8, a6, 20, 04, 2a, 56, da, 98, f8, 04, 60, 00, 2e, 52, d0, 76, 1e, 72, 1c, 5f, fa, 86, f9, d2, b2, 06, 2a, 48, da, 5b, 46, 03, fb, 07, 03, 1c, 7c, 00, 23, 37, e0, 63, 18, 1b, 18, db, 7d, 09, 25, 19, fb, 05, f5, 5e, 19, 76, 18, 36, 18, 96, f9, 22, e0, 02, eb, c2, 0c, ed, 18, 6d, 18, 5e, 18, 2d, 18, 66, 44, 36, 18, 86, f8, 22, e0, 95, f9, 58, 60, 5d, 18, 0b, fb, 07, f1, 05, eb, 0c, 03, 1b, 18, 0d, 18, 83, f8, 58, 60, ab, 7d, 64, 1c, e4, b2, 19, e0, 03, 24, 19, fb, 04, 34, 64, 18, 24, 18, 94, f8, 8e, 60, 02, eb, 42, 05, ec, 18, 64, 18, 5d, 1c, 0a, fb, 07, f1, eb, b2, 24, 18, 0d, 18, 84, f8, 8e, 60, 2c, 7c, 9c, 42, e9, dc, 0a, fb, 07, 03, 9b, 7d, 00, 24, a3, 42, bf, dc, 52, 1c, 06, 2a, b6, db, 06, 22, 88, f8, 04, 20, 7f, 1c, aa, 31, 06, 2f, 9e, db, 00, 99, e2, f7, 5d, fe, bd, e8, f8, 8f, 00, 00, 10, b5, 30, 4a, 2e, 4c, 13, 78, 54, f8, 20, 40, 84, f8, 58, 3e, 06, 20, c0, f2, 00, 00, 03, 46, 5b, 1e, fd, d1, 53, 78, 04, eb, 83, 03, c3, f8, c0, 13, 40, 1e, fd, d1, 50, 78, 84, f8, 58, 0e, 10, bd, f8, b5, dd, f8, 18, c0, 07, 46, 14, 46, 1d, 46, 0e, 46, cd, f8, 00, c0, e9, f7, 3c, fc, 55, ea, 04, 00, 37, d1, 1e, 4b, 1e, 4a, 03, eb, 67, 01, 73, 31, 08, 78, b3, f8, 9e, 41, 12, 5c, 38, 46, 54, 43, 47, b1, 01, 2f, 08, bf, 00, 25, 05, d0, 02, 2f, 0c, bf, 03, 25, 02, 25, 00, e0, 01, 25, 15, 4a, d2, 5d, 01, 2a, 02, d0, 91, f8, 7e, 30, 23, b1, 79, 08, 02, d3, 28, 46, 41, 1c, cd, b2, d6, f8, 01, 10, 27, 09, 0a, 01, b2, fb, f4, f2, 07, fb, 12, 11, ff, f7, ad, ff, 30, 78, 48, b1, d6, f8, 06, 00, 01, 01, b1, fb, f4, f1, 07, fb, 11, 01, 28, 46, ff, f7, a1, ff, f8, bd, bc, 77, 02, 00, 96, 19, 01, 20, b4, 01, 01, 20, 3b, 78, 02, 00, 98, fe, 00, 20, f8, b5, 0c, 46, 4f, f0, 22, 41, 91, f8, b5, 03, 91, f8, b4, 73, 01, 28, 0d, d0, 24, 48, 02, 68, 00, 21, 01, 23, 03, fa, 01, f5, 2f, 42, 1c, bf, aa, 43, 02, 60, 49, 1c, 04, 29, f6, db, 0b, e0, 00, 25, 01, 26, 06, fa, 05, f0, 07, 42, 02, d0, 28, 46, ff, f7, d9, fa, 6d, 1c, 04, 2d, f5, db, 00, 20, 20, 70, 60, 80, f8, bd, 16, 48, f0, b5, 38, c8, ad, f1, 14, 0d, 6a, 46, 38, c2, 09, c8, 82, e8, 09, 00, df, f8, 48, e0, 0f, 4e, 9d, f8, 00, c0, 01, 27, 00, 22, 07, fa, 02, f0, 1c, ea, 00, 0f, 0d, d0, 03, 9c, 50, 01, 04, 9b, f4, 60, a0, eb, 82, 00, b3, 60, 70, 44, 84, 60, 01, 9d, 05, 60, c3, 60, 02, 9c, 44, 60, 52, 1c, 04, 2a, e9, db, 00, 20, 08, 70, 05, b0, 48, 80, f0, bd, 68, 23, 01, 20, b4, 03, 00, a2, 2c, 22, 01, 20, 1d, 48, b0, b5, 00, 78, 48, bb, 1c, 48, 00, 78, 30, bb, 1d, 48, 1b, 4a, 02, 21, 0c, 38, 50, f8, 0c, 3f, 93, f8, 40, 47, 93, f8, 41, 77, 0f, b9, 83, f8, 70, 47, 52, f8, 08, 4b, 94, f8, 80, 5b, d4, f8, 80, 3b, 49, 1e, 65, f3, 4d, 33, c4, f8, 80, 3b, ea, d1, 11, 4c, 04, 20, 54, f8, 04, 3b, 93, f8, 71, 27, 93, f8, 72, 17, 40, 1e, 01, ea, 02, 01, 83, f8, 70, 17, f3, d1, b0, bd, 08, b5, d7, f7, aa, ff, ff, f7, cc, ff, 08, bd, 08, b5, d8, f7, 58, f8, ff, f7, c6, ff, 08, bd, c0, 46, c2, 19, 01, 20, cf, 23, 01, 20, bc, 77, 02, 00, a8, 75, 02, 00, 9c, 77, 02, 00, f8, b5, 4f, f0, 22, 42, 92, f9, b5, 03, 92, f8, b4, c3, 2a, 28, 28, dc, 10, f1, 05, 0f, 25, db, 14, 4f, 00, 23, 01, 22, 1e, 46, 0b, 70, 1d, 46, 14, 46, 31, 19, 49, 1e, 02, fa, 01, f1, 1c, ea, 01, 0f, 03, d0, 05, eb, 45, 01, 09, 19, 78, 54, 64, 1c, 03, 2c, f1, db, 6d, 1c, b6, 1c, 02, 2d, ec, db, 19, 1d, 02, fa, 01, f1, 1c, ea, 01, 0f, 1c, bf, 03, eb, 43, 01, 78, 54, 5b, 1c, 02, 2b, f3, db, f8, bd, 04, 20, 08, 70, f8, bd, c0, 46, 94, 23, 01, 20, 14, 49, 13, 48, 09, 68, 00, 88, 00, 22, 48, 43, c0, f3, 40, 11, 01, eb, 90, 10, 06, e0, 13, 21, c0, f2, 00, 01, 49, 1e, fd, d1, 00, bf, 52, 1c, 90, 42, f6, d8, 70, 47, f8, b5, 0a, 4d, 00, 24, 0e, 46, 07, 46, 07, e0, 38, 46, 31, 46, e5, f7, 2f, f9, ff, f7, df, ff, 64, 1c, e4, b2, 28, 78, a0, 42, f4, dc, f8, bd, c0, 46, ca, 23, 01, 20, 68, 03, 01, 20, d2, 23, 01, 20, 2d, e9, fe, 4f, 00, 25, 9b, 46, 91, 46, 80, 46, 0c, af, 01, 91, 97, f8, 00, a0, 01, 98, 08, b9, 5d, 45, 19, d1, 05, eb, 49, 01, 08, eb, c5, 00, 08, eb, c1, 06, b0, f9, a4, 7c, b6, f9, 24, 40, 4a, 46, 2b, 46, 40, 46, 00, 21, cd, f8, 00, a0, d3, f7, 81, fa, e4, 1b, 6f, f3, df, 34, 84, f4, 80, 44, a4, f5, 80, 44, b4, 84, 6d, 1c, 02, 2d, de, db, bd, e8, fe, 8f, 00, 00, 10, b5, 04, 46, db, f7, da, f9, 20, 46, ff, f7, ae, fb, 10, bd, 10, b5, 0b, 4a, 0b, 4c, 0c, 21, 83, 18, 10, fb, 01, 42, 93, f8, b8, 11, 54, 68, c1, f1, 01, 01, 92, 68, 84, f8, 70, 17, 93, f8, b8, 11, c1, f1, 01, 01, 82, f8, 70, 17, dc, f7, de, fa, 10, bd, b4, 01, 01, 20, a8, 75, 02, 00, 08, b5, ea, f7, 7b, fb, 4f, f4, 11, 60, 00, 78, 08, bd, 38, b5, 04, 4d, 05, 4c, 05, 4b, 2d, 78, 24, 78, 1b, 78, ea, f7, b6, fb, 38, bd, c0, 46, 20, 00, 00, 64, 20, 00, 00, 54, 20, 00, 00, 74, 08, b5, b2, f1, 20, 03, 27, bf, 00, fa, 03, f1, 00, 20, 5b, 42, 91, 40, 3e, bf, 20, fa, 03, f3, 19, 43, 90, 40, 08, bd, 00, 00, 38, b5, 05, 4d, 00, 24, 28, 68, 01, 46, 20, 46, 88, 47, 64, 1c, 04, 2c, f8, db, 38, bd, c0, 46, ec, de, 00, 20, 70, 47, 03, 48, 00, 78, 08, b9, ee, f7, 6e, b8, 70, 47, c0, 46, a1, 13, 01, 20, 03, 48, 08, 21, 41, 76, 09, 21, c1, 76, 41, 77, 70, 47, c0, 46, 88, 18, 01, 20, 01, 48, 00, 78, eb, f7, 95, bb, 82, 00, 00, a9, 00, 04, 07, 07, 00, 00, 03, 07, 00, 00, 00, 07, 00, 05, 05, 07, 07, 00, 0a, 0c, 0a, 16, 14, 16, 14, 00, 16, 00, 16, 16, 14, 16, 14, 00, 00, 00, 00, 16, 14, 16, 14, 00, 07, 00, 00, 00, 00, 00, 00, 01, 03, 01, 10, 0a, 10, 00, 00, 00, 00, 00, 00, 00, 00, 07, 03, 01, 10, 0a, 10, 00, 07, 00, 01, 00, 0a, 00, 00, 07, 00, 01, 00, 0a, 00, 00, 01, 10, 01, 10, 0a, 00, 00, 07, 12, 01, 10, 0a, 00, 00, 01, 00, 0a, 00, 00, 00, 00, 01, 10, 0a, 00, 00, 00, 00, 00, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 12, 00, 00, 00, 00, 00, 01, 03, 01, 10, 0a, 10, 00, 01, 03, 01, 10, 0a, 10, 00, 00, 12, 01, 10, 0a, 00, 00, 00, 12, 01, 10, 0a, 00, 00, 01, 10, 01, 10, 0a, 00, 00, 01, 10, 0a, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 03, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 07, 00, 00, 00, 00, 00, 00, 01, 03, 01, 10, 0a, 10, 00, 09, 03, 01, 10, 0a]
    SPIWrite 0018,00,0,7	//Property_18h_0_0=0x0; 	Address(0x18[7:0])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,08,0,7	//MACRO_OPERAND_REG0=0x8000000; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 00a7,00,0,7	//MACRO_OPERAND_REG1=0x2800; 	Address(0xa4[7:0],0xa5[7:0],0xa6[7:0],0xa7[7:0],0xa8[7:0])
    SPIWrite 00a6,00,0,7
    SPIWrite 00a5,28,0,7
    SPIWrite 00a4,00,0,7
    SPIWrite 0193,78,0,7	//MACRO_OPCODE=0x78; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0144,00,0,7	//Property_124h_4_2=0x0; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,01,0,7	//Property_18h_0_0=0x1; 	Address(0x18[7:0])
    SPIBurstWrite 0020,[10, 00, 07, 00, 01, 00, 0a, 00, 00, 01, 10, 0a, 10, 0a, 00, 00, 00, 00, 00, 00, 00, 02, 00, 02, 06, 00, 00, 00, 00, 00, 00, 00, 00, 02, 06, 00, 00, 00, 00, 00, 00, 00, 00, 00, 06, 00, 00, 00, 7c, 1c, 01, 20, d1, 1e, 01, 20, 84, 1a, 01, 20, 26, 07, 01, 20, 4a, 0c, 01, 20, 14, 2f, 03, 00, 20, 2f, 03, 00, 25, 2f, 03, 00, 3d, 2f, 03, 00, fb, 20, 01, 20, 00, 20, 01, 20, 0c, 20, 01, 20, 11, 20, 01, 20, 29, 20, 01, 20, 93, 21, 01, 20, 00, 00, 00, 00, 00]
    SPIWrite 0018,00,0,7	//Property_18h_0_0=0x0; 	Address(0x18[7:0])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x710000; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,71,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 00a7,00,0,7	//MACRO_OPERAND_REG1=0x3000; 	Address(0xa4[7:0],0xa5[7:0],0xa6[7:0],0xa7[7:0],0xa8[7:0])
    SPIWrite 00a6,00,0,7
    SPIWrite 00a5,30,0,7
    SPIWrite 00a4,00,0,7
    SPIWrite 0193,78,0,7	//MACRO_OPCODE=0x78; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x1; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,78,0,7	//MACRO_OPCODE=0x78; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x3; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,03,0,7
    SPIWrite 0193,01,0,7	//MACRO_OPCODE=0x1; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00fb,0,7
    SPIRead 00fa,0,7
    SPIRead 00f9,0,7
    SPIRead 00f8,0,7
    
    //Read	MACRO_RESULT_REG0=0x0; 	Address(0xf8[7:0],0xf9[7:0],0xfa[7:0],0xfb[7:0],0xfc[7:0])
    
    SPIRead 00ff,0,7
    SPIRead 00fe,0,7
    SPIRead 00fd,0,7
    SPIRead 00fc,0,7
    
    //Read	MACRO_RESULT_REG1=0x0; 	Address(0xfc[7:0],0xfd[7:0],0xfe[7:0],0xff[7:0],0x100[7:0])
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    
    //STEP: pllEfuse/step0 
    
    //START: Enabling Temp Sense
    
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 00c0,81,0,7	//Property_a0h_7_7=0x1; 	Address(0xc0[7:7])
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 02a3,00,0,7	//Property_280h_31_0=0x7e; 	Address(0x2a0[7:0],0x2a1[7:0],0x2a2[7:0],0x2a3[7:0],0x2a4[7:0])
    SPIWrite 02a2,00,0,7
    SPIWrite 02a1,00,0,7
    SPIWrite 02a0,7e,0,7
    SPIWrite 02a7,01,0,7	//Property_284h_31_0=0x1000000; 	Address(0x2a4[7:0],0x2a5[7:0],0x2a6[7:0],0x2a7[7:0],0x2a8[7:0])
    SPIWrite 02a6,00,0,7
    SPIWrite 02a5,00,0,7
    SPIWrite 02a4,00,0,7
    
    //END: Enabling Temp Sense
    
    
    //START: Loading PLL EFuse trims
    
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x201; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,02,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,34,0,7	//MACRO_OPCODE=0x34; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x1; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,72,0,7	//MACRO_OPCODE=0x72; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0xe0100; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,0e,0,7
    SPIWrite 00a1,01,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 0193,71,0,7	//MACRO_OPCODE=0x71; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    
    //END: Done Loading PLL EFuse trims
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x10101; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,01,0,7
    SPIWrite 00a1,01,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,73,0,7	//MACRO_OPCODE=0x73; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0012,01,0,7	//rxdig=0x1; 	Address(0x12[7:0])
    SPIWrite 2422,00,0,7	//cfg_fmix_pmode=0x0; 	Address(0x2422[7:0])
    SPIWrite 0012,02,0,7	//rxdig=0x2; 	Address(0x12[7:0])
    SPIWrite 2422,00,0,7	//cfg_fmix_pmode=0x0; 	Address(0x2422[7:0])
    SPIWrite 0012,04,0,7	//rxdig=0x4; 	Address(0x12[7:0])
    SPIWrite 2422,00,0,7	//cfg_fmix_pmode=0x0; 	Address(0x2422[7:0])
    SPIWrite 0012,08,0,7	//rxdig=0x8; 	Address(0x12[7:0])
    SPIWrite 2422,00,0,7	//cfg_fmix_pmode=0x0; 	Address(0x2422[7:0])
    SPIWrite 0012,00,0,7	//rxdig=0x0; 	Address(0x12[7:0])
    
    //STEP: pllConfig/step0 
    
    //START: Configuring PLL
    
    SPIWrite 0015,08,0,7	//rx=0x2; 	Address(0x15[7:2])
    SPIWrite 0043,00,0,7	//Property_20h_31_0=0x0; 	Address(0x40[7:0],0x41[7:0],0x42[7:0],0x43[7:0],0x44[7:0])
    SPIWrite 0042,00,0,7
    SPIWrite 0041,00,0,7
    SPIWrite 0040,00,0,7
    SPIWrite 0015,00,0,7	//rx=0x0; 	Address(0x15[7:2])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 00c1,60,0,7	//Property_a0h_15_13=0x3; 	Address(0xc1[7:5])
    
    //START: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0170,01,0,7	//pll_reg_spi_req_a=0x1; 	Address(0x170[7:0])
    SPIWrite 0540,00,0,7	//Property_520h_0_0=0x0; 	Address(0x540[7:0])
    
    SPIPoll 0171,0,0,01
    SPIRead 0171,0,0
    
    //Read	pll_reg_spi_a_ack=0x0(Meaning: );; 	Address(0x171[7:0])
    
    
    //END: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0015,01,0,7	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 003f,08,0,7	//Property_1ch_27_27=0x1; 	Address(0x3f[7:3])
    SPIWrite 0028,01,0,7	//Property_8h_0_0=0x1; 	Address(0x28[7:0])
    SPIWrite 0035,10,0,7	//Property_14h_12_12=0x1; 	Address(0x35[7:4])
    SPIWrite 0036,40,0,7	//Property_14h_22_22=0x1; 	Address(0x36[7:6])
    SPIWrite 0038,08,0,7	//Property_18h_3_3=0x1; 	Address(0x38[7:3])
    SPIWrite 0039,20,0,7	//Property_18h_13_13=0x1; 	Address(0x39[7:5])
    SPIWrite 003b,08,0,7	//Property_18h_27_27=0x1; 	Address(0x3b[7:3])
    SPIWrite 0046,60,0,7	//Property_24h_21_21=0x1; 	Address(0x46[7:5])
    SPIWrite 0046,60,0,7	//Property_24h_22_22=0x1; 	Address(0x46[7:6])
    SPIWrite 0043,18,0,7	//Property_20h_28_28=0x1; 	Address(0x43[7:4])
    SPIWrite 0043,18,0,7	//Property_20h_27_27=0x1; 	Address(0x43[7:3])
    SPIWrite 004c,00,0,7	//Property_2ch_3_0=0x0; 	Address(0x4c[7:0])
    SPIWrite 003c,e0,0,7	//Property_1ch_5_5=0x1; 	Address(0x3c[7:5])
    SPIWrite 0015,00,0,7	//pll=0x0; 	Address(0x15[7:0])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 010c,00,0,7	//EN_REFDIV_DMP=0x0; 	Address(0x10c[7:0])
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0015,01,0,7	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 003c,60,0,7	//Property_1ch_7_7=0x0; 	Address(0x3c[7:7])
    SPIWrite 003c,20,0,7	//Property_1ch_6_6=0x0; 	Address(0x3c[7:6])
    SPIWrite 003d,00,0,7	//Property_1ch_8_8=0x0; 	Address(0x3d[7:0])
    SPIWrite 0015,00,0,7	//pll=0x0; 	Address(0x15[7:0])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 010d,01,0,7	//CTL_REFDIV_DIV=0x1; 	Address(0x10d[7:0])
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0015,01,0,7	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 0056,43,0,7	//Property_34h_22_22=0x1; 	Address(0x56[7:6])
    SPIWrite 0056,c3,0,7	//Property_34h_23_23=0x1; 	Address(0x56[7:7])
    SPIWrite 0056,c3,0,7	//Property_34h_19_19=0x0; 	Address(0x56[7:3])
    SPIWrite 0056,f3,0,7	//Property_34h_21_20=0x3; 	Address(0x56[7:4])
    SPIWrite 0057,02,0,7	//Property_34h_25_25=0x1; 	Address(0x57[7:1])
    SPIWrite 0015,00,0,7	//pll=0x0; 	Address(0x15[7:0])
    SPIWrite 0015,80,0,7	//timing_controller=0x1; 	Address(0x15[7:7])
    SPIWrite 07f5,01,0,7	//Property_7d4h_15_0=0x17f; 	Address(0x7f4[7:0],0x7f5[7:0],0x7f6[7:0])
    SPIWrite 07f4,7f,0,7
    SPIWrite 0015,00,0,7	//timing_controller=0x0; 	Address(0x15[7:7])
    SPIWrite 0015,01,0,7	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 006d,01,0,7	//LCMGEN_DIV=0x17f; 	Address(0x6c[7:0],0x6d[7:0],0x6e[7:0])
    SPIWrite 006c,7f,0,7
    SPIWrite 0062,00,0,7	//Property_40h_23_20=0x0; 	Address(0x62[7:4])
    SPIWrite 0015,00,0,7	//pll=0x0; 	Address(0x15[7:0])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 010f,30,0,7	//CTL_FBDIV_DIV=0x30; 	Address(0x10f[7:0])
    SPIWrite 010e,00,0,7	//CTL_FBDIV_DIVBY2=0x0; 	Address(0x10e[7:0])
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0015,01,0,7	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 0050,fe,0,7	//Property_30h_2_1=0x3; 	Address(0x50[7:1])
    SPIWrite 0050,fe,0,7	//Property_30h_4_3=0x3; 	Address(0x50[7:3])
    SPIWrite 0050,fe,0,7	//Property_30h_6_5=0x3; 	Address(0x50[7:5])
    SPIWrite 0015,00,0,7	//pll=0x0; 	Address(0x15[7:0])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 0110,00,0,7	//CTL_OUTDIV_MUX_TX=0x0; 	Address(0x110[7:0])
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0015,01,0,7	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 0051,3d,0,7	//Property_30h_9_9=0x0; 	Address(0x51[7:1])
    SPIWrite 0015,00,0,7	//pll=0x0; 	Address(0x15[7:0])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 0111,00,0,7	//CTL_OUTDIV_DIV_TX=0x0; 	Address(0x111[7:0])
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0015,01,0,7	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 007f,00,0,7	//Property_5ch_30_30=0x0; 	Address(0x7f[7:6])
    SPIWrite 0015,00,0,7	//pll=0x0; 	Address(0x15[7:0])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 0112,01,0,7	//CTL_OUTDIV_MUX_RX=0x1; 	Address(0x112[7:0])
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0015,01,0,7	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 0051,3d,0,7	//Property_30h_10_10=0x1; 	Address(0x51[7:2])
    SPIWrite 0015,00,0,7	//pll=0x0; 	Address(0x15[7:0])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 0113,03,0,7	//CTL_OUTDIV_DIV_RX=0x3; 	Address(0x113[7:0])
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0015,01,0,7	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 007f,00,0,7	//Property_5ch_31_31=0x0; 	Address(0x7f[7:7])
    SPIWrite 0015,00,0,7	//pll=0x0; 	Address(0x15[7:0])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 0114,01,0,7	//CTL_OUTDIV_MUX_FB=0x1; 	Address(0x114[7:0])
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0015,01,0,7	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 0051,3d,0,7	//Property_30h_11_11=0x1; 	Address(0x51[7:3])
    SPIWrite 0015,00,0,7	//pll=0x0; 	Address(0x15[7:0])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 0115,03,0,7	//CTL_OUTDIV_DIV_FB=0x3; 	Address(0x115[7:0])
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0015,01,0,7	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 0051,2d,0,7	//Property_30h_12_12=0x0; 	Address(0x51[7:4])
    SPIWrite 0063,01,0,7	//Property_40h_27_24=0x1; 	Address(0x63[7:0])
    SPIWrite 0072,02,0,7	//Property_50h_23_16=0x2; 	Address(0x72[7:0],0x73[7:0])
    SPIWrite 006f,05,0,7	//Property_4ch_31_24=0x5; 	Address(0x6f[7:0],0x70[7:0])
    SPIWrite 0070,02,0,7	//Property_50h_7_0=0x2; 	Address(0x70[7:0],0x71[7:0])
    SPIWrite 0071,02,0,7	//Property_50h_15_8=0x2; 	Address(0x71[7:0],0x72[7:0])
    SPIWrite 006d,01,0,7	//LCMGEN_DIV=0x17f; 	Address(0x6c[7:0],0x6d[7:0],0x6e[7:0])
    SPIWrite 006c,7f,0,7
    SPIWrite 007c,04,0,7	//Property_5ch_6_0=0x4; 	Address(0x7c[7:0])
    SPIWrite 0055,ff,0,7	//Property_34h_8_8=0x1; 	Address(0x55[7:0])
    SPIWrite 0055,ff,0,7	//Property_34h_15_15=0x1; 	Address(0x55[7:7])
    SPIWrite 0055,ff,0,7	//Property_34h_9_9=0x1; 	Address(0x55[7:1])
    SPIWrite 0055,ff,0,7	//Property_34h_13_10=0xf; 	Address(0x55[7:2])
    SPIWrite 0055,ff,0,7	//Property_34h_14_14=0x1; 	Address(0x55[7:6])
    SPIWrite 0059,01,0,7	//Property_38h_8_8=0x1; 	Address(0x59[7:0])
    SPIWrite 0058,00,0,7	//Property_38h_7_7=0x0; 	Address(0x58[7:7])
    SPIWrite 0059,01,0,7	//Property_38h_10_10=0x0; 	Address(0x59[7:2])
    SPIWrite 0059,01,0,7	//Property_38h_11_11=0x0; 	Address(0x59[7:3])
    SPIWrite 005c,00,0,7	//Property_3ch_7_3=0x0; 	Address(0x5c[7:3])
    SPIWrite 005d,04,0,7	//Property_3ch_10_9=0x2; 	Address(0x5d[7:1])
    SPIWrite 005d,0c,0,7	//Property_3ch_11_11=0x1; 	Address(0x5d[7:3])
    SPIWrite 003d,01,0,7	//Property_1ch_8_8=0x1; 	Address(0x3d[7:0])
    SPIWrite 0053,03,0,7	//Property_30h_25_24=0x3; 	Address(0x53[7:0])
    SPIWrite 0052,00,0,7	//Property_30h_22_21=0x0; 	Address(0x52[7:5])
    SPIWrite 0065,22,0,7	//Property_44h_11_10=0x0; 	Address(0x65[7:2])
    SPIWrite 0052,00,0,7	//Property_30h_16_16=0x0; 	Address(0x52[7:0])
    SPIWrite 0052,00,0,7	//Property_30h_20_20=0x0; 	Address(0x52[7:4])
    SPIWrite 0053,03,0,7	//Property_30h_27_26=0x0; 	Address(0x53[7:2])
    SPIWrite 005e,00,0,7	//Property_3ch_18_17=0x0; 	Address(0x5e[7:1])
    SPIWrite 0052,00,0,7	//Property_30h_19_19=0x0; 	Address(0x52[7:3])
    SPIWrite 0052,00,0,7	//Property_30h_23_23=0x0; 	Address(0x52[7:7])
    SPIWrite 003e,00,0,7	//Property_1ch_20_20_1ch_25_25=0x0; 	Address(0x3e[7:4],0x3f[7:1])
    SPIWrite 003f,08,0,7
    SPIWrite 0065,20,0,7	//Property_44h_9_8=0x0; 	Address(0x65[7:0])
    SPIWrite 0087,00,0,7	//Property_64h_30_29=0x0; 	Address(0x87[7:5])
    SPIWrite 005e,00,0,7	//Property_3ch_20_19=0x0; 	Address(0x5e[7:3])
    SPIWrite 0087,00,0,7	//Property_64h_26_25=0x0; 	Address(0x87[7:1])
    SPIWrite 0087,00,0,7	//Property_64h_28_27=0x0; 	Address(0x87[7:3])
    SPIWrite 003e,00,0,7	//Property_1ch_17_16=0x0; 	Address(0x3e[7:0])
    SPIWrite 0051,2d,0,7	//Property_30h_15_14=0x0; 	Address(0x51[7:6])
    SPIWrite 0052,00,0,7	//Property_30h_18_17=0x0; 	Address(0x52[7:1])
    SPIWrite 0065,00,0,7	//Property_44h_13_12=0x0; 	Address(0x65[7:4])
    SPIWrite 0084,10,0,7	//Property_64h_5_4=0x1; 	Address(0x84[7:4])
    SPIWrite 0084,90,0,7	//Property_64h_7_6=0x2; 	Address(0x84[7:6])
    SPIWrite 0069,47,0,7	//Property_48h_15_8=0x47; 	Address(0x69[7:0],0x6a[7:0])
    SPIWrite 0045,20,0,7	//Property_24h_13_13=0x1; 	Address(0x45[7:5])
    SPIWrite 0032,00,0,7	//Property_10h_19_18=0x0; 	Address(0x32[7:2])
    SPIWrite 0049,38,0,7	//Property_28h_13_11=0x7; 	Address(0x49[7:3])
    SPIWrite 0049,3d,0,7	//Property_28h_10_8=0x5; 	Address(0x49[7:0])
    SPIWrite 004a,00,0,7	//Property_28h_21_19=0x0; 	Address(0x4a[7:3])
    SPIWrite 004b,00,0,7	//Property_28h_30_28=0x0; 	Address(0x4b[7:4])
    SPIWrite 004d,c0,0,7	//Property_2ch_9_8=0x0; 	Address(0x4d[7:0])
    SPIWrite 004a,04,0,7	//Property_28h_18_16=0x4; 	Address(0x4a[7:0])
    SPIWrite 004b,0f,0,7	//Property_28h_27_24=0xf; 	Address(0x4b[7:0])
    SPIWrite 004b,3f,0,7	//Property_28h_30_28=0x3; 	Address(0x4b[7:4])
    SPIWrite 0051,2d,0,7	//Property_30h_8_8=0x1; 	Address(0x51[7:0])
    SPIWrite 0040,60,0,7	//Property_20h_7_5=0x3; 	Address(0x40[7:5])
    SPIWrite 0041,00,0,7	//Property_20h_10_9=0x0; 	Address(0x41[7:1])
    SPIWrite 0043,f8,0,7	//Property_20h_31_29=0x7; 	Address(0x43[7:5])
    SPIWrite 0075,08,0,7	//Property_54h_12_11=0x1; 	Address(0x75[7:3])
    SPIWrite 0075,0e,0,7	//Property_54h_10_8=0x6; 	Address(0x75[7:0])
    SPIWrite 0045,24,0,7	//Property_24h_11_8=0x4; 	Address(0x45[7:0])
    SPIWrite 0031,00,0,7	//Property_10h_15_14=0x0; 	Address(0x31[7:6])
    SPIWrite 0046,63,0,7	//Property_24h_17_16=0x3; 	Address(0x46[7:0])
    SPIWrite 0045,24,0,7	//Property_24h_15_14=0x0; 	Address(0x45[7:6])
    SPIWrite 0064,07,0,7	//Property_44h_4_0=0x7; 	Address(0x64[7:0])
    SPIWrite 0065,00,0,7	//Property_44h_14_14=0x0; 	Address(0x65[7:6])
    SPIWrite 004e,00,0,7	//Property_2ch_16_16=0x0; 	Address(0x4e[7:0])
    SPIWrite 002d,00,0,7	//Property_ch_13_12=0x0; 	Address(0x2d[7:4])
    SPIWrite 0035,b0,0,7	//Property_14h_15_13=0x5; 	Address(0x35[7:5])
    SPIWrite 003e,00,0,7	//Property_1ch_19_18=0x0; 	Address(0x3e[7:2])
    SPIWrite 0073,00,0,7	//Property_50h_29_29=0x0; 	Address(0x73[7:5])
    SPIWrite 0056,f3,0,7	//Property_34h_17_17=0x1; 	Address(0x56[7:1])
    SPIWrite 0058,04,0,7	//Property_38h_2_2=0x1; 	Address(0x58[7:2])
    SPIWrite 0062,00,0,7	//Property_40h_23_20=0x0; 	Address(0x62[7:4])
    SPIWrite 0066,00,0,7	//Property_44h_16_16=0x0; 	Address(0x66[7:0])
    SPIWrite 0066,01,0,7	//Property_44h_16_16=0x1; 	Address(0x66[7:0])
    
    WAIT 0.001
    SPIWrite 0066,03,0,7	//Property_44h_17_17=0x1; 	Address(0x66[7:1])
    
    WAIT 0.005
    SPIWrite 0063,41,0,7	//CLR_FLAG_LOCK_LOST=0x1; 	Address(0x63[7:6])
    SPIWrite 0063,01,0,7	//CLR_FLAG_LOCK_LOST=0x0; 	Address(0x63[7:6])
    
    WAIT 0.001
    SPIReadCheck 0066,4,4,10
    
    //Read	LOCK=0x0; 	Address(0x66[7:4])
    
    SPIReadCheck 0066,6,6,00
    
    //Read	LOCK_LOST_STICKY=0x0; 	Address(0x66[7:6])
    
    SPIWrite 0066,01,0,7	//Property_44h_17_17=0x0; 	Address(0x66[7:1])
    SPIWrite 0063,81,0,7	//CLR_FLAG_LOCK_OUT=0x1; 	Address(0x63[7:7])
    SPIWrite 0063,c1,0,7	//CLR_FLAG_LOCK_LOST=0x1; 	Address(0x63[7:6])
    SPIWrite 0063,c2,0,7	//Property_40h_27_24=0x2; 	Address(0x63[7:0])
    
    //START: Sending Sysref to device
    
    
    //External-Action: Ensure Sysref is running before this point.
    
    SPIWrite 0015,00,0,7	//pll=0x0; 	Address(0x15[7:0])
    SPIWrite 0015,80,0,7	//timing_controller=0x1; 	Address(0x15[7:7])
    SPIWrite 085b,00,0,7	//Property_838h_31_0=0x0; 	Address(0x858[7:0],0x859[7:0],0x85a[7:0],0x85b[7:0],0x85c[7:0])
    SPIWrite 085a,00,0,7
    SPIWrite 0859,00,0,7
    SPIWrite 0858,00,0,7
    SPIWrite 085b,00,0,7	//Property_838h_31_0=0x101; 	Address(0x858[7:0],0x859[7:0],0x85a[7:0],0x85b[7:0],0x85c[7:0])
    SPIWrite 085a,00,0,7
    SPIWrite 0859,01,0,7
    SPIWrite 0858,01,0,7
    SPIWrite 085b,00,0,7	//Property_838h_31_0=0x0; 	Address(0x858[7:0],0x859[7:0],0x85a[7:0],0x85b[7:0],0x85c[7:0])
    SPIWrite 085a,00,0,7
    SPIWrite 0859,00,0,7
    SPIWrite 0858,00,0,7
    SPIWrite 0015,00,0,7	//timing_controller=0x0; 	Address(0x15[7:7])
    SPIWrite 0015,01,0,7	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 006a,00,0,7	//Property_48h_17_17=0x0; 	Address(0x6a[7:1])
    SPIWrite 006e,00,0,7	//LCMGEN_USE_SPI_SYSREF=0x0; 	Address(0x6e[7:0])
    SPIWrite 006a,00,0,7	//Property_48h_17_17=0x0; 	Address(0x6a[7:1])
    SPIWrite 006a,02,0,7	//Property_48h_17_17=0x1; 	Address(0x6a[7:1])
    SPIWrite 0058,06,0,7	//Property_38h_1_1=0x1; 	Address(0x58[7:1])
    
    WAIT 0.001
    SPIWrite 0058,04,0,7	//Property_38h_1_1=0x0; 	Address(0x58[7:1])
    
    //END: Sending Sysref to device
    
    SPIWrite 0063,c0,0,7	//Property_40h_27_24=0x0; 	Address(0x63[7:0])
    SPIWrite 0015,00,0,7	//pll=0x0; 	Address(0x15[7:0])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 00c1,00,0,7	//Property_a0h_15_13=0x0; 	Address(0xc1[7:5])
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0015,01,0,7	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 0063,40,0,7	//CLR_FLAG_LOCK_OUT=0x0; 	Address(0x63[7:7])
    SPIWrite 0063,00,0,7	//CLR_FLAG_LOCK_LOST=0x0; 	Address(0x63[7:6])
    SPIWrite 0066,03,0,7	//Property_44h_17_17=0x1; 	Address(0x66[7:1])
    
    //START: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,00,0,7	//pll=0x0; 	Address(0x15[7:0])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0170,00,0,7	//pll_reg_spi_req_a=0x0; 	Address(0x170[7:0])
    SPIWrite 0540,00,0,7	//Property_520h_0_0=0x0; 	Address(0x540[7:0])
    
    //END: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0015,80,0,7	//timing_controller=0x1; 	Address(0x15[7:7])
    SPIWrite 010d,03,0,7	//Property_ech_15_0=0x31f; 	Address(0x10c[7:0],0x10d[7:0],0x10e[7:0])
    SPIWrite 010c,1f,0,7
    SPIWrite 01ad,03,0,7	//Property_18ch_15_0=0x31f; 	Address(0x1ac[7:0],0x1ad[7:0],0x1ae[7:0])
    SPIWrite 01ac,1f,0,7
    SPIWrite 024d,03,0,7	//Property_22ch_15_0=0x31f; 	Address(0x24c[7:0],0x24d[7:0],0x24e[7:0])
    SPIWrite 024c,1f,0,7
    SPIWrite 02ed,03,0,7	//Property_2cch_15_0=0x31f; 	Address(0x2ec[7:0],0x2ed[7:0],0x2ee[7:0])
    SPIWrite 02ec,1f,0,7
    SPIWrite 0421,01,0,7	//Property_400h_15_0=0x190; 	Address(0x420[7:0],0x421[7:0],0x422[7:0])
    SPIWrite 0420,90,0,7
    SPIWrite 04d9,01,0,7	//Property_4b8h_15_0=0x190; 	Address(0x4d8[7:0],0x4d9[7:0],0x4da[7:0])
    SPIWrite 04d8,90,0,7
    SPIWrite 0591,01,0,7	//Property_570h_15_0=0x190; 	Address(0x590[7:0],0x591[7:0],0x592[7:0])
    SPIWrite 0590,90,0,7
    SPIWrite 0649,01,0,7	//Property_628h_15_0=0x190; 	Address(0x648[7:0],0x649[7:0],0x64a[7:0])
    SPIWrite 0648,90,0,7
    SPIWrite 0701,01,0,7	//Property_6e0h_15_0=0x190; 	Address(0x700[7:0],0x701[7:0],0x702[7:0])
    SPIWrite 0700,90,0,7
    SPIWrite 07b9,01,0,7	//Property_798h_15_0=0x190; 	Address(0x7b8[7:0],0x7b9[7:0],0x7ba[7:0])
    SPIWrite 07b8,90,0,7
    
    //END: Configuring PLL
    
    SPIWrite 0015,00,0,7	//timing_controller=0x0; 	Address(0x15[7:7])
    
    //STEP: pllConfig/step1 
    SPIWrite 0018,40,0,7	//Property_18h_6_6=0x1; 	Address(0x18[7:6])
    SPIWrite 0086,01,0,7	//Property_64h_16_16=0x1; 	Address(0x86[7:0])
    SPIWrite 0082,10,0,7	//Property_60h_21_16=0x10; 	Address(0x82[7:0])
    SPIWrite 0083,01,0,7	//Property_60h_24_24=0x1; 	Address(0x83[7:0])
    SPIWrite 0084,00,0,7	//Property_64h_0_0=0x0; 	Address(0x84[7:0])
    SPIWrite 0084,01,0,7	//Property_64h_0_0=0x1; 	Address(0x84[7:0])
    SPIWrite 0084,00,0,7	//Property_64h_0_0=0x0; 	Address(0x84[7:0])
    SPIWrite 0018,00,0,7	//Property_18h_6_6=0x0; 	Address(0x18[7:6])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 0193,12,0,7	//MACRO_OPCODE=0x12; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    
    //STEP: serdesConfig/step0 
    
    //START: Enabling access to SERDES
    
    SPIWrite 0016,10,0,7	//jesd_subchip=0x1; 	Address(0x16[7:4])
    SPIWrite 00c0,42,0,7	//apb_clk_disable=0x0; 	Address(0xc0[7:0])
    SPIWrite 00c0,40,0,7	//apb_clk_dithered_mode_en=0x0; 	Address(0xc0[7:1])
    SPIWrite 00c4,01,0,7	//apb_clk_from_MCU_clk_en=0x1; 	Address(0xc4[7:0])
    SPIWrite 0020,12,0,7	//serdesab_apb_page_addr_index=0x2; 	Address(0x20[7:0])
    SPIWrite 0021,12,0,7	//serdescd_apb_page_addr_index=0x2; 	Address(0x21[7:0])
    SPIWrite 0020,12,0,7	//serdesab_apb_mode_16b=0x1; 	Address(0x20[7:4])
    SPIWrite 0021,12,0,7	//serdescd_apb_mode_16b=0x1; 	Address(0x21[7:4])
    SPIWrite 0020,12,0,7	//serdesab_apb_pin_intf_en=0x0; 	Address(0x20[7:2])
    SPIWrite 0021,12,0,7	//serdescd_apb_pin_intf_en=0x0; 	Address(0x21[7:2])
    SPIWrite 0016,00,0,7	//jesd_subchip=0x0; 	Address(0x16[7:4])
    SPIWrite 0016,20,0,7	//serdes_jesd=0x1; 	Address(0x16[7:5])
    SPIWrite 7007,00,0,7	//BUS_WIDTH_LANE3=0x0; 	Address(0x9803[7:3])
    SPIWrite 7006,00,0,7
    SPIWrite 7007,00,0,7	//BUS_WIDTH_LANE2=0x0; 	Address(0x9803[7:2])
    SPIWrite 7006,00,0,7
    SPIWrite 7007,00,0,7	//BUS_WIDTH_LANE1=0x0; 	Address(0x9803[7:1])
    SPIWrite 7006,00,0,7
    SPIWrite 7007,00,0,7	//BUS_WIDTH_LANE0=0x0; 	Address(0x9803[7:0])
    SPIWrite 7006,00,0,7
    SPIWrite 0016,40,0,7	//serdes_jesd=0x2; 	Address(0x16[7:5])
    SPIWrite 7007,00,0,7	//BUS_WIDTH_LANE3=0x0; 	Address(0x9803[7:3])
    SPIWrite 7006,00,0,7
    SPIWrite 7007,00,0,7	//BUS_WIDTH_LANE2=0x0; 	Address(0x9803[7:2])
    SPIWrite 7006,00,0,7
    SPIWrite 7007,00,0,7	//BUS_WIDTH_LANE1=0x0; 	Address(0x9803[7:1])
    SPIWrite 7006,00,0,7
    SPIWrite 7007,00,0,7	//BUS_WIDTH_LANE0=0x0; 	Address(0x9803[7:0])
    SPIWrite 7006,00,0,7
    
    //END: Done enabling access to SERDES
    
    
    //START: Setting Serdes Reference Clock Divs
    
    SPIWrite 0016,00,0,7	//serdes_jesd=0x0; 	Address(0x16[7:5])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 0107,00,0,7	//Property_e4h_31_0=0x401; 	Address(0x104[7:0],0x105[7:0],0x106[7:0],0x107[7:0],0x108[7:0])
    SPIWrite 0106,00,0,7
    SPIWrite 0105,04,0,7
    SPIWrite 0104,01,0,7
    
    //END: Setting Serdes Reference Clock Divs
    
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    
    //STEP: serdesConfig/step1 
    
    //START: Resetting Serdes
    
    SPIWrite 0016,20,0,7	//serdes_jesd=0x1; 	Address(0x16[7:5])
    SPIWrite 701b,08,0,7	//DOMAIN_RESET=0x888; 	Address(0x980d[3:0],0x980e[7:0])
    SPIWrite 701a,88,0,7
    SPIWrite 701b,00,0,7	//DOMAIN_RESET=0x0; 	Address(0x980d[3:0],0x980e[7:0])
    SPIWrite 701a,00,0,7
    SPIWrite 701b,07,0,7	//DOMAIN_RESET=0x777; 	Address(0x980d[3:0],0x980e[7:0])
    SPIWrite 701a,77,0,7
    SPIWrite 701b,00,0,7	//DOMAIN_RESET=0x0; 	Address(0x980d[3:0],0x980e[7:0])
    SPIWrite 701a,00,0,7
    
    //END: Done resetting Serdes
    
    
    //START: Resetting Serdes
    
    SPIWrite 0016,40,0,7	//serdes_jesd=0x2; 	Address(0x16[7:5])
    SPIWrite 701b,08,0,7	//DOMAIN_RESET=0x888; 	Address(0x980d[3:0],0x980e[7:0])
    SPIWrite 701a,88,0,7
    SPIWrite 701b,00,0,7	//DOMAIN_RESET=0x0; 	Address(0x980d[3:0],0x980e[7:0])
    SPIWrite 701a,00,0,7
    SPIWrite 701b,07,0,7	//DOMAIN_RESET=0x777; 	Address(0x980d[3:0],0x980e[7:0])
    SPIWrite 701a,77,0,7
    SPIWrite 701b,00,0,7	//DOMAIN_RESET=0x0; 	Address(0x980d[3:0],0x980e[7:0])
    SPIWrite 701a,00,0,7
    
    //END: Done resetting Serdes
    
    SPIWrite 0016,00,0,7	//serdes_jesd=0x0; 	Address(0x16[7:5])
    
    //STEP: serdesConfig/step2 
    
    //START: Configuring the SERDES
    
    SPIWrite 0016,10,0,7	//jesd_subchip=0x1; 	Address(0x16[7:4])
    SPIWrite 00c0,40,0,7	//apb_clk_disable=0x0; 	Address(0xc0[7:0])
    SPIWrite 0020,12,0,7	//serdesab_apb_page_addr_index=0x2; 	Address(0x20[7:0])
    SPIWrite 0021,12,0,7	//serdescd_apb_page_addr_index=0x2; 	Address(0x21[7:0])
    SPIWrite 0016,00,0,7	//jesd_subchip=0x0; 	Address(0x16[7:4])
    SPIWrite 0016,60,0,7	//serdes_jesd=0x3; 	Address(0x16[7:5])
    SPIWrite 7029,ff,0,7
    SPIWrite 7028,f0,0,7
    SPIWrite 701b,0a,0,7
    SPIWrite 701a,aa,0,7
    SPIWrite 701b,00,0,7
    SPIWrite 701a,00,0,7
    SPIWrite 7007,00,0,7
    SPIWrite 7006,00,0,7
    SPIWrite 0016,20,0,7	//serdes_jesd=0x1; 	Address(0x16[7:5])
    SPIWrite 49f1,92,0,7
    SPIWrite 49f0,40,0,7
    SPIWrite 49f3,ea,0,7
    SPIWrite 49f2,80,0,7
    SPIWrite 49e3,e0,0,7
    SPIWrite 49e2,00,0,7
    SPIWrite 49b5,47,0,7
    SPIWrite 49b4,47,0,7
    SPIWrite 49ff,fd,0,7
    SPIWrite 49fe,b0,0,7
    SPIWrite 49ed,1d,0,7
    SPIWrite 49ec,c0,0,7
    SPIWrite 49e7,52,0,7
    SPIWrite 49e6,26,0,7
    SPIWrite 49e5,6e,0,7
    SPIWrite 49e4,b6,0,7
    SPIWrite 49df,a8,0,7
    SPIWrite 49de,28,0,7
    SPIWrite 49eb,63,0,7
    SPIWrite 49ea,98,0,7
    SPIWrite 49e9,b2,0,7
    SPIWrite 49e8,44,0,7
    SPIWrite 49fd,63,0,7
    SPIWrite 49fc,98,0,7
    SPIWrite 49fb,b2,0,7
    SPIWrite 49fa,48,0,7
    SPIWrite 49f9,4a,0,7
    SPIWrite 49f8,44,0,7
    SPIWrite 49f7,79,0,7
    SPIWrite 49f6,b6,0,7
    SPIWrite 49d9,6c,0,7
    SPIWrite 49d8,06,0,7
    SPIWrite 4201,10,0,7
    SPIWrite 4200,6b,0,7
    SPIWrite 4203,64,0,7
    SPIWrite 4202,80,0,7
    SPIWrite 4205,62,0,7
    SPIWrite 4204,00,0,7
    SPIWrite 4207,7b,0,7
    SPIWrite 4206,33,0,7
    SPIWrite 4209,70,0,7
    SPIWrite 4208,0a,0,7
    SPIWrite 420b,bd,0,7
    SPIWrite 420a,68,0,7
    SPIWrite 420d,76,0,7
    SPIWrite 420c,2d,0,7
    SPIWrite 420f,66,0,7
    SPIWrite 420e,ab,0,7
    SPIWrite 4211,d0,0,7
    SPIWrite 4210,08,0,7
    SPIWrite 4213,00,0,7
    SPIWrite 4212,18,0,7
    SPIWrite 4215,66,0,7
    SPIWrite 4214,2c,0,7
    SPIWrite 4217,3d,0,7
    SPIWrite 4216,15,0,7
    SPIWrite 4219,00,0,7
    SPIWrite 4218,80,0,7
    SPIWrite 421b,00,0,7
    SPIWrite 421a,02,0,7
    SPIWrite 421d,34,0,7
    SPIWrite 421c,00,0,7
    SPIWrite 421f,00,0,7
    SPIWrite 421e,00,0,7
    SPIWrite 4221,10,0,7
    SPIWrite 4220,1a,0,7
    SPIWrite 4239,03,0,7
    SPIWrite 4238,40,0,7
    SPIWrite 423b,00,0,7
    SPIWrite 423a,60,0,7
    SPIWrite 423d,00,0,7
    SPIWrite 423c,00,0,7
    SPIWrite 423f,00,0,7
    SPIWrite 423e,80,0,7
    SPIWrite 4277,00,0,7
    SPIWrite 4276,00,0,7
    SPIWrite 4279,00,0,7
    SPIWrite 4278,00,0,7
    SPIWrite 427b,00,0,7
    SPIWrite 427a,00,0,7
    SPIWrite 427d,00,0,7
    SPIWrite 427c,00,0,7
    SPIWrite 4283,93,0,7
    SPIWrite 4282,df,0,7
    SPIWrite 4285,b3,0,7
    SPIWrite 4284,c0,0,7
    SPIWrite 428f,24,0,7
    SPIWrite 428e,a2,0,7
    SPIWrite 4291,cc,0,7
    SPIWrite 4290,34,0,7
    SPIWrite 4293,e3,0,7
    SPIWrite 4292,d7,0,7
    SPIWrite 4295,74,0,7
    SPIWrite 4294,60,0,7
    SPIWrite 4297,06,0,7
    SPIWrite 4296,db,0,7
    SPIWrite 4341,03,0,7
    SPIWrite 4340,01,0,7
    SPIWrite 43e7,00,0,7
    SPIWrite 43e6,80,0,7
    SPIWrite 43e9,fc,0,7
    SPIWrite 43e8,00,0,7
    SPIWrite 43eb,9f,0,7
    SPIWrite 43ea,fe,0,7
    SPIWrite 43ed,00,0,7
    SPIWrite 43ec,60,0,7
    SPIWrite 43ef,10,0,7
    SPIWrite 43ee,00,0,7
    SPIWrite 43f1,68,0,7
    SPIWrite 43f0,64,0,7
    SPIWrite 43f3,92,0,7
    SPIWrite 43f2,30,0,7
    SPIWrite 43f5,00,0,7
    SPIWrite 43f4,00,0,7
    SPIWrite 43f7,6d,0,7
    SPIWrite 43f6,87,0,7
    SPIWrite 43f9,db,0,7
    SPIWrite 43f8,6c,0,7
    SPIWrite 43fb,42,0,7
    SPIWrite 43fa,6e,0,7
    SPIWrite 43fd,62,0,7
    SPIWrite 43fc,7c,0,7
    SPIWrite 43ff,88,0,7
    SPIWrite 43fe,c8,0,7
    SPIWrite 4001,10,0,7
    SPIWrite 4000,6b,0,7
    SPIWrite 4003,64,0,7
    SPIWrite 4002,80,0,7
    SPIWrite 4005,62,0,7
    SPIWrite 4004,00,0,7
    SPIWrite 4007,7b,0,7
    SPIWrite 4006,33,0,7
    SPIWrite 4009,70,0,7
    SPIWrite 4008,0a,0,7
    SPIWrite 400b,bd,0,7
    SPIWrite 400a,68,0,7
    SPIWrite 400d,76,0,7
    SPIWrite 400c,2d,0,7
    SPIWrite 400f,66,0,7
    SPIWrite 400e,ab,0,7
    SPIWrite 4011,d0,0,7
    SPIWrite 4010,08,0,7
    SPIWrite 4013,00,0,7
    SPIWrite 4012,18,0,7
    SPIWrite 4015,66,0,7
    SPIWrite 4014,2c,0,7
    SPIWrite 4017,3d,0,7
    SPIWrite 4016,15,0,7
    SPIWrite 4019,00,0,7
    SPIWrite 4018,80,0,7
    SPIWrite 401b,00,0,7
    SPIWrite 401a,02,0,7
    SPIWrite 401d,34,0,7
    SPIWrite 401c,00,0,7
    SPIWrite 401f,00,0,7
    SPIWrite 401e,00,0,7
    SPIWrite 4021,10,0,7
    SPIWrite 4020,1a,0,7
    SPIWrite 4039,03,0,7
    SPIWrite 4038,40,0,7
    SPIWrite 403b,00,0,7
    SPIWrite 403a,60,0,7
    SPIWrite 403d,00,0,7
    SPIWrite 403c,00,0,7
    SPIWrite 403f,00,0,7
    SPIWrite 403e,80,0,7
    SPIWrite 4077,00,0,7
    SPIWrite 4076,00,0,7
    SPIWrite 4079,00,0,7
    SPIWrite 4078,00,0,7
    SPIWrite 407b,00,0,7
    SPIWrite 407a,00,0,7
    SPIWrite 407d,00,0,7
    SPIWrite 407c,00,0,7
    SPIWrite 4083,93,0,7
    SPIWrite 4082,df,0,7
    SPIWrite 4085,b3,0,7
    SPIWrite 4084,c0,0,7
    SPIWrite 408f,24,0,7
    SPIWrite 408e,a2,0,7
    SPIWrite 4091,cc,0,7
    SPIWrite 4090,34,0,7
    SPIWrite 4093,e3,0,7
    SPIWrite 4092,d7,0,7
    SPIWrite 4095,74,0,7
    SPIWrite 4094,60,0,7
    SPIWrite 4097,06,0,7
    SPIWrite 4096,db,0,7
    SPIWrite 4141,03,0,7
    SPIWrite 4140,01,0,7
    SPIWrite 41e7,00,0,7
    SPIWrite 41e6,80,0,7
    SPIWrite 41e9,fc,0,7
    SPIWrite 41e8,00,0,7
    SPIWrite 41eb,9f,0,7
    SPIWrite 41ea,fe,0,7
    SPIWrite 41ed,00,0,7
    SPIWrite 41ec,00,0,7
    SPIWrite 41ef,10,0,7
    SPIWrite 41ee,00,0,7
    SPIWrite 41f1,68,0,7
    SPIWrite 41f0,64,0,7
    SPIWrite 41f3,92,0,7
    SPIWrite 41f2,30,0,7
    SPIWrite 41f5,00,0,7
    SPIWrite 41f4,00,0,7
    SPIWrite 41f7,6d,0,7
    SPIWrite 41f6,87,0,7
    SPIWrite 41f9,db,0,7
    SPIWrite 41f8,6c,0,7
    SPIWrite 41fb,42,0,7
    SPIWrite 41fa,6e,0,7
    SPIWrite 41fd,62,0,7
    SPIWrite 41fc,7c,0,7
    SPIWrite 41ff,88,0,7
    SPIWrite 41fe,c8,0,7
    SPIWrite 4401,10,0,7
    SPIWrite 4400,6b,0,7
    SPIWrite 4403,64,0,7
    SPIWrite 4402,80,0,7
    SPIWrite 4405,62,0,7
    SPIWrite 4404,00,0,7
    SPIWrite 4407,7b,0,7
    SPIWrite 4406,33,0,7
    SPIWrite 4409,70,0,7
    SPIWrite 4408,0a,0,7
    SPIWrite 440b,bd,0,7
    SPIWrite 440a,68,0,7
    SPIWrite 440d,76,0,7
    SPIWrite 440c,2d,0,7
    SPIWrite 440f,66,0,7
    SPIWrite 440e,ab,0,7
    SPIWrite 4411,d0,0,7
    SPIWrite 4410,08,0,7
    SPIWrite 4413,00,0,7
    SPIWrite 4412,18,0,7
    SPIWrite 4415,66,0,7
    SPIWrite 4414,2c,0,7
    SPIWrite 4417,3d,0,7
    SPIWrite 4416,15,0,7
    SPIWrite 4419,00,0,7
    SPIWrite 4418,80,0,7
    SPIWrite 441b,00,0,7
    SPIWrite 441a,02,0,7
    SPIWrite 441d,34,0,7
    SPIWrite 441c,00,0,7
    SPIWrite 441f,00,0,7
    SPIWrite 441e,00,0,7
    SPIWrite 4421,10,0,7
    SPIWrite 4420,1a,0,7
    SPIWrite 4439,03,0,7
    SPIWrite 4438,40,0,7
    SPIWrite 443b,00,0,7
    SPIWrite 443a,60,0,7
    SPIWrite 443d,00,0,7
    SPIWrite 443c,00,0,7
    SPIWrite 443f,00,0,7
    SPIWrite 443e,80,0,7
    SPIWrite 4477,00,0,7
    SPIWrite 4476,00,0,7
    SPIWrite 4479,00,0,7
    SPIWrite 4478,00,0,7
    SPIWrite 447b,00,0,7
    SPIWrite 447a,00,0,7
    SPIWrite 447d,00,0,7
    SPIWrite 447c,00,0,7
    SPIWrite 4483,93,0,7
    SPIWrite 4482,df,0,7
    SPIWrite 4485,b3,0,7
    SPIWrite 4484,c0,0,7
    SPIWrite 448f,24,0,7
    SPIWrite 448e,a2,0,7
    SPIWrite 4491,cc,0,7
    SPIWrite 4490,34,0,7
    SPIWrite 4493,e3,0,7
    SPIWrite 4492,d7,0,7
    SPIWrite 4495,74,0,7
    SPIWrite 4494,60,0,7
    SPIWrite 4497,06,0,7
    SPIWrite 4496,db,0,7
    SPIWrite 4541,03,0,7
    SPIWrite 4540,01,0,7
    SPIWrite 45e7,00,0,7
    SPIWrite 45e6,80,0,7
    SPIWrite 45e9,fc,0,7
    SPIWrite 45e8,00,0,7
    SPIWrite 45eb,1f,0,7
    SPIWrite 45ea,fe,0,7
    SPIWrite 45ed,00,0,7
    SPIWrite 45ec,00,0,7
    SPIWrite 45ef,10,0,7
    SPIWrite 45ee,00,0,7
    SPIWrite 45f1,68,0,7
    SPIWrite 45f0,64,0,7
    SPIWrite 45f3,92,0,7
    SPIWrite 45f2,30,0,7
    SPIWrite 45f5,00,0,7
    SPIWrite 45f4,00,0,7
    SPIWrite 45f7,6d,0,7
    SPIWrite 45f6,87,0,7
    SPIWrite 45f9,db,0,7
    SPIWrite 45f8,6c,0,7
    SPIWrite 45fb,42,0,7
    SPIWrite 45fa,6e,0,7
    SPIWrite 45fd,62,0,7
    SPIWrite 45fc,7c,0,7
    SPIWrite 45ff,88,0,7
    SPIWrite 45fe,c8,0,7
    SPIWrite 4601,10,0,7
    SPIWrite 4600,6b,0,7
    SPIWrite 4603,64,0,7
    SPIWrite 4602,80,0,7
    SPIWrite 4605,62,0,7
    SPIWrite 4604,00,0,7
    SPIWrite 4607,7b,0,7
    SPIWrite 4606,33,0,7
    SPIWrite 4609,70,0,7
    SPIWrite 4608,0a,0,7
    SPIWrite 460b,bd,0,7
    SPIWrite 460a,68,0,7
    SPIWrite 460d,76,0,7
    SPIWrite 460c,2d,0,7
    SPIWrite 460f,66,0,7
    SPIWrite 460e,ab,0,7
    SPIWrite 4611,d0,0,7
    SPIWrite 4610,08,0,7
    SPIWrite 4613,00,0,7
    SPIWrite 4612,18,0,7
    SPIWrite 4615,66,0,7
    SPIWrite 4614,2c,0,7
    SPIWrite 4617,3d,0,7
    SPIWrite 4616,15,0,7
    SPIWrite 4619,00,0,7
    SPIWrite 4618,80,0,7
    SPIWrite 461b,00,0,7
    SPIWrite 461a,02,0,7
    SPIWrite 461d,34,0,7
    SPIWrite 461c,00,0,7
    SPIWrite 461f,00,0,7
    SPIWrite 461e,00,0,7
    SPIWrite 4621,10,0,7
    SPIWrite 4620,1a,0,7
    SPIWrite 4639,03,0,7
    SPIWrite 4638,40,0,7
    SPIWrite 463b,00,0,7
    SPIWrite 463a,60,0,7
    SPIWrite 463d,00,0,7
    SPIWrite 463c,00,0,7
    SPIWrite 463f,00,0,7
    SPIWrite 463e,80,0,7
    SPIWrite 4677,00,0,7
    SPIWrite 4676,00,0,7
    SPIWrite 4679,00,0,7
    SPIWrite 4678,00,0,7
    SPIWrite 467b,00,0,7
    SPIWrite 467a,00,0,7
    SPIWrite 467d,00,0,7
    SPIWrite 467c,00,0,7
    SPIWrite 4683,93,0,7
    SPIWrite 4682,df,0,7
    SPIWrite 4685,b3,0,7
    SPIWrite 4684,c0,0,7
    SPIWrite 468f,24,0,7
    SPIWrite 468e,a2,0,7
    SPIWrite 4691,cc,0,7
    SPIWrite 4690,34,0,7
    SPIWrite 4693,e3,0,7
    SPIWrite 4692,d7,0,7
    SPIWrite 4695,74,0,7
    SPIWrite 4694,60,0,7
    SPIWrite 4697,06,0,7
    SPIWrite 4696,db,0,7
    SPIWrite 4741,03,0,7
    SPIWrite 4740,01,0,7
    SPIWrite 47e7,00,0,7
    SPIWrite 47e6,80,0,7
    SPIWrite 47e9,fc,0,7
    SPIWrite 47e8,00,0,7
    SPIWrite 47eb,1f,0,7
    SPIWrite 47ea,fe,0,7
    SPIWrite 47ed,00,0,7
    SPIWrite 47ec,00,0,7
    SPIWrite 47ef,10,0,7
    SPIWrite 47ee,00,0,7
    SPIWrite 47f1,68,0,7
    SPIWrite 47f0,64,0,7
    SPIWrite 47f3,92,0,7
    SPIWrite 47f2,30,0,7
    SPIWrite 47f5,00,0,7
    SPIWrite 47f4,00,0,7
    SPIWrite 47f7,6d,0,7
    SPIWrite 47f6,87,0,7
    SPIWrite 47f9,db,0,7
    SPIWrite 47f8,6c,0,7
    SPIWrite 47fb,42,0,7
    SPIWrite 47fa,6e,0,7
    SPIWrite 47fd,62,0,7
    SPIWrite 47fc,7c,0,7
    SPIWrite 47ff,88,0,7
    SPIWrite 47fe,c8,0,7
    SPIWrite 0016,40,0,7	//serdes_jesd=0x2; 	Address(0x16[7:5])
    SPIWrite 49f1,82,0,7
    SPIWrite 49f0,40,0,7
    SPIWrite 49f3,e2,0,7
    SPIWrite 49f2,80,0,7
    SPIWrite 49e3,b0,0,7
    SPIWrite 49e2,00,0,7
    SPIWrite 49b5,47,0,7
    SPIWrite 49b4,47,0,7
    SPIWrite 49ff,ed,0,7
    SPIWrite 49fe,b0,0,7
    SPIWrite 49ed,0d,0,7
    SPIWrite 49ec,c0,0,7
    SPIWrite 49e7,52,0,7
    SPIWrite 49e6,26,0,7
    SPIWrite 49e5,6e,0,7
    SPIWrite 49e4,b6,0,7
    SPIWrite 49df,a8,0,7
    SPIWrite 49de,28,0,7
    SPIWrite 49eb,63,0,7
    SPIWrite 49ea,18,0,7
    SPIWrite 49e9,b2,0,7
    SPIWrite 49e8,44,0,7
    SPIWrite 49fd,63,0,7
    SPIWrite 49fc,18,0,7
    SPIWrite 49fb,b2,0,7
    SPIWrite 49fa,48,0,7
    SPIWrite 49f9,4a,0,7
    SPIWrite 49f8,44,0,7
    SPIWrite 49f7,79,0,7
    SPIWrite 49f6,b6,0,7
    SPIWrite 49d9,6c,0,7
    SPIWrite 49d8,06,0,7
    SPIWrite 4601,10,0,7
    SPIWrite 4600,6b,0,7
    SPIWrite 4603,64,0,7
    SPIWrite 4602,80,0,7
    SPIWrite 4605,62,0,7
    SPIWrite 4604,00,0,7
    SPIWrite 4607,7b,0,7
    SPIWrite 4606,33,0,7
    SPIWrite 4609,70,0,7
    SPIWrite 4608,0a,0,7
    SPIWrite 460b,bd,0,7
    SPIWrite 460a,68,0,7
    SPIWrite 460d,76,0,7
    SPIWrite 460c,2d,0,7
    SPIWrite 460f,66,0,7
    SPIWrite 460e,ab,0,7
    SPIWrite 4611,d0,0,7
    SPIWrite 4610,08,0,7
    SPIWrite 4613,00,0,7
    SPIWrite 4612,18,0,7
    SPIWrite 4615,66,0,7
    SPIWrite 4614,2c,0,7
    SPIWrite 4617,3d,0,7
    SPIWrite 4616,15,0,7
    SPIWrite 4619,00,0,7
    SPIWrite 4618,80,0,7
    SPIWrite 461b,00,0,7
    SPIWrite 461a,02,0,7
    SPIWrite 461d,34,0,7
    SPIWrite 461c,00,0,7
    SPIWrite 461f,00,0,7
    SPIWrite 461e,00,0,7
    SPIWrite 4621,10,0,7
    SPIWrite 4620,1a,0,7
    SPIWrite 4639,03,0,7
    SPIWrite 4638,40,0,7
    SPIWrite 463b,00,0,7
    SPIWrite 463a,60,0,7
    SPIWrite 463d,00,0,7
    SPIWrite 463c,00,0,7
    SPIWrite 463f,00,0,7
    SPIWrite 463e,80,0,7
    SPIWrite 4677,00,0,7
    SPIWrite 4676,00,0,7
    SPIWrite 4679,00,0,7
    SPIWrite 4678,00,0,7
    SPIWrite 467b,00,0,7
    SPIWrite 467a,00,0,7
    SPIWrite 467d,00,0,7
    SPIWrite 467c,00,0,7
    SPIWrite 4683,93,0,7
    SPIWrite 4682,df,0,7
    SPIWrite 4685,b3,0,7
    SPIWrite 4684,c0,0,7
    SPIWrite 468f,24,0,7
    SPIWrite 468e,a2,0,7
    SPIWrite 4691,cc,0,7
    SPIWrite 4690,34,0,7
    SPIWrite 4693,e3,0,7
    SPIWrite 4692,d7,0,7
    SPIWrite 4695,74,0,7
    SPIWrite 4694,60,0,7
    SPIWrite 4697,06,0,7
    SPIWrite 4696,db,0,7
    SPIWrite 4741,03,0,7
    SPIWrite 4740,01,0,7
    SPIWrite 47e7,00,0,7
    SPIWrite 47e6,80,0,7
    SPIWrite 47e9,fc,0,7
    SPIWrite 47e8,00,0,7
    SPIWrite 47eb,1f,0,7
    SPIWrite 47ea,fe,0,7
    SPIWrite 47ed,00,0,7
    SPIWrite 47ec,00,0,7
    SPIWrite 47ef,10,0,7
    SPIWrite 47ee,00,0,7
    SPIWrite 47f1,68,0,7
    SPIWrite 47f0,64,0,7
    SPIWrite 47f3,92,0,7
    SPIWrite 47f2,30,0,7
    SPIWrite 47f5,00,0,7
    SPIWrite 47f4,00,0,7
    SPIWrite 47f7,6d,0,7
    SPIWrite 47f6,83,0,7
    SPIWrite 47f9,db,0,7
    SPIWrite 47f8,6c,0,7
    SPIWrite 47fb,42,0,7
    SPIWrite 47fa,6e,0,7
    SPIWrite 47fd,62,0,7
    SPIWrite 47fc,78,0,7
    SPIWrite 47ff,08,0,7
    SPIWrite 47fe,c8,0,7
    SPIWrite 4401,10,0,7
    SPIWrite 4400,6b,0,7
    SPIWrite 4403,64,0,7
    SPIWrite 4402,80,0,7
    SPIWrite 4405,62,0,7
    SPIWrite 4404,00,0,7
    SPIWrite 4407,7b,0,7
    SPIWrite 4406,33,0,7
    SPIWrite 4409,70,0,7
    SPIWrite 4408,0a,0,7
    SPIWrite 440b,bd,0,7
    SPIWrite 440a,68,0,7
    SPIWrite 440d,76,0,7
    SPIWrite 440c,2d,0,7
    SPIWrite 440f,66,0,7
    SPIWrite 440e,ab,0,7
    SPIWrite 4411,d0,0,7
    SPIWrite 4410,08,0,7
    SPIWrite 4413,00,0,7
    SPIWrite 4412,18,0,7
    SPIWrite 4415,66,0,7
    SPIWrite 4414,2c,0,7
    SPIWrite 4417,3d,0,7
    SPIWrite 4416,15,0,7
    SPIWrite 4419,00,0,7
    SPIWrite 4418,80,0,7
    SPIWrite 441b,00,0,7
    SPIWrite 441a,02,0,7
    SPIWrite 441d,34,0,7
    SPIWrite 441c,00,0,7
    SPIWrite 441f,00,0,7
    SPIWrite 441e,00,0,7
    SPIWrite 4421,10,0,7
    SPIWrite 4420,1a,0,7
    SPIWrite 4439,03,0,7
    SPIWrite 4438,40,0,7
    SPIWrite 443b,00,0,7
    SPIWrite 443a,60,0,7
    SPIWrite 443d,00,0,7
    SPIWrite 443c,00,0,7
    SPIWrite 443f,00,0,7
    SPIWrite 443e,80,0,7
    SPIWrite 4477,00,0,7
    SPIWrite 4476,00,0,7
    SPIWrite 4479,00,0,7
    SPIWrite 4478,00,0,7
    SPIWrite 447b,00,0,7
    SPIWrite 447a,00,0,7
    SPIWrite 447d,00,0,7
    SPIWrite 447c,00,0,7
    SPIWrite 4483,93,0,7
    SPIWrite 4482,df,0,7
    SPIWrite 4485,b3,0,7
    SPIWrite 4484,c0,0,7
    SPIWrite 448f,24,0,7
    SPIWrite 448e,a2,0,7
    SPIWrite 4491,cc,0,7
    SPIWrite 4490,34,0,7
    SPIWrite 4493,e3,0,7
    SPIWrite 4492,d7,0,7
    SPIWrite 4495,74,0,7
    SPIWrite 4494,60,0,7
    SPIWrite 4497,06,0,7
    SPIWrite 4496,db,0,7
    SPIWrite 4541,03,0,7
    SPIWrite 4540,01,0,7
    SPIWrite 45e7,00,0,7
    SPIWrite 45e6,80,0,7
    SPIWrite 45e9,fc,0,7
    SPIWrite 45e8,00,0,7
    SPIWrite 45eb,1f,0,7
    SPIWrite 45ea,fe,0,7
    SPIWrite 45ed,00,0,7
    SPIWrite 45ec,00,0,7
    SPIWrite 45ef,10,0,7
    SPIWrite 45ee,00,0,7
    SPIWrite 45f1,68,0,7
    SPIWrite 45f0,64,0,7
    SPIWrite 45f3,92,0,7
    SPIWrite 45f2,30,0,7
    SPIWrite 45f5,00,0,7
    SPIWrite 45f4,00,0,7
    SPIWrite 45f7,6d,0,7
    SPIWrite 45f6,83,0,7
    SPIWrite 45f9,db,0,7
    SPIWrite 45f8,6c,0,7
    SPIWrite 45fb,42,0,7
    SPIWrite 45fa,6e,0,7
    SPIWrite 45fd,62,0,7
    SPIWrite 45fc,78,0,7
    SPIWrite 45ff,08,0,7
    SPIWrite 45fe,c8,0,7
    SPIWrite 4001,10,0,7
    SPIWrite 4000,6b,0,7
    SPIWrite 4003,64,0,7
    SPIWrite 4002,80,0,7
    SPIWrite 4005,62,0,7
    SPIWrite 4004,00,0,7
    SPIWrite 4007,7b,0,7
    SPIWrite 4006,33,0,7
    SPIWrite 4009,70,0,7
    SPIWrite 4008,0a,0,7
    SPIWrite 400b,bd,0,7
    SPIWrite 400a,68,0,7
    SPIWrite 400d,76,0,7
    SPIWrite 400c,2d,0,7
    SPIWrite 400f,66,0,7
    SPIWrite 400e,ab,0,7
    SPIWrite 4011,d0,0,7
    SPIWrite 4010,08,0,7
    SPIWrite 4013,00,0,7
    SPIWrite 4012,18,0,7
    SPIWrite 4015,66,0,7
    SPIWrite 4014,2c,0,7
    SPIWrite 4017,3d,0,7
    SPIWrite 4016,15,0,7
    SPIWrite 4019,00,0,7
    SPIWrite 4018,80,0,7
    SPIWrite 401b,00,0,7
    SPIWrite 401a,02,0,7
    SPIWrite 401d,34,0,7
    SPIWrite 401c,00,0,7
    SPIWrite 401f,00,0,7
    SPIWrite 401e,00,0,7
    SPIWrite 4021,10,0,7
    SPIWrite 4020,1a,0,7
    SPIWrite 4039,03,0,7
    SPIWrite 4038,40,0,7
    SPIWrite 403b,00,0,7
    SPIWrite 403a,60,0,7
    SPIWrite 403d,00,0,7
    SPIWrite 403c,00,0,7
    SPIWrite 403f,00,0,7
    SPIWrite 403e,80,0,7
    SPIWrite 4077,00,0,7
    SPIWrite 4076,00,0,7
    SPIWrite 4079,00,0,7
    SPIWrite 4078,00,0,7
    SPIWrite 407b,00,0,7
    SPIWrite 407a,00,0,7
    SPIWrite 407d,00,0,7
    SPIWrite 407c,00,0,7
    SPIWrite 4083,93,0,7
    SPIWrite 4082,df,0,7
    SPIWrite 4085,b3,0,7
    SPIWrite 4084,c0,0,7
    SPIWrite 408f,24,0,7
    SPIWrite 408e,a2,0,7
    SPIWrite 4091,cc,0,7
    SPIWrite 4090,34,0,7
    SPIWrite 4093,e3,0,7
    SPIWrite 4092,d7,0,7
    SPIWrite 4095,74,0,7
    SPIWrite 4094,60,0,7
    SPIWrite 4097,06,0,7
    SPIWrite 4096,db,0,7
    SPIWrite 4141,03,0,7
    SPIWrite 4140,01,0,7
    SPIWrite 41e7,00,0,7
    SPIWrite 41e6,80,0,7
    SPIWrite 41e9,fc,0,7
    SPIWrite 41e8,00,0,7
    SPIWrite 41eb,1f,0,7
    SPIWrite 41ea,fe,0,7
    SPIWrite 41ed,00,0,7
    SPIWrite 41ec,00,0,7
    SPIWrite 41ef,10,0,7
    SPIWrite 41ee,00,0,7
    SPIWrite 41f1,68,0,7
    SPIWrite 41f0,64,0,7
    SPIWrite 41f3,92,0,7
    SPIWrite 41f2,30,0,7
    SPIWrite 41f5,00,0,7
    SPIWrite 41f4,00,0,7
    SPIWrite 41f7,6d,0,7
    SPIWrite 41f6,83,0,7
    SPIWrite 41f9,db,0,7
    SPIWrite 41f8,6c,0,7
    SPIWrite 41fb,42,0,7
    SPIWrite 41fa,6e,0,7
    SPIWrite 41fd,62,0,7
    SPIWrite 41fc,78,0,7
    SPIWrite 41ff,08,0,7
    SPIWrite 41fe,c8,0,7
    SPIWrite 4201,10,0,7
    SPIWrite 4200,6b,0,7
    SPIWrite 4203,64,0,7
    SPIWrite 4202,80,0,7
    SPIWrite 4205,62,0,7
    SPIWrite 4204,00,0,7
    SPIWrite 4207,7b,0,7
    SPIWrite 4206,33,0,7
    SPIWrite 4209,70,0,7
    SPIWrite 4208,0a,0,7
    SPIWrite 420b,bd,0,7
    SPIWrite 420a,68,0,7
    SPIWrite 420d,76,0,7
    SPIWrite 420c,2d,0,7
    SPIWrite 420f,66,0,7
    SPIWrite 420e,ab,0,7
    SPIWrite 4211,d0,0,7
    SPIWrite 4210,08,0,7
    SPIWrite 4213,00,0,7
    SPIWrite 4212,18,0,7
    SPIWrite 4215,66,0,7
    SPIWrite 4214,2c,0,7
    SPIWrite 4217,3d,0,7
    SPIWrite 4216,15,0,7
    SPIWrite 4219,00,0,7
    SPIWrite 4218,80,0,7
    SPIWrite 421b,00,0,7
    SPIWrite 421a,02,0,7
    SPIWrite 421d,34,0,7
    SPIWrite 421c,00,0,7
    SPIWrite 421f,00,0,7
    SPIWrite 421e,00,0,7
    SPIWrite 4221,10,0,7
    SPIWrite 4220,1a,0,7
    SPIWrite 4239,03,0,7
    SPIWrite 4238,40,0,7
    SPIWrite 423b,00,0,7
    SPIWrite 423a,60,0,7
    SPIWrite 423d,00,0,7
    SPIWrite 423c,00,0,7
    SPIWrite 423f,00,0,7
    SPIWrite 423e,80,0,7
    SPIWrite 4277,00,0,7
    SPIWrite 4276,00,0,7
    SPIWrite 4279,00,0,7
    SPIWrite 4278,00,0,7
    SPIWrite 427b,00,0,7
    SPIWrite 427a,00,0,7
    SPIWrite 427d,00,0,7
    SPIWrite 427c,00,0,7
    SPIWrite 4283,93,0,7
    SPIWrite 4282,df,0,7
    SPIWrite 4285,b3,0,7
    SPIWrite 4284,c0,0,7
    SPIWrite 428f,24,0,7
    SPIWrite 428e,a2,0,7
    SPIWrite 4291,cc,0,7
    SPIWrite 4290,34,0,7
    SPIWrite 4293,e3,0,7
    SPIWrite 4292,d7,0,7
    SPIWrite 4295,74,0,7
    SPIWrite 4294,60,0,7
    SPIWrite 4297,06,0,7
    SPIWrite 4296,db,0,7
    SPIWrite 4341,03,0,7
    SPIWrite 4340,01,0,7
    SPIWrite 43e7,00,0,7
    SPIWrite 43e6,80,0,7
    SPIWrite 43e9,fc,0,7
    SPIWrite 43e8,00,0,7
    SPIWrite 43eb,1f,0,7
    SPIWrite 43ea,fe,0,7
    SPIWrite 43ed,00,0,7
    SPIWrite 43ec,60,0,7
    SPIWrite 43ef,10,0,7
    SPIWrite 43ee,00,0,7
    SPIWrite 43f1,68,0,7
    SPIWrite 43f0,64,0,7
    SPIWrite 43f3,92,0,7
    SPIWrite 43f2,30,0,7
    SPIWrite 43f5,00,0,7
    SPIWrite 43f4,00,0,7
    SPIWrite 43f7,6d,0,7
    SPIWrite 43f6,83,0,7
    SPIWrite 43f9,db,0,7
    SPIWrite 43f8,6c,0,7
    SPIWrite 43fb,42,0,7
    SPIWrite 43fa,6e,0,7
    SPIWrite 43fd,62,0,7
    SPIWrite 43fc,78,0,7
    SPIWrite 43ff,08,0,7
    SPIWrite 43fe,c8,0,7
    SPIWrite 0016,60,0,7	//serdes_jesd=0x3; 	Address(0x16[7:5])
    SPIWrite 7007,00,0,7	//BUS_WIDTH_LANE0=0x0; 	Address(0x9803[7:0])
    SPIWrite 7006,00,0,7
    SPIWrite 7007,00,0,7	//BUS_WIDTH_LANE1=0x0; 	Address(0x9803[7:1])
    SPIWrite 7006,00,0,7
    SPIWrite 7007,00,0,7	//BUS_WIDTH_LANE2=0x0; 	Address(0x9803[7:2])
    SPIWrite 7006,00,0,7
    SPIWrite 7007,00,0,7	//BUS_WIDTH_LANE3=0x0; 	Address(0x9803[7:3])
    SPIWrite 7006,00,0,7
    SPIWrite 0016,00,0,7	//serdes_jesd=0x0; 	Address(0x16[7:5])
    
    //END: Done configuring the SERDES
    
    
    //STEP: serdesConfig/step3 
    
    //START: Loading Serdes Firmware.
    
    SPIWrite 0018,20,5,5	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x10300; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,01,0,7
    SPIWrite 00a1,03,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 0193,79,0,7	//MACRO_OPCODE=0x79; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x10301; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,01,0,7
    SPIWrite 00a1,03,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,79,0,7	//MACRO_OPCODE=0x79; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0016,60,0,7	//serdes_jesd=0x3; 	Address(0x16[7:5])
    SPIWrite 702d,00,0,7
    SPIWrite 702c,05,0,7
    SPIWrite 7025,00,0,7
    SPIWrite 7024,08,0,7
    SPIWrite 702b,e0,0,7
    SPIWrite 702a,20,0,7
    SPIWrite 702d,00,0,7
    SPIWrite 702c,02,0,7
    SPIWrite 7025,00,0,7
    SPIWrite 7024,50,0,7
    SPIWrite 702b,e0,0,7
    SPIWrite 702a,20,0,7
    SPIWrite 701b,07,0,7	//DOMAIN_RESET=0x777; 	Address(0x980d[3:0],0x980e[7:0])
    SPIWrite 701a,77,0,7
    SPIWrite 701b,00,0,7	//DOMAIN_RESET=0x0; 	Address(0x980d[3:0],0x980e[7:0])
    SPIWrite 701a,00,0,7
    
    WAIT 5
    SPIWrite 0016,00,0,7	//serdes_jesd=0x0; 	Address(0x16[7:5])
    
    //END: Done loading Serdes Firmware.
    
    
    //STEP: topConfig/step0 
    
    //START: Setting Top Control Modes
    
    SPIWrite 0015,80,0,7	//timing_controller=0x1; 	Address(0x15[7:7])
    SPIWrite 0081,00,0,7	//fdd_mode=0x0; 	Address(0x81[7:0])
    SPIWrite 0080,01,0,7	//mode_2t2r=0x1; 	Address(0x80[7:0])
    SPIWrite 008c,01,0,7	//use_per_ch_txab_tdd=0x1; 	Address(0x8c[7:0])
    SPIWrite 008d,01,0,7	//use_per_ch_txcd_tdd=0x1; 	Address(0x8d[7:0])
    SPIWrite 00a0,01,0,7	//use_per_ch_rxab_tdd=0x1; 	Address(0xa0[7:0])
    SPIWrite 00a1,01,0,7	//use_per_ch_rxcd_tdd=0x1; 	Address(0xa1[7:0])
    SPIWrite 0015,00,0,7	//timing_controller=0x0; 	Address(0x15[7:7])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 0129,00,0,7	//Property_108h_11_8=0x0; 	Address(0x129[7:0])
    SPIWrite 012a,00,0,7	//Property_108h_19_16=0x0; 	Address(0x12a[7:0])
    SPIWrite 012b,00,0,7	//Property_108h_25_24=0x0; 	Address(0x12b[7:0])
    SPIWrite 00dc,00,0,7	//Property_bch_1_0=0x0; 	Address(0xdc[7:0])
    SPIWrite 00df,00,0,7	//Property_bch_25_24=0x0; 	Address(0xdf[7:0])
    SPIWrite 00c4,00,0,7	//Property_a4h_1_0=0x0; 	Address(0xc4[7:0])
    SPIWrite 00c7,00,0,7	//Property_a4h_25_24=0x0; 	Address(0xc7[7:0])
    SPIWrite 00cc,00,0,7	//Property_ach_1_0=0x0; 	Address(0xcc[7:0])
    SPIWrite 00cf,00,0,7	//Property_ach_25_24=0x0; 	Address(0xcf[7:0])
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0015,80,0,7	//timing_controller=0x1; 	Address(0x15[7:7])
    SPIWrite 0399,00,0,7	//Property_378h_15_0=0x0; 	Address(0x398[7:0],0x399[7:0],0x39a[7:0])
    SPIWrite 0398,00,0,7
    SPIWrite 039b,00,0,7	//Property_378h_31_16=0xe1; 	Address(0x39a[7:0],0x39b[7:0],0x39c[7:0])
    SPIWrite 039a,e1,0,7
    SPIWrite 0451,00,0,7	//Property_430h_15_0=0x0; 	Address(0x450[7:0],0x451[7:0],0x452[7:0])
    SPIWrite 0450,00,0,7
    SPIWrite 0453,00,0,7	//Property_430h_31_16=0xe1; 	Address(0x452[7:0],0x453[7:0],0x454[7:0])
    SPIWrite 0452,e1,0,7
    SPIWrite 0509,00,0,7	//Property_4e8h_15_0=0x0; 	Address(0x508[7:0],0x509[7:0],0x50a[7:0])
    SPIWrite 0508,00,0,7
    SPIWrite 050b,00,0,7	//Property_4e8h_31_16=0xe1; 	Address(0x50a[7:0],0x50b[7:0],0x50c[7:0])
    SPIWrite 050a,e1,0,7
    SPIWrite 05c1,00,0,7	//Property_5a0h_15_0=0x0; 	Address(0x5c0[7:0],0x5c1[7:0],0x5c2[7:0])
    SPIWrite 05c0,00,0,7
    SPIWrite 05c3,00,0,7	//Property_5a0h_31_16=0xe1; 	Address(0x5c2[7:0],0x5c3[7:0],0x5c4[7:0])
    SPIWrite 05c2,e1,0,7
    SPIWrite 0679,00,0,7	//Property_658h_15_0=0x0; 	Address(0x678[7:0],0x679[7:0],0x67a[7:0])
    SPIWrite 0678,00,0,7
    SPIWrite 067b,00,0,7	//Property_658h_31_16=0xe1; 	Address(0x67a[7:0],0x67b[7:0],0x67c[7:0])
    SPIWrite 067a,e1,0,7
    SPIWrite 0731,00,0,7	//Property_710h_15_0=0x0; 	Address(0x730[7:0],0x731[7:0],0x732[7:0])
    SPIWrite 0730,00,0,7
    SPIWrite 0733,00,0,7	//Property_710h_31_16=0xe1; 	Address(0x732[7:0],0x733[7:0],0x734[7:0])
    SPIWrite 0732,e1,0,7
    
    //END: Setting Top Control Modes
    
    SPIWrite 0015,00,0,7	//timing_controller=0x0; 	Address(0x15[7:7])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0180,00,0,7	//Property_160h_3_0=0x0; 	Address(0x180[7:0])
    SPIWrite 0181,00,0,7	//Property_160h_11_8=0x0; 	Address(0x181[7:0])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    
    //STEP: topConfig/step1 
    SPIWrite 0013,40,6,7	//dsa_page1=0x1; 	Address(0x13[7:6])
    SPIWrite 054e,00,0,0	//Property_52ch_16_16=0x0; 	Address(0x54e[7:0])
    SPIWrite 0013,80,6,7	//dsa_page1=0x2; 	Address(0x13[7:6])
    SPIWrite 054e,00,0,0	//Property_52ch_16_16=0x0; 	Address(0x54e[7:0])
    SPIWrite 0013,c0,0,7	//dsa_page1=0x3; 	Address(0x13[7:6])
    SPIBurstWrite 0744,[03, 00, 00, 00, 0f, 08, 00, 00, 13, 04, 01, 00, 27, 88, 01, 00, 37, 08, 02, 00, 47, 8c, 02, 00, 57, 10, 03, 01, 67, 94, 03, 01, 7b, 18, 04, 01, 8b, 9c, 04, 01, 9f, 20, 05, 02, b3, a4, 05, 02, c7, 28, 06, 02, db, 2c, 07, 03, ef, b0, 07, 03, 03, b5, 08, 04, 17, b9, 09, 04, 2b, bd, 0a, 05, 3f, c1, 0b, 05, 53, 45, 0c, 05, 6b, 49, 0d, 06, 7f, 4d, 0e, 07, 93, 51, 0f, 07, a7, d5, 0f, 08, b3, 55, 10, 08, c7, 59, 11, 09, db, 5d, 12, 0a, f3, 61, 13, 0b, 13, e6, 14, 0c, 27, ea, 15, 0d, 3b, ee, 16, 0e, 4f, 72, 17, 11, 63, f6, 17, 11, 77, 7a, 18, 13, 8b, fa, 18, 15, 9f, fe, 19, 18, b3, 7e, 1a, 18, c7, fe, 1a, 19, db, 7e, 1b, 1d, ef, fe, 1b, 1d, ff, 7e, 1c, 1f, 13, ff, 1c, 1f, 23, 7f, 1d, 1f, 33, ff, 1d, 1f, 3f, 7f, 1e, 1f, 4b, ff, 1e, 1f, 53, 7f, 1f, 1f, 5f, ff, 1f, 1f, 67, ff, 1f, 1f, 73, ff, 1f, 1f]
    SPIWrite 00d1,06,0,7	//dig_gain_range=0x6; 	Address(0xd1[7:0])
    SPIWrite 0124,01,0,7	//spi_agc_dsa_A=0x1; 	Address(0x124[7:0])
    SPIWrite 0124,00,0,7	//spi_agc_dsa_A=0x0; 	Address(0x124[7:0])
    SPIWrite 0174,01,0,7	//spi_agc_dsa_B=0x1; 	Address(0x174[7:0])
    SPIWrite 0174,00,0,7	//spi_agc_dsa_B=0x0; 	Address(0x174[7:0])
    SPIWrite 0013,00,0,7	//dsa_page1=0x0; 	Address(0x13[7:6])
    SPIWrite 0013,10,0,7	//dsa_page0=0x1; 	Address(0x13[7:4])
    SPIWrite 006c,01,0,7	//spi_agc_dsa_fb=0x1; 	Address(0x6c[7:0])
    SPIWrite 006c,00,0,7	//spi_agc_dsa_fb=0x0; 	Address(0x6c[7:0])
    SPIWrite 0013,00,0,7	//dsa_page0=0x0; 	Address(0x13[7:4])
    SPIWrite 0013,80,0,7	//dsa_page1=0x2; 	Address(0x13[7:6])
    SPIWrite 00d1,06,0,7	//dig_gain_range=0x6; 	Address(0xd1[7:0])
    SPIWrite 0124,01,0,7	//spi_agc_dsa_A=0x1; 	Address(0x124[7:0])
    SPIWrite 0124,00,0,7	//spi_agc_dsa_A=0x0; 	Address(0x124[7:0])
    SPIWrite 0174,01,0,7	//spi_agc_dsa_B=0x1; 	Address(0x174[7:0])
    SPIWrite 0174,00,0,7	//spi_agc_dsa_B=0x0; 	Address(0x174[7:0])
    SPIWrite 0013,00,0,7	//dsa_page1=0x0; 	Address(0x13[7:6])
    SPIWrite 0013,20,0,7	//dsa_page0=0x2; 	Address(0x13[7:4])
    SPIWrite 006c,01,0,7	//spi_agc_dsa_fb=0x1; 	Address(0x6c[7:0])
    SPIWrite 006c,00,0,7	//spi_agc_dsa_fb=0x0; 	Address(0x6c[7:0])
    SPIWrite 0013,00,0,7	//dsa_page0=0x0; 	Address(0x13[7:4])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0940,00,0,7	//Property_920h_2_0=0x0; 	Address(0x940[7:0])
    SPIWrite 0941,00,0,7	//Property_920h_10_8=0x0; 	Address(0x941[7:0])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0013,c0,0,7	//dsa_page1=0x3; 	Address(0x13[7:6])
    SPIWrite 0545,06,0,7	//Property_524h_13_8=0x6; 	Address(0x545[7:0])
    SPIWrite 054a,06,0,7	//Property_528h_21_16=0x6; 	Address(0x54a[7:0])
    SPIWrite 05a4,2c,0,7	//Property_584h_5_0=0x2c; 	Address(0x5a4[7:0])
    SPIWrite 05a5,18,0,7	//Property_584h_13_8=0x18; 	Address(0x5a5[7:0])
    SPIWrite 056e,00,0,7	//Property_54ch_17_0=0x12; 	Address(0x56c[1:0],0x56d[1:0],0x56e[7:0])
    SPIWrite 056d,00,0,7
    SPIWrite 056c,12,0,7
    SPIWrite 0572,00,0,7	//Property_550h_22_0=0x7; 	Address(0x570[6:0],0x571[6:0],0x572[7:0])
    SPIWrite 0571,00,0,7
    SPIWrite 0570,07,0,7
    SPIWrite 0576,00,0,7	//Property_554h_17_0=0x0; 	Address(0x574[1:0],0x575[1:0],0x576[7:0])
    SPIWrite 0575,00,0,7
    SPIWrite 0574,00,0,7
    SPIWrite 057e,00,0,7	//Property_55ch_21_0=0x5c; 	Address(0x57c[5:0],0x57d[5:0],0x57e[7:0])
    SPIWrite 057d,00,0,7
    SPIWrite 057c,5c,0,7
    SPIWrite 057a,00,0,7	//Property_558h_22_0=0x1; 	Address(0x578[6:0],0x579[6:0],0x57a[7:0])
    SPIWrite 0579,00,0,7
    SPIWrite 0578,01,0,7
    SPIWrite 0596,00,0,7	//Property_574h_22_0=0x7; 	Address(0x594[6:0],0x595[6:0],0x596[7:0])
    SPIWrite 0595,00,0,7
    SPIWrite 0594,07,0,7
    SPIWrite 059a,00,0,7	//Property_578h_22_0=0x7; 	Address(0x598[6:0],0x599[6:0],0x59a[7:0])
    SPIWrite 0599,00,0,7
    SPIWrite 0598,07,0,7
    SPIWrite 0556,00,0,7	//Property_534h_17_0=0x12; 	Address(0x554[1:0],0x555[1:0],0x556[7:0])
    SPIWrite 0555,00,0,7
    SPIWrite 0554,12,0,7
    SPIWrite 055a,00,0,7	//Property_538h_22_0=0x7; 	Address(0x558[6:0],0x559[6:0],0x55a[7:0])
    SPIWrite 0559,00,0,7
    SPIWrite 0558,07,0,7
    SPIWrite 055e,00,0,7	//Property_53ch_17_0=0x0; 	Address(0x55c[1:0],0x55d[1:0],0x55e[7:0])
    SPIWrite 055d,00,0,7
    SPIWrite 055c,00,0,7
    SPIWrite 0566,00,0,7	//Property_544h_21_0=0x5c; 	Address(0x564[5:0],0x565[5:0],0x566[7:0])
    SPIWrite 0565,00,0,7
    SPIWrite 0564,5c,0,7
    SPIWrite 0562,00,0,7	//Property_540h_22_0=0x1; 	Address(0x560[6:0],0x561[6:0],0x562[7:0])
    SPIWrite 0561,00,0,7
    SPIWrite 0560,01,0,7
    SPIWrite 058e,00,0,7	//Property_56ch_22_0=0x7; 	Address(0x58c[6:0],0x58d[6:0],0x58e[7:0])
    SPIWrite 058d,00,0,7
    SPIWrite 058c,07,0,7
    SPIWrite 0592,00,0,7	//Property_570h_22_0=0x7; 	Address(0x590[6:0],0x591[6:0],0x592[7:0])
    SPIWrite 0591,00,0,7
    SPIWrite 0590,07,0,7
    SPIWrite 0577,01,0,7	//Property_554h_24_24=0x1; 	Address(0x577[7:0])
    SPIWrite 056f,00,0,7	//Property_54ch_24_24=0x0; 	Address(0x56f[7:0])
    SPIWrite 05a1,00,0,7	//Property_580h_8_8=0x0; 	Address(0x5a1[7:0])
    SPIWrite 055f,01,0,7	//Property_53ch_24_24=0x1; 	Address(0x55f[7:0])
    SPIWrite 0557,00,0,7	//Property_534h_24_24=0x0; 	Address(0x557[7:0])
    SPIWrite 05a0,00,0,7	//Property_580h_0_0=0x0; 	Address(0x5a0[7:0])
    SPIWrite 0013,00,0,7	//dsa_page1=0x0; 	Address(0x13[7:6])
    
    //STEP: topConfig/step2 
    SPIWrite 0013,10,0,7	//dsa_page0=0x1; 	Address(0x13[7:4])
    SPIWrite 00d0,18,0,7	//txa_dsa_dig0_gain=0x18; 	Address(0xd0[7:0],0xd1[7:0])
    SPIWrite 00d4,18,0,7	//txb_dsa_dig0_gain=0x18; 	Address(0xd4[7:0],0xd5[7:0])
    SPIWrite 0013,20,0,7	//dsa_page0=0x2; 	Address(0x13[7:4])
    SPIWrite 00d0,18,0,7	//txa_dsa_dig0_gain=0x18; 	Address(0xd0[7:0],0xd1[7:0])
    SPIWrite 00d4,18,0,7	//txb_dsa_dig0_gain=0x18; 	Address(0xd4[7:0],0xd5[7:0])
    SPIWrite 0013,00,0,7	//dsa_page0=0x0; 	Address(0x13[7:4])
    SPIWrite 0013,c0,0,7	//dsa_page1=0x3; 	Address(0x13[7:6])
    SPIWrite 0a37,40,0,7
    SPIWrite 0a3f,40,0,7
    SPIWrite 0a4f,40,0,7
    SPIWrite 0a5f,40,0,7
    SPIWrite 0a77,40,0,7
    SPIWrite 0a7f,40,0,7
    SPIWrite 0a97,40,0,7
    SPIWrite 0a9f,40,0,7
    SPIWrite 0aa7,40,0,7
    SPIWrite 0aaf,40,0,7
    SPIWrite 0c37,40,0,7
    SPIWrite 0c3f,40,0,7
    SPIWrite 0c4f,40,0,7
    SPIWrite 0c5f,40,0,7
    SPIWrite 0c77,40,0,7
    SPIWrite 0c7f,40,0,7
    SPIWrite 0c97,40,0,7
    SPIWrite 0c9f,40,0,7
    SPIWrite 0ca7,40,0,7
    SPIWrite 0caf,40,0,7
    SPIWrite 0013,00,0,7	//dsa_page1=0x0; 	Address(0x13[7:6])
    
    //STEP: sysConfig/step0 
    
    //START: Configuring RRF Mode to TOP MCU
    
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x0; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 0193,22,0,7	//MACRO_OPCODE=0x22; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x10001; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,01,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,21,0,7	//MACRO_OPCODE=0x21; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x1; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,2f,0,7	//MACRO_OPCODE=0x2f; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    
    //END: Configuring RRF Mode to TOP MCU
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    
    //STEP: sysConfig/step1 
    
    //START: Configuring RX Chain Parameters to TOP MCU
    
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x701; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,07,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,2c,0,7	//MACRO_OPCODE=0x2c; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x901; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,09,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,29,0,7	//MACRO_OPCODE=0x29; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x101; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,01,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,23,0,7	//MACRO_OPCODE=0x23; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,44,0,7	//MACRO_OPERAND_REG0=0x44440001; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,44,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 00a7,44,0,7	//MACRO_OPERAND_REG1=0x44444444; 	Address(0xa4[7:0],0xa5[7:0],0xa6[7:0],0xa7[7:0],0xa8[7:0])
    SPIWrite 00a6,44,0,7
    SPIWrite 00a5,44,0,7
    SPIWrite 00a4,44,0,7
    SPIWrite 00ab,99,0,7	//MACRO_OPERAND_REG2=0x999a4444; 	Address(0xa8[7:0],0xa9[7:0],0xaa[7:0],0xab[7:0],0xac[7:0])
    SPIWrite 00aa,9a,0,7
    SPIWrite 00a9,44,0,7
    SPIWrite 00a8,44,0,7
    SPIWrite 00af,dd,0,7	//MACRO_OPERAND_REG3=0xddde9999; 	Address(0xac[7:0],0xad[7:0],0xae[7:0],0xaf[7:0],0xb0[7:0])
    SPIWrite 00ae,de,0,7
    SPIWrite 00ad,99,0,7
    SPIWrite 00ac,99,0,7
    SPIWrite 00b3,00,0,7	//MACRO_OPERAND_REG4=0xdddd; 	Address(0xb0[7:0],0xb1[7:0],0xb2[7:0],0xb3[7:0],0xb4[7:0])
    SPIWrite 00b2,00,0,7
    SPIWrite 00b1,dd,0,7
    SPIWrite 00b0,dd,0,7
    SPIWrite 0193,31,0,7	//MACRO_OPCODE=0x31; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    
    //END: Configuring RX Chain Parameters to TOP MCU
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    
    //STEP: sysConfig/step2 
    
    //START: Configuring FB Chain Parameters to TOP MCU
    
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x700; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,07,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 0193,2d,0,7	//MACRO_OPCODE=0x2d; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    
    //END: Configuring FB Chain Parameters to TOP MCU
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x43f; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,04,0,7
    SPIWrite 00a0,3f,0,7
    SPIWrite 0193,d7,0,7	//MACRO_OPCODE=0xd7; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    
    //STEP: sysConfig/step3 
    
    //START: Configuring TX Chain Parameters to TOP MCU
    
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x1; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,8d,0,7	//MACRO_OPCODE=0x8d; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x1103; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,11,0,7
    SPIWrite 00a0,03,0,7
    SPIWrite 0193,2e,0,7	//MACRO_OPCODE=0x2e; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x90f; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,09,0,7
    SPIWrite 00a0,0f,0,7
    SPIWrite 0193,2b,0,7	//MACRO_OPCODE=0x2b; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x1f0; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,01,0,7
    SPIWrite 00a0,f0,0,7
    SPIWrite 0193,23,0,7	//MACRO_OPCODE=0x23; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,11,0,7	//MACRO_OPERAND_REG0=0x1111000f; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,11,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,0f,0,7
    SPIWrite 00a7,11,0,7	//MACRO_OPERAND_REG1=0x1111d111; 	Address(0xa4[7:0],0xa5[7:0],0xa6[7:0],0xa7[7:0],0xa8[7:0])
    SPIWrite 00a6,11,0,7
    SPIWrite 00a5,d1,0,7
    SPIWrite 00a4,11,0,7
    SPIWrite 00ab,66,0,7	//MACRO_OPERAND_REG2=0x6666d111; 	Address(0xa8[7:0],0xa9[7:0],0xaa[7:0],0xab[7:0],0xac[7:0])
    SPIWrite 00aa,66,0,7
    SPIWrite 00a9,d1,0,7
    SPIWrite 00a8,11,0,7
    SPIWrite 00af,77,0,7	//MACRO_OPERAND_REG3=0x77772666; 	Address(0xac[7:0],0xad[7:0],0xae[7:0],0xaf[7:0],0xb0[7:0])
    SPIWrite 00ae,77,0,7
    SPIWrite 00ad,26,0,7
    SPIWrite 00ac,66,0,7
    SPIWrite 00b3,00,0,7	//MACRO_OPERAND_REG4=0x3777; 	Address(0xb0[7:0],0xb1[7:0],0xb2[7:0],0xb3[7:0],0xb4[7:0])
    SPIWrite 00b2,00,0,7
    SPIWrite 00b1,37,0,7
    SPIWrite 00b0,77,0,7
    SPIWrite 0193,30,0,7	//MACRO_OPCODE=0x30; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    
    //END: Configuring TX Chain Parameters to TOP MCU
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    
    //STEP: configTune/step0 
    
    //START: Configuring Digital Chain
    
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x707; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,07,0,7
    SPIWrite 00a0,07,0,7
    SPIWrite 0193,3a,0,7	//MACRO_OPCODE=0x3a; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x0; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 0193,90,0,7	//MACRO_OPCODE=0x90; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0144,08,0,7	//Property_124h_4_2=0x2; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,08,0,7	//Property_18h_3_3=0x1; 	Address(0x18[7:3])
    SPIWrite 0309,05,0,7
    SPIWrite 0018,00,0,7	//Property_18h_3_3=0x0; 	Address(0x18[7:3])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x1; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,90,0,7	//MACRO_OPCODE=0x90; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x101; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,01,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,36,0,7	//MACRO_OPCODE=0x36; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    
    //END: Configuring Digital Chain
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    
    //STEP: configTune/step1 
    
    //START: Setting FIFO Pointers
    
    SPIWrite 0012,01,0,3	//rxdig=0x1; 	Address(0x12[7:0])
    SPIWrite 0060,06,0,3	//Property_40h_3_0=0x6; 	Address(0x60[7:0])
    SPIWrite 0060,60,4,7	//Property_40h_7_4=0x6; 	Address(0x60[7:4])
    SPIWrite 0061,06,0,3	//Property_40h_11_8=0x6; 	Address(0x61[7:0])
    SPIWrite 0061,60,4,7	//Property_40h_15_12=0x6; 	Address(0x61[7:4])
    SPIWrite 0012,02,0,3	//rxdig=0x2; 	Address(0x12[7:0])
    SPIWrite 0060,06,0,3	//Property_40h_3_0=0x6; 	Address(0x60[7:0])
    SPIWrite 0060,60,4,7	//Property_40h_7_4=0x6; 	Address(0x60[7:4])
    SPIWrite 0061,06,0,3	//Property_40h_11_8=0x6; 	Address(0x61[7:0])
    SPIWrite 0061,60,4,7	//Property_40h_15_12=0x6; 	Address(0x61[7:4])
    SPIWrite 0012,04,0,3	//rxdig=0x4; 	Address(0x12[7:0])
    SPIWrite 0060,06,0,3	//Property_40h_3_0=0x6; 	Address(0x60[7:0])
    SPIWrite 0060,60,4,7	//Property_40h_7_4=0x6; 	Address(0x60[7:4])
    SPIWrite 0061,06,0,3	//Property_40h_11_8=0x6; 	Address(0x61[7:0])
    SPIWrite 0061,60,4,7	//Property_40h_15_12=0x6; 	Address(0x61[7:4])
    SPIWrite 0012,08,0,3	//rxdig=0x8; 	Address(0x12[7:0])
    SPIWrite 0060,06,0,3	//Property_40h_3_0=0x6; 	Address(0x60[7:0])
    SPIWrite 0060,60,4,7	//Property_40h_7_4=0x6; 	Address(0x60[7:4])
    SPIWrite 0061,06,0,3	//Property_40h_11_8=0x6; 	Address(0x61[7:0])
    SPIWrite 0061,60,4,7	//Property_40h_15_12=0x6; 	Address(0x61[7:4])
    SPIWrite 0012,00,0,3	//rxdig=0x0; 	Address(0x12[7:0])
    SPIWrite 0012,10,4,5	//fbdig=0x1; 	Address(0x12[7:4])
    SPIWrite 0060,06,0,3	//Property_40h_3_0=0x6; 	Address(0x60[7:0])
    SPIWrite 0060,60,4,7	//Property_40h_7_4=0x6; 	Address(0x60[7:4])
    SPIWrite 0061,06,0,3	//Property_40h_11_8=0x6; 	Address(0x61[7:0])
    SPIWrite 0061,60,4,7	//Property_40h_15_12=0x6; 	Address(0x61[7:4])
    SPIWrite 0012,20,4,5	//fbdig=0x2; 	Address(0x12[7:4])
    SPIWrite 0060,06,0,3	//Property_40h_3_0=0x6; 	Address(0x60[7:0])
    SPIWrite 0060,60,4,7	//Property_40h_7_4=0x6; 	Address(0x60[7:4])
    SPIWrite 0061,06,0,3	//Property_40h_11_8=0x6; 	Address(0x61[7:0])
    SPIWrite 0061,60,4,7	//Property_40h_15_12=0x6; 	Address(0x61[7:4])
    SPIWrite 0012,00,4,5	//fbdig=0x0; 	Address(0x12[7:4])
    SPIWrite 0019,10,4,7	//txdig=0x1; 	Address(0x19[7:4])
    SPIWrite 0062,00,0,3	//Property_40h_19_16=0x0; 	Address(0x62[7:0])
    SPIWrite 0019,20,4,7	//txdig=0x2; 	Address(0x19[7:4])
    SPIWrite 0062,00,0,3	//Property_40h_19_16=0x0; 	Address(0x62[7:0])
    SPIWrite 0019,40,4,7	//txdig=0x4; 	Address(0x19[7:4])
    SPIWrite 0062,00,0,3	//Property_40h_19_16=0x0; 	Address(0x62[7:0])
    SPIWrite 0019,80,4,7	//txdig=0x8; 	Address(0x19[7:4])
    SPIWrite 0062,00,0,3	//Property_40h_19_16=0x0; 	Address(0x62[7:0])
    SPIWrite 0019,10,4,7	//txdig=0x1; 	Address(0x19[7:4])
    SPIWrite 0060,02,0,3	//Property_40h_3_0=0x2; 	Address(0x60[7:0])
    SPIWrite 0019,20,4,7	//txdig=0x2; 	Address(0x19[7:4])
    SPIWrite 0060,02,0,3	//Property_40h_3_0=0x2; 	Address(0x60[7:0])
    SPIWrite 0019,40,4,7	//txdig=0x4; 	Address(0x19[7:4])
    SPIWrite 0060,02,0,3	//Property_40h_3_0=0x2; 	Address(0x60[7:0])
    SPIWrite 0019,80,4,7	//txdig=0x8; 	Address(0x19[7:4])
    SPIWrite 0060,02,0,3	//Property_40h_3_0=0x2; 	Address(0x60[7:0])
    SPIWrite 0019,00,4,7	//txdig=0x0; 	Address(0x19[7:4])
    SPIWrite 0016,10,4,4	//jesd_subchip=0x1; 	Address(0x16[7:4])
    SPIWrite 0030,0b,0,3	//rxa_afifo_offset=0xb; 	Address(0x30[7:0])
    SPIWrite 0030,b0,4,7	//rxb_afifo_offset=0xb; 	Address(0x30[7:4])
    SPIWrite 0031,0b,0,3	//rxc_afifo_offset=0xb; 	Address(0x31[7:0])
    SPIWrite 0031,b0,4,7	//rxd_afifo_offset=0xb; 	Address(0x31[7:4])
    SPIWrite 0032,0b,0,3	//fba_afifo_offset=0xb; 	Address(0x32[7:0])
    SPIWrite 0032,b0,4,7	//fbc_afifo_offset=0xb; 	Address(0x32[7:4])
    
    //END: Setting FIFO Pointers
    
    SPIWrite 0016,00,0,7	//jesd_subchip=0x0; 	Address(0x16[7:4])
    
    //STEP: analogWrites/step0 
    SPIWrite 0011,3f,0,7	//ec_ana=0x3f; 	Address(0x11[7:0])
    SPIWrite 0075,00,0,7	//Property_75h_7_7_76h_3_0=0x6; 	Address(0x75[7:7],0x76[7:0])
    SPIWrite 0076,03,0,7
    SPIWrite 0071,04,0,7	//Property_71h_2_1=0x2; 	Address(0x71[7:1])
    SPIWrite 0071,14,0,7	//Property_71h_4_4=0x1; 	Address(0x71[7:4])
    SPIWrite 0084,80,0,7	//Property_84h_7_6_85h_1_0=0xe; 	Address(0x84[7:6],0x85[7:0])
    SPIWrite 0085,03,0,7
    SPIWrite 0011,00,0,7	//ec_ana=0x0; 	Address(0x11[7:0])
    SPIWrite 0011,10,0,7	//ec_ana=0x10; 	Address(0x11[7:0])
    SPIWrite 0071,10,0,7	//Property_71h_2_1=0x0; 	Address(0x71[7:1])
    SPIWrite 0011,01,0,7	//ec_ana=0x1; 	Address(0x11[7:0])
    SPIWrite 0071,10,0,7	//Property_71h_2_1=0x0; 	Address(0x71[7:1])
    SPIWrite 0011,02,0,7	//ec_ana=0x2; 	Address(0x11[7:0])
    SPIWrite 0071,10,0,7	//Property_71h_2_1=0x0; 	Address(0x71[7:1])
    SPIWrite 0011,20,0,7	//ec_ana=0x20; 	Address(0x11[7:0])
    SPIWrite 0071,10,0,7	//Property_71h_2_1=0x0; 	Address(0x71[7:1])
    SPIWrite 0011,04,0,7	//ec_ana=0x4; 	Address(0x11[7:0])
    SPIWrite 0071,10,0,7	//Property_71h_2_1=0x0; 	Address(0x71[7:1])
    SPIWrite 0011,08,0,7	//ec_ana=0x8; 	Address(0x11[7:0])
    SPIWrite 0071,10,0,7	//Property_71h_2_1=0x0; 	Address(0x71[7:1])
    SPIWrite 0011,00,0,7	//ec_ana=0x0; 	Address(0x11[7:0])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIRead 086b,0,7
    SPIRead 086a,0,7
    SPIRead 0869,0,7
    SPIRead 0868,0,7
    
    //Read	Property_848h_31_0=0x0; 	Address(0x868[7:0],0x869[7:0],0x86a[7:0],0x86b[7:0],0x86c[7:0])
    
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x24; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,24,0,7
    SPIWrite 0193,72,0,7	//MACRO_OPCODE=0x72; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,01,0,7	//MACRO_OPERAND_REG0=0x1000600; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,06,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 00a7,09,0,7	//MACRO_OPERAND_REG1=0x9080706; 	Address(0xa4[7:0],0xa5[7:0],0xa6[7:0],0xa7[7:0],0xa8[7:0])
    SPIWrite 00a6,08,0,7
    SPIWrite 00a5,07,0,7
    SPIWrite 00a4,06,0,7
    SPIWrite 0193,71,0,7	//MACRO_OPCODE=0x71; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0011,3f,0,7	//ec_ana=0x3f; 	Address(0x11[7:0])
    SPIWrite 0060,01,0,7	//Property_60h_0_0=0x1; 	Address(0x60[7:0])
    SPIWrite 0060,00,0,7	//Property_60h_0_0=0x0; 	Address(0x60[7:0])
    SPIWrite 0011,00,0,7	//ec_ana=0x0; 	Address(0x11[7:0])
    
    //STEP: analogWrites/step1 
    SPIWrite 0013,0f,0,7	//txdh=0xf; 	Address(0x13[7:0])
    SPIWrite 015a,02,0,7	//Property_138h_17_17=0x1; 	Address(0x15a[7:1])
    SPIWrite 0013,00,0,7	//txdh=0x0; 	Address(0x13[7:0])
    
    //START: Setting TDD Pin Override values.
    
    SPIWrite 0015,80,0,7	//timing_controller=0x1; 	Address(0x15[7:7])
    SPIWrite 00ed,00,0,7	//Property_cch_11_8=0x0; 	Address(0xed[7:0])
    SPIWrite 00f5,00,0,7	//Property_d4h_9_8=0x0; 	Address(0xf5[7:0])
    SPIWrite 00e5,00,0,7	//Property_c4h_11_8=0x0; 	Address(0xe5[7:0])
    SPIWrite 00ed,00,0,7	//Property_cch_11_8=0x0; 	Address(0xed[7:0])
    SPIWrite 00f5,00,0,7	//Property_d4h_9_8=0x0; 	Address(0xf5[7:0])
    SPIWrite 00e5,0f,0,7	//Property_c4h_11_8=0xf; 	Address(0xe5[7:0])
    
    //END: Setting TDD Pin Override values.
    
    
    //START: DAC Analog Writes
    
    SPIWrite 0015,00,0,7	//timing_controller=0x0; 	Address(0x15[7:7])
    SPIWrite 0013,0f,0,7	//txdh=0xf; 	Address(0x13[7:0])
    SPIWrite 015a,22,0,7	//Property_138h_21_21=0x1; 	Address(0x15a[7:5])
    SPIWrite 01bd,00,0,7	//Property_19ch_15_0=0x1; 	Address(0x1bc[7:0],0x1bd[7:0],0x1be[7:0])
    SPIWrite 01bc,01,0,7
    SPIWrite 0070,27,0,7	//Property_50h_5_0=0x27; 	Address(0x70[7:0])
    SPIWrite 0071,27,0,7	//Property_50h_13_8=0x27; 	Address(0x71[7:0])
    SPIWrite 0072,27,0,7	//Property_50h_21_16=0x27; 	Address(0x72[7:0])
    SPIWrite 0074,27,0,7	//Property_54h_5_0=0x27; 	Address(0x74[7:0])
    SPIWrite 0075,27,0,7	//Property_54h_13_8=0x27; 	Address(0x75[7:0])
    SPIWrite 0076,27,0,7	//Property_54h_21_16=0x27; 	Address(0x76[7:0])
    SPIWrite 0078,27,0,7	//Property_58h_5_0=0x27; 	Address(0x78[7:0])
    SPIWrite 0079,27,0,7	//Property_58h_13_8=0x27; 	Address(0x79[7:0])
    SPIWrite 007a,27,0,7	//Property_58h_21_16=0x27; 	Address(0x7a[7:0])
    SPIWrite 015a,26,0,7	//Property_138h_18_18=0x1; 	Address(0x15a[7:2])
    SPIWrite 015a,26,0,7	//Property_138h_18_18=0x1; 	Address(0x15a[7:2])
    SPIWrite 0025,00,0,7	//Property_4h_8_8=0x0; 	Address(0x25[7:0])
    SPIWrite 0013,01,0,7	//txdh=0x1; 	Address(0x13[7:0])
    SPIWrite 015a,27,0,7	//Property_138h_16_16=0x1; 	Address(0x15a[7:0])
    SPIWrite 015a,27,0,7	//Property_138h_16_16=0x1; 	Address(0x15a[7:0])
    SPIWrite 0013,0f,0,7	//txdh=0xf; 	Address(0x13[7:0])
    SPIWrite 0168,01,0,7	//Property_148h_0_0=0x1; 	Address(0x168[7:0])
    SPIWrite 017c,01,0,7	//Property_15ch_0_0=0x1; 	Address(0x17c[7:0])
    SPIWrite 01b1,00,0,7	//Property_190h_15_0=0x10; 	Address(0x1b0[7:0],0x1b1[7:0],0x1b2[7:0])
    SPIWrite 01b0,10,0,7
    SPIWrite 0013,01,0,7	//txdh=0x1; 	Address(0x13[7:0])
    SPIWrite 0158,01,0,7	//Property_138h_0_0=0x1; 	Address(0x158[7:0])
    SPIWrite 0159,01,0,7	//Property_138h_8_8=0x1; 	Address(0x159[7:0])
    SPIWrite 0013,0f,0,7	//txdh=0xf; 	Address(0x13[7:0])
    SPIWrite 0177,00,0,7	//Property_154h_31_0_158h_3_0=0x10080; 	Address(0x174[7:0],0x175[7:0],0x176[7:0],0x177[7:0],0x178[7:0],0x178[7:0])
    SPIWrite 0176,01,0,7
    SPIWrite 0175,00,0,7
    SPIWrite 0174,80,0,7
    SPIWrite 0178,00,0,7
    SPIWrite 018b,00,0,7	//Property_168h_31_0_16ch_3_0=0x10080; 	Address(0x188[7:0],0x189[7:0],0x18a[7:0],0x18b[7:0],0x18c[7:0],0x18c[7:0])
    SPIWrite 018a,01,0,7
    SPIWrite 0189,00,0,7
    SPIWrite 0188,80,0,7
    SPIWrite 018c,00,0,7
    SPIWrite 011a,00,0,7	//Property_f8h_20_0=0x0; 	Address(0x118[4:0],0x119[4:0],0x11a[7:0])
    SPIWrite 0119,00,0,7
    SPIWrite 0118,00,0,7
    SPIWrite 0126,00,0,7	//Property_104h_20_0=0x0; 	Address(0x124[4:0],0x125[4:0],0x126[7:0])
    SPIWrite 0125,00,0,7
    SPIWrite 0124,00,0,7
    SPIWrite 01c5,3d,0,7	//Property_1a4h_15_0=0x3de0; 	Address(0x1c4[7:0],0x1c5[7:0],0x1c6[7:0])
    SPIWrite 01c4,e0,0,7
    SPIWrite 0029,00,0,7	//Property_8h_8_8=0x0; 	Address(0x29[7:0])
    SPIWrite 018e,01,0,7	//Property_16ch_16_16=0x1; 	Address(0x18e[7:0])
    SPIWrite 0112,00,0,7	//Property_f0h_18_0=0x0; 	Address(0x110[2:0],0x111[2:0],0x112[7:0])
    SPIWrite 0111,00,0,7
    SPIWrite 0110,00,0,7
    SPIWrite 0151,0e,0,7	//Property_130h_15_0=0xe6c; 	Address(0x150[7:0],0x151[7:0],0x152[7:0])
    SPIWrite 0150,6c,0,7
    SPIWrite 01ad,00,0,7	//Property_18ch_15_0=0x0; 	Address(0x1ac[7:0],0x1ad[7:0],0x1ae[7:0])
    SPIWrite 01ac,00,0,7
    SPIWrite 0162,0f,0,7	//Property_140h_19_16=0xf; 	Address(0x162[7:0])
    SPIWrite 0163,0f,0,7	//Property_140h_27_24=0xf; 	Address(0x163[7:0])
    SPIWrite 0013,00,0,7	//txdh=0x0; 	Address(0x13[7:0])
    SPIWrite 0013,0f,0,7	//txdh=0xf; 	Address(0x13[7:0])
    SPIWrite 0133,00,0,7	//Property_110h_31_0_114h_14_0=0x1fe0; 	Address(0x130[7:0],0x131[7:0],0x132[7:0],0x133[7:0],0x134[7:0],0x134[6:0],0x135[7:0])
    SPIWrite 0132,00,0,7
    SPIWrite 0131,1f,0,7
    SPIWrite 0130,e0,0,7
    SPIWrite 0135,00,0,7
    SPIWrite 0134,00,0,7
    SPIWrite 0013,00,0,7	//txdh=0x0; 	Address(0x13[7:0])
    
    //START: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0170,01,0,7	//pll_reg_spi_req_a=0x1; 	Address(0x170[7:0])
    SPIWrite 0540,00,0,7	//Property_520h_0_0=0x0; 	Address(0x540[7:0])
    
    SPIPoll 0171,0,0,01
    SPIRead 0171,0,0
    
    //Read	pll_reg_spi_a_ack=0x0(Meaning: );; 	Address(0x171[7:0])
    
    
    //END: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0014,ff,0,7	//txcalib=0xff; 	Address(0x14[7:0],0x15[7:0])
    SPIWrite 0119,00,0,7	//Property_f8h_15_0=0x1; 	Address(0x118[7:0],0x119[7:0],0x11a[7:0])
    SPIWrite 0118,01,0,7
    SPIWrite 0119,00,0,7	//Property_f8h_15_0=0x0; 	Address(0x118[7:0],0x119[7:0],0x11a[7:0])
    SPIWrite 0118,00,0,7
    
    //START: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0014,00,0,7	//txcalib=0x0; 	Address(0x14[7:0],0x15[7:0])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0170,00,0,7	//pll_reg_spi_req_a=0x0; 	Address(0x170[7:0])
    SPIWrite 0540,00,0,7	//Property_520h_0_0=0x0; 	Address(0x540[7:0])
    
    //END: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0019,f0,0,7	//txdig=0xf; 	Address(0x19[7:4])
    SPIWrite 07d3,01,0,7	//EnDacDataRandomization=0x1; 	Address(0x7d3[7:0])
    SPIWrite 0019,00,0,7	//txdig=0x0; 	Address(0x19[7:4])
    SPIWrite 0019,f0,0,7	//txdig=0xf; 	Address(0x19[7:4])
    SPIWrite 0320,00,0,7	//Property_300h_3_0=0x0; 	Address(0x320[7:0])
    SPIWrite 0019,00,0,7	//txdig=0x0; 	Address(0x19[7:4])
    SPIWrite 0013,01,0,7	//txdh=0x1; 	Address(0x13[7:0])
    SPIWrite 0107,00,0,7	//Property_e4h_31_0_e8h_19_0=0x1003f00000040; 	Address(0x104[7:0],0x105[7:0],0x106[7:0],0x107[7:0],0x108[7:0],0x108[3:0],0x109[3:0],0x10a[7:0])
    SPIWrite 0106,00,0,7
    SPIWrite 0105,00,0,7
    SPIWrite 0104,40,0,7
    SPIWrite 010a,01,0,7
    SPIWrite 0109,00,0,7
    SPIWrite 0108,3f,0,7
    SPIWrite 0013,02,0,7	//txdh=0x2; 	Address(0x13[7:0])
    SPIWrite 0107,00,0,7	//Property_e4h_31_0_e8h_19_0=0x1003f00000040; 	Address(0x104[7:0],0x105[7:0],0x106[7:0],0x107[7:0],0x108[7:0],0x108[3:0],0x109[3:0],0x10a[7:0])
    SPIWrite 0106,00,0,7
    SPIWrite 0105,00,0,7
    SPIWrite 0104,40,0,7
    SPIWrite 010a,01,0,7
    SPIWrite 0109,00,0,7
    SPIWrite 0108,3f,0,7
    SPIWrite 0013,04,0,7	//txdh=0x4; 	Address(0x13[7:0])
    SPIWrite 0107,00,0,7	//Property_e4h_31_0_e8h_19_0=0x1003f00000040; 	Address(0x104[7:0],0x105[7:0],0x106[7:0],0x107[7:0],0x108[7:0],0x108[3:0],0x109[3:0],0x10a[7:0])
    SPIWrite 0106,00,0,7
    SPIWrite 0105,00,0,7
    SPIWrite 0104,40,0,7
    SPIWrite 010a,01,0,7
    SPIWrite 0109,00,0,7
    SPIWrite 0108,3f,0,7
    SPIWrite 0013,08,0,7	//txdh=0x8; 	Address(0x13[7:0])
    SPIWrite 0107,00,0,7	//Property_e4h_31_0_e8h_19_0=0x1003f00000040; 	Address(0x104[7:0],0x105[7:0],0x106[7:0],0x107[7:0],0x108[7:0],0x108[3:0],0x109[3:0],0x10a[7:0])
    SPIWrite 0106,00,0,7
    SPIWrite 0105,00,0,7
    SPIWrite 0104,40,0,7
    SPIWrite 010a,01,0,7
    SPIWrite 0109,00,0,7
    SPIWrite 0108,3f,0,7
    SPIWrite 0013,0f,0,7	//txdh=0xf; 	Address(0x13[7:0])
    SPIWrite 0024,01,0,7	//Property_4h_1_0=0x1; 	Address(0x24[7:0])
    SPIWrite 0013,00,0,7	//txdh=0x0; 	Address(0x13[7:0])
    SPIWrite 0019,f0,0,7	//txdig=0xf; 	Address(0x19[7:4])
    SPIWrite 030c,00,0,7	//Property_2ech_0_0=0x0; 	Address(0x30c[7:0])
    SPIWrite 0019,00,0,7	//txdig=0x0; 	Address(0x19[7:4])
    SPIWrite 0013,0f,0,7	//txdh=0xf; 	Address(0x13[7:0])
    SPIWrite 011a,00,0,7	//Property_f8h_20_0=0x2000; 	Address(0x118[4:0],0x119[4:0],0x11a[7:0])
    SPIWrite 0119,20,0,7
    SPIWrite 0118,00,0,7
    SPIWrite 0126,00,0,7	//Property_104h_20_0=0x2000; 	Address(0x124[4:0],0x125[4:0],0x126[7:0])
    SPIWrite 0125,20,0,7
    SPIWrite 0124,00,0,7
    SPIWrite 0013,00,0,7	//txdh=0x0; 	Address(0x13[7:0])
    SPIWrite 0015,80,0,7	//timing_controller=0x1; 	Address(0x15[7:7])
    SPIWrite 00fd,01,0,7	//Property_dch_15_0=0x180; 	Address(0xfc[7:0],0xfd[7:0],0xfe[7:0])
    SPIWrite 00fc,80,0,7
    SPIWrite 0101,01,0,7	//Property_e0h_15_0=0x180; 	Address(0x100[7:0],0x101[7:0],0x102[7:0])
    SPIWrite 0100,80,0,7
    SPIWrite 019d,01,0,7	//Property_17ch_15_0=0x180; 	Address(0x19c[7:0],0x19d[7:0],0x19e[7:0])
    SPIWrite 019c,80,0,7
    SPIWrite 01a1,01,0,7	//Property_180h_15_0=0x180; 	Address(0x1a0[7:0],0x1a1[7:0],0x1a2[7:0])
    SPIWrite 01a0,80,0,7
    SPIWrite 023d,01,0,7	//Property_21ch_15_0=0x180; 	Address(0x23c[7:0],0x23d[7:0],0x23e[7:0])
    SPIWrite 023c,80,0,7
    SPIWrite 0241,01,0,7	//Property_220h_15_0=0x180; 	Address(0x240[7:0],0x241[7:0],0x242[7:0])
    SPIWrite 0240,80,0,7
    SPIWrite 02dd,01,0,7	//Property_2bch_15_0=0x180; 	Address(0x2dc[7:0],0x2dd[7:0],0x2de[7:0])
    SPIWrite 02dc,80,0,7
    SPIWrite 02e1,01,0,7	//Property_2c0h_15_0=0x180; 	Address(0x2e0[7:0],0x2e1[7:0],0x2e2[7:0])
    SPIWrite 02e0,80,0,7
    SPIWrite 0135,0c,0,7	//Property_114h_15_0=0xc00; 	Address(0x134[7:0],0x135[7:0],0x136[7:0])
    SPIWrite 0134,00,0,7
    SPIWrite 01d5,0c,0,7	//Property_1b4h_15_0=0xc00; 	Address(0x1d4[7:0],0x1d5[7:0],0x1d6[7:0])
    SPIWrite 01d4,00,0,7
    SPIWrite 0275,0c,0,7	//Property_254h_15_0=0xc00; 	Address(0x274[7:0],0x275[7:0],0x276[7:0])
    SPIWrite 0274,00,0,7
    SPIWrite 0315,0c,0,7	//Property_2f4h_15_0=0xc00; 	Address(0x314[7:0],0x315[7:0],0x316[7:0])
    SPIWrite 0314,00,0,7
    SPIWrite 0015,00,0,7	//timing_controller=0x0; 	Address(0x15[7:7])
    SPIWrite 0013,0f,0,7	//txdh=0xf; 	Address(0x13[7:0])
    SPIWrite 0167,02,0,7	//Property_144h_27_0=0x2000000; 	Address(0x164[3:0],0x165[3:0],0x166[3:0],0x167[7:0])
    SPIWrite 0166,00,0,7
    SPIWrite 0165,00,0,7
    SPIWrite 0164,00,0,7
    SPIWrite 01b1,00,0,7	//Property_190h_15_0=0x30; 	Address(0x1b0[7:0],0x1b1[7:0],0x1b2[7:0])
    SPIWrite 01b0,30,0,7
    SPIWrite 0112,01,0,7	//Property_f0h_18_0=0x10000; 	Address(0x110[2:0],0x111[2:0],0x112[7:0])
    SPIWrite 0111,00,0,7
    SPIWrite 0110,00,0,7
    SPIWrite 0013,00,0,7	//txdh=0x0; 	Address(0x13[7:0])
    SPIWrite 0019,f0,0,7	//txdig=0xf; 	Address(0x19[7:4])
    SPIWrite 07b2,00,0,7	//rf_droop_comp_bypass=0x0; 	Address(0x7b2[7:0])
    SPIWrite 07b0,1c,0,7	//rf_headroom_band0=0x1c; 	Address(0x7b0[7:0])
    SPIWrite 07b1,1c,0,7	//rf_headroom_band1=0x1c; 	Address(0x7b1[7:0])
    SPIWrite 0019,00,0,7	//txdig=0x0; 	Address(0x19[7:4])
    
    //END: DAC Analog Writes
    
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,0a,0,7	//MACRO_OPERAND_REG0=0xa101014; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,10,0,7
    SPIWrite 00a1,10,0,7
    SPIWrite 00a0,14,0,7
    SPIWrite 00a7,1f,0,7	//MACRO_OPERAND_REG1=0x1f010100; 	Address(0xa4[7:0],0xa5[7:0],0xa6[7:0],0xa7[7:0],0xa8[7:0])
    SPIWrite 00a6,01,0,7
    SPIWrite 00a5,01,0,7
    SPIWrite 00a4,00,0,7
    SPIWrite 00ab,03,0,7	//MACRO_OPERAND_REG2=0x303041f; 	Address(0xa8[7:0],0xa9[7:0],0xaa[7:0],0xab[7:0],0xac[7:0])
    SPIWrite 00aa,03,0,7
    SPIWrite 00a9,04,0,7
    SPIWrite 00a8,1f,0,7
    SPIWrite 00af,00,0,7	//MACRO_OPERAND_REG3=0x101; 	Address(0xac[7:0],0xad[7:0],0xae[7:0],0xaf[7:0],0xb0[7:0])
    SPIWrite 00ae,00,0,7
    SPIWrite 00ad,01,0,7
    SPIWrite 00ac,01,0,7
    SPIWrite 0193,88,0,7	//MACRO_OPCODE=0x88; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x0; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 0193,90,0,7	//MACRO_OPCODE=0x90; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0144,08,0,7	//Property_124h_4_2=0x2; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,08,0,7	//Property_18h_3_3=0x1; 	Address(0x18[7:3])
    SPIWrite 1f96,00,0,7
    SPIWrite 0018,00,0,7	//Property_18h_3_3=0x0; 	Address(0x18[7:3])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIWrite 0144,08,0,7	//Property_124h_4_2=0x2; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,08,0,7	//Property_18h_3_3=0x1; 	Address(0x18[7:3])
    SPIWrite 1bd4,10,0,7
    SPIWrite 0018,00,0,7	//Property_18h_3_3=0x0; 	Address(0x18[7:3])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x1; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,90,0,7	//MACRO_OPCODE=0x90; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    
    //START: Configuring AUX ADC
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 00c0,c1,0,7	//Property_a0h_6_6=0x1; 	Address(0xc0[7:6])
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0500,01,0,7	//Property_4e0h_0_0=0x1; 	Address(0x500[7:0])
    SPIWrite 0500,01,0,7	//Property_4e0h_1_1=0x0; 	Address(0x500[7:1])
    SPIWrite 0500,09,0,7	//Property_4e0h_3_3=0x1; 	Address(0x500[7:3])
    SPIWrite 0506,01,0,7	//Property_4e4h_16_16=0x1; 	Address(0x506[7:0])
    SPIWrite 0502,00,0,7	//Property_4e0h_23_21=0x0; 	Address(0x502[7:5])
    SPIWrite 0502,00,0,7	//Property_4e0h_20_18=0x0; 	Address(0x502[7:2])
    SPIWrite 0501,08,0,7	//Property_4e0h_12_11=0x1; 	Address(0x501[7:3])
    SPIWrite 0501,0a,0,7	//Property_4e0h_10_8=0x2; 	Address(0x501[7:0])
    SPIWrite 0508,00,0,7	//Property_4e8h_5_5=0x0; 	Address(0x508[7:5])
    SPIWrite 0505,a0,0,7	//Property_4e4h_15_13=0x5; 	Address(0x505[7:5])
    SPIWrite 0505,a1,0,7	//Property_4e4h_9_8=0x1; 	Address(0x505[7:0])
    SPIWrite 0506,05,0,7	//Property_4e4h_18_17=0x2; 	Address(0x506[7:1])
    SPIWrite 0506,15,0,7	//Property_4e4h_20_19=0x2; 	Address(0x506[7:3])
    SPIWrite 0506,15,0,7	//Property_4e4h_23_21=0x0; 	Address(0x506[7:5])
    SPIWrite 0505,a1,0,7	//Property_4e4h_12_10=0x0; 	Address(0x505[7:2])
    SPIWrite 0508,00,0,7	//Property_4e8h_6_6=0x0; 	Address(0x508[7:6])
    SPIWrite 0508,00,0,7	//Property_4e8h_4_4=0x0; 	Address(0x508[7:4])
    SPIWrite 0503,00,0,7	//Property_4e0h_31_30=0x0; 	Address(0x503[7:6])
    SPIWrite 0502,00,0,7	//Property_4e0h_17_16=0x0; 	Address(0x502[7:0])
    SPIWrite 0500,01,0,7	//Property_4e0h_3_3=0x0; 	Address(0x500[7:3])
    SPIWrite 0500,03,0,7	//Property_4e0h_1_1=0x1; 	Address(0x500[7:1])
    
    //END: Configuring AUX ADC
    
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    
    //STEP: analogWrites/step2 
    
    //START: Setting TDD Pin Override values.
    
    SPIWrite 0015,80,0,7	//timing_controller=0x1; 	Address(0x15[7:7])
    SPIWrite 00ed,00,0,7	//Property_cch_11_8=0x0; 	Address(0xed[7:0])
    SPIWrite 00f5,00,0,7	//Property_d4h_9_8=0x0; 	Address(0xf5[7:0])
    SPIWrite 00e5,00,0,7	//Property_c4h_11_8=0x0; 	Address(0xe5[7:0])
    SPIWrite 00ed,0f,0,7	//Property_cch_11_8=0xf; 	Address(0xed[7:0])
    SPIWrite 00f5,00,0,7	//Property_d4h_9_8=0x0; 	Address(0xf5[7:0])
    SPIWrite 00e5,00,0,7	//Property_c4h_11_8=0x0; 	Address(0xe5[7:0])
    
    //END: Setting TDD Pin Override values.
    
    SPIWrite 0015,00,0,7	//timing_controller=0x0; 	Address(0x15[7:7])
    SPIWrite 0011,3f,0,7	//ec_ana=0x3f; 	Address(0x11[7:0])
    SPIWrite 0063,80,0,7	//Property_63h_7_7=0x1; 	Address(0x63[7:7])
    SPIWrite 0067,10,0,7	//Property_67h_4_4=0x1; 	Address(0x67[7:4])
    SPIWrite 0077,0c,0,7	//Property_77h_5_1=0x6; 	Address(0x77[7:1])
    SPIWrite 0076,53,0,7	//Property_76h_6_4=0x5; 	Address(0x76[7:4])
    SPIWrite 0082,80,0,7	//Property_82h_7_6=0x2; 	Address(0x82[7:6])
    SPIWrite 0082,a0,0,7	//Property_82h_5_3=0x4; 	Address(0x82[7:3])
    SPIWrite 0081,30,0,7	//Property_81h_5_4=0x3; 	Address(0x81[7:4])
    SPIWrite 0086,c0,0,7	//Property_86h_7_5_87h_0_0=0xe; 	Address(0x86[7:5],0x87[7:0])
    SPIWrite 0087,01,0,7
    SPIWrite 0084,85,0,7	//Property_84h_2_0=0x5; 	Address(0x84[7:0])
    SPIWrite 0087,05,0,7	//Property_87h_2_1=0x2; 	Address(0x87[7:1])
    SPIWrite 00f9,00,0,7	//Property_f9h_7_7_fah_2_0=0xc; 	Address(0xf9[7:7],0xfa[7:0])
    SPIWrite 00fa,06,0,7
    SPIWrite 00e8,80,0,7	//Property_e8h_7_5=0x4; 	Address(0xe8[7:5])
    SPIWrite 014e,01,0,7	//Property_14eh_2_0=0x1; 	Address(0x14e[7:0])
    SPIWrite 014d,1c,0,7	//Property_14dh_4_2=0x7; 	Address(0x14d[7:2])
    SPIWrite 014c,20,0,7	//Property_14ch_5_3=0x4; 	Address(0x14c[7:3])
    SPIWrite 0138,18,0,7	//Property_138h_5_3=0x3; 	Address(0x138[7:3])
    SPIWrite 013e,40,0,7	//Property_13eh_6_6=0x1; 	Address(0x13e[7:6])
    SPIWrite 004a,60,0,7	//Property_4ah_6_4=0x6; 	Address(0x4a[7:4])
    SPIWrite 0049,80,0,7	//Property_49h_7_6_4ah_0_0=0x6; 	Address(0x49[7:6],0x4a[7:0])
    SPIWrite 004a,61,0,7
    SPIWrite 00c2,c0,0,7	//Property_c2h_7_5=0x6; 	Address(0xc2[7:5])
    SPIWrite 00c1,60,0,7	//Property_c1h_6_4=0x6; 	Address(0xc1[7:4])
    SPIWrite 00b6,0c,0,7	//Property_b6h_3_2=0x3; 	Address(0xb6[7:2])
    SPIWrite 004f,0c,0,7	//Property_4fh_3_2=0x3; 	Address(0x4f[7:2])
    SPIWrite 012e,80,0,7	//Property_12eh_7_7_12fh_1_0=0x7; 	Address(0x12e[7:7],0x12f[7:0])
    SPIWrite 012f,03,0,7
    SPIWrite 012e,f0,0,7	//Property_12eh_6_4=0x7; 	Address(0x12e[7:4])
    SPIWrite 012f,03,0,7	//Property_12fh_3_2=0x0; 	Address(0x12f[7:2])
    SPIWrite 0011,00,0,7	//ec_ana=0x0; 	Address(0x11[7:0])
    SPIWrite 0010,3f,0,7	//ec_dig=0x3f; 	Address(0x10[7:0])
    SPIWrite 00c1,5a,0,7	//Property_c1h_6_0=0x5a; 	Address(0xc1[7:0])
    SPIWrite 0078,60,0,7	//Property_78h_7_7=0x0; 	Address(0x78[7:7])
    SPIWrite 00c0,17,0,7	//Property_c0h_3_3=0x0; 	Address(0xc0[7:3])
    SPIWrite 00d5,00,0,7	//Property_d5h_1_0=0x0; 	Address(0xd5[7:0])
    SPIWrite 00d5,08,0,7	//Property_d5h_3_2=0x2; 	Address(0xd5[7:2])
    SPIWrite 0150,30,0,7	//Property_150h_3_3=0x0; 	Address(0x150[7:3])
    SPIWrite 00f8,51,0,7	//Property_f8h_7_0_f9h_7_0_fah_7_0_fbh_7_0_fch_7_0=0xa8c0c5051; 	Address(0xf8[7:0],0xf9[7:0],0xf9[7:0],0xfa[7:0],0xfa[7:0],0xfb[7:0],0xfb[7:0],0xfc[7:0],0xfc[7:0],0xfd[7:0])
    SPIWrite 00f9,50,0,7
    SPIWrite 00fa,0c,0,7
    SPIWrite 00fb,8c,0,7
    SPIWrite 00fc,0a,0,7
    SPIWrite 0168,02,0,7	//Property_168h_1_1=0x1; 	Address(0x168[7:1])
    SPIWrite 00ef,08,0,7	//Property_efh_6_6=0x0; 	Address(0xef[7:6])
    SPIWrite 0178,71,0,7	//Property_178h_4_4=0x1; 	Address(0x178[7:4])
    SPIWrite 0075,b5,0,7	//Property_75h_4_4=0x1; 	Address(0x75[7:4])
    SPIWrite 0168,06,0,7	//Property_168h_2_2=0x1; 	Address(0x168[7:2])
    SPIWrite 0168,02,0,7	//Property_168h_2_2=0x0; 	Address(0x168[7:2])
    SPIWrite 0169,bb,0,7	//Property_169h_3_0=0xb; 	Address(0x169[7:0])
    SPIWrite 0074,7a,0,7	//Property_74h_7_7=0x0; 	Address(0x74[7:7])
    SPIWrite 013c,fe,0,7	//Property_13ch_7_0_13dh_7_0_13eh_7_0=0x6bfffe; 	Address(0x13c[7:0],0x13d[7:0],0x13d[7:0],0x13e[7:0],0x13e[7:0],0x13f[7:0])
    SPIWrite 013d,ff,0,7
    SPIWrite 013e,6b,0,7
    SPIWrite 0124,fe,0,7	//Property_124h_7_0_125h_7_0_126h_7_0=0x6bfffe; 	Address(0x124[7:0],0x125[7:0],0x125[7:0],0x126[7:0],0x126[7:0],0x127[7:0])
    SPIWrite 0125,ff,0,7
    SPIWrite 0126,6b,0,7
    SPIWrite 0129,24,0,7	//Property_129h_2_0=0x4; 	Address(0x129[7:0])
    SPIWrite 0130,76,0,7	//Property_130h_2_2=0x1; 	Address(0x130[7:2])
    SPIWrite 0130,7e,0,7	//Property_130h_3_3=0x1; 	Address(0x130[7:3])
    SPIWrite 0044,01,0,7	//Property_44h_0_0=0x1; 	Address(0x44[7:0])
    SPIWrite 003c,01,0,7	//Property_3ch_0_0=0x1; 	Address(0x3c[7:0])
    SPIWrite 003c,00,0,7	//Property_3ch_0_0=0x0; 	Address(0x3c[7:0])
    SPIWrite 0044,00,0,7	//Property_44h_0_0=0x0; 	Address(0x44[7:0])
    SPIWrite 00e8,00,0,7	//Property_e8h_0_0=0x0; 	Address(0xe8[7:0])
    SPIWrite 00e8,01,0,7	//Property_e8h_0_0=0x1; 	Address(0xe8[7:0])
    SPIWrite 0010,00,0,7	//ec_dig=0x0; 	Address(0x10[7:0])
    SPIWrite 0015,04,0,7	//rx=0x1; 	Address(0x15[7:2])
    SPIWrite 0063,00,0,7	//Property_40h_31_0=0x40000; 	Address(0x60[7:0],0x61[7:0],0x62[7:0],0x63[7:0],0x64[7:0])
    SPIWrite 0062,04,0,7
    SPIWrite 0061,00,0,7
    SPIWrite 0060,00,0,7
    SPIWrite 0038,b0,0,7
    SPIWrite 0028,04,0,7
    SPIWrite 0015,08,0,7	//rx=0x2; 	Address(0x15[7:2])
    SPIWrite 0063,00,0,7	//Property_40h_31_0=0x40000; 	Address(0x60[7:0],0x61[7:0],0x62[7:0],0x63[7:0],0x64[7:0])
    SPIWrite 0062,04,0,7
    SPIWrite 0061,00,0,7
    SPIWrite 0060,00,0,7
    SPIWrite 0038,b0,0,7
    SPIWrite 0028,04,0,7
    SPIWrite 0015,00,0,7	//rx=0x0; 	Address(0x15[7:2])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 006b,00,0,7	//Property_48h_31_0=0x8; 	Address(0x68[7:0],0x69[7:0],0x6a[7:0],0x6b[7:0],0x6c[7:0])
    SPIWrite 006a,00,0,7
    SPIWrite 0069,00,0,7
    SPIWrite 0068,08,0,7
    SPIWrite 0067,00,0,7	//Property_44h_31_0=0x4000; 	Address(0x64[7:0],0x65[7:0],0x66[7:0],0x67[7:0],0x68[7:0])
    SPIWrite 0066,00,0,7
    SPIWrite 0065,40,0,7
    SPIWrite 0064,00,0,7
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    SPIWrite 0011,10,0,7	//ec_ana=0x10; 	Address(0x11[7:0])
    SPIWrite 00a4,80,0,7	//Property_a4h_7_7_a5h_2_0=0xf; 	Address(0xa4[7:7],0xa5[7:0])
    SPIWrite 00a5,07,0,7
    SPIWrite 0011,01,0,7	//ec_ana=0x1; 	Address(0x11[7:0])
    SPIWrite 00a4,80,0,7	//Property_a4h_7_7_a5h_2_0=0xf; 	Address(0xa4[7:7],0xa5[7:0])
    SPIWrite 00a5,07,0,7
    SPIWrite 0011,02,0,7	//ec_ana=0x2; 	Address(0x11[7:0])
    SPIWrite 00a4,80,0,7	//Property_a4h_7_7_a5h_2_0=0xf; 	Address(0xa4[7:7],0xa5[7:0])
    SPIWrite 00a5,07,0,7
    SPIWrite 0011,20,0,7	//ec_ana=0x20; 	Address(0x11[7:0])
    SPIWrite 00a4,80,0,7	//Property_a4h_7_7_a5h_2_0=0xf; 	Address(0xa4[7:7],0xa5[7:0])
    SPIWrite 00a5,07,0,7
    SPIWrite 0011,04,0,7	//ec_ana=0x4; 	Address(0x11[7:0])
    SPIWrite 00a4,80,0,7	//Property_a4h_7_7_a5h_2_0=0xf; 	Address(0xa4[7:7],0xa5[7:0])
    SPIWrite 00a5,07,0,7
    SPIWrite 0011,08,0,7	//ec_ana=0x8; 	Address(0x11[7:0])
    SPIWrite 00a4,80,0,7	//Property_a4h_7_7_a5h_2_0=0xf; 	Address(0xa4[7:7],0xa5[7:0])
    SPIWrite 00a5,07,0,7
    SPIWrite 0011,00,0,7	//ec_ana=0x0; 	Address(0x11[7:0])
    
    //STEP: analogWrites/step3 
    
    //START: PLL Ana Trims
    
    
    //START: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,40,6,6	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0170,01,0,0	//pll_reg_spi_req_a=0x1; 	Address(0x170[7:0])
    SPIWrite 0540,00,0,0	//Property_520h_0_0=0x0; 	Address(0x540[7:0])
    
    SPIPoll 0171,0,0,01
    SPIRead 0171,0,0
    
    //Read	pll_reg_spi_a_ack=0x0(Meaning: );; 	Address(0x171[7:0])
    
    
    //END: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,00,6,6	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0015,01,0,0	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 005e,01,0,0	//Property_3ch_16_16=0x1; 	Address(0x5e[7:0])
    SPIWrite 005d,e0,5,7	//Property_3ch_15_13=0x7; 	Address(0x5d[7:5])
    
    //START: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,00,0,0	//pll=0x0; 	Address(0x15[7:0])
    SPIWrite 0015,40,6,6	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0170,00,0,0	//pll_reg_spi_req_a=0x0; 	Address(0x170[7:0])
    SPIWrite 0540,00,0,0	//Property_520h_0_0=0x0; 	Address(0x540[7:0])
    
    //END: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 050f,00,0,7	//Property_4ech_31_0=0xc0000; 	Address(0x50c[7:0],0x50d[7:0],0x50e[7:0],0x50f[7:0],0x510[7:0])
    SPIWrite 050e,0c,0,7
    SPIWrite 050d,00,0,7
    SPIWrite 050c,00,0,7
    SPIWrite 0015,00,6,6	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0015,02,1,1	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 00bb,00,0,7	//Property_98h_31_0=0x0; 	Address(0xb8[7:0],0xb9[7:0],0xba[7:0],0xbb[7:0],0xbc[7:0])
    SPIWrite 00ba,00,0,7
    SPIWrite 00b9,00,0,7
    SPIWrite 00b8,00,0,7
    SPIWrite 00bb,00,0,7	//Property_98h_31_0=0x8000; 	Address(0xb8[7:0],0xb9[7:0],0xba[7:0],0xbb[7:0],0xbc[7:0])
    SPIWrite 00ba,00,0,7
    SPIWrite 00b9,80,0,7
    SPIWrite 00b8,00,0,7
    SPIWrite 00bb,00,0,7	//Property_98h_31_0=0x0; 	Address(0xb8[7:0],0xb9[7:0],0xba[7:0],0xbb[7:0],0xbc[7:0])
    SPIWrite 00ba,00,0,7
    SPIWrite 00b9,00,0,7
    SPIWrite 00b8,00,0,7
    
    //END: PLL Ana Trims
    
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    
    //STEP: jesdConfig/step0 
    
    //START: Configuring JESD Muxes and Pointers
    
    
    //START: Configuring JESD TX Lane Mux
    
    SPIWrite 0016,10,0,7	//jesd_subchip=0x1; 	Address(0x16[7:4])
    SPIWrite 0048,10,0,7	//txoctetpath0_sel=0x0; 	Address(0x48[7:0])
    SPIWrite 0048,10,0,7	//txoctetpath1_sel=0x1; 	Address(0x48[7:4])
    SPIWrite 0049,32,0,7	//txoctetpath2_sel=0x2; 	Address(0x49[7:0])
    SPIWrite 0049,32,0,7	//txoctetpath3_sel=0x3; 	Address(0x49[7:4])
    SPIWrite 004a,54,0,7	//txoctetpath4_sel=0x4; 	Address(0x4a[7:0])
    SPIWrite 004a,54,0,7	//txoctetpath5_sel=0x5; 	Address(0x4a[7:4])
    SPIWrite 004b,76,0,7	//txoctetpath6_sel=0x6; 	Address(0x4b[7:0])
    SPIWrite 004b,76,0,7	//txoctetpath7_sel=0x7; 	Address(0x4b[7:4])
    SPIWrite 004c,10,0,7	//txoctetpath0_clk_sel=0x0; 	Address(0x4c[7:0])
    SPIWrite 004c,10,0,7	//txoctetpath1_clk_sel=0x1; 	Address(0x4c[7:4])
    SPIWrite 004d,32,0,7	//txoctetpath2_clk_sel=0x2; 	Address(0x4d[7:0])
    SPIWrite 004d,32,0,7	//txoctetpath3_clk_sel=0x3; 	Address(0x4d[7:4])
    SPIWrite 004e,54,0,7	//txoctetpath4_clk_sel=0x4; 	Address(0x4e[7:0])
    SPIWrite 004e,54,0,7	//txoctetpath5_clk_sel=0x5; 	Address(0x4e[7:4])
    SPIWrite 004f,76,0,7	//txoctetpath6_clk_sel=0x6; 	Address(0x4f[7:0])
    SPIWrite 004f,76,0,7	//txoctetpath7_clk_sel=0x7; 	Address(0x4f[7:4])
    
    //END: Configuring JESD TX Lane Mux
    
    
    //START: Configuring JESD RX Lane Mux
    
    SPIWrite 0068,10,0,7	//rxoctetpath0_sel=0x0; 	Address(0x68[7:0])
    SPIWrite 0068,10,0,7	//rxoctetpath1_sel=0x1; 	Address(0x68[7:4])
    SPIWrite 0069,32,0,7	//rxoctetpath2_sel=0x2; 	Address(0x69[7:0])
    SPIWrite 0069,32,0,7	//rxoctetpath3_sel=0x3; 	Address(0x69[7:4])
    SPIWrite 006a,54,0,7	//rxoctetpath4_sel=0x4; 	Address(0x6a[7:0])
    SPIWrite 006a,54,0,7	//rxoctetpath5_sel=0x5; 	Address(0x6a[7:4])
    SPIWrite 006b,76,0,7	//rxoctetpath6_sel=0x6; 	Address(0x6b[7:0])
    SPIWrite 006b,76,0,7	//rxoctetpath7_sel=0x7; 	Address(0x6b[7:4])
    SPIWrite 006c,10,0,7	//rxoctetpath0_clk_sel=0x0; 	Address(0x6c[7:0])
    SPIWrite 006c,10,0,7	//rxoctetpath1_clk_sel=0x1; 	Address(0x6c[7:4])
    SPIWrite 006d,32,0,7	//rxoctetpath2_clk_sel=0x2; 	Address(0x6d[7:0])
    SPIWrite 006d,32,0,7	//rxoctetpath3_clk_sel=0x3; 	Address(0x6d[7:4])
    SPIWrite 006e,54,0,7	//rxoctetpath4_clk_sel=0x4; 	Address(0x6e[7:0])
    SPIWrite 006e,54,0,7	//rxoctetpath5_clk_sel=0x5; 	Address(0x6e[7:4])
    SPIWrite 006f,76,0,7	//rxoctetpath6_clk_sel=0x6; 	Address(0x6f[7:0])
    SPIWrite 006f,76,0,7	//rxoctetpath7_clk_sel=0x7; 	Address(0x6f[7:4])
    
    //END: Configuring JESD RX Lane Mux
    
    
    //START: Configuring the DDC-JESD Data Muxes
    
    SPIWrite 0034,00,0,7	//mux_sel_rxa_b1_i_for_2r1f_ab=0x0; 	Address(0x34[7:0])
    SPIWrite 0034,00,0,7	//mux_sel_rxa_b1_q_for_2r1f_ab=0x0; 	Address(0x34[7:4])
    SPIWrite 0035,21,0,7	//mux_sel_rxa_b2_i_for_2r1f_ab=0x1; 	Address(0x35[7:0])
    SPIWrite 0035,11,0,7	//mux_sel_rxa_b2_q_for_2r1f_ab=0x1; 	Address(0x35[7:4])
    SPIWrite 0036,42,0,7	//mux_sel_rxb_b1_i_for_2r1f_ab=0x2; 	Address(0x36[7:0])
    SPIWrite 0036,22,0,7	//mux_sel_rxb_b1_q_for_2r1f_ab=0x2; 	Address(0x36[7:4])
    SPIWrite 0037,63,0,7	//mux_sel_rxb_b2_i_for_2r1f_ab=0x3; 	Address(0x37[7:0])
    SPIWrite 0037,33,0,7	//mux_sel_rxb_b2_q_for_2r1f_ab=0x3; 	Address(0x37[7:4])
    SPIWrite 0038,44,0,7	//mux_sel_rxc_b1_i_for_2r1f_ab=0x4; 	Address(0x38[7:0])
    SPIWrite 0038,44,0,7	//mux_sel_rxc_b1_q_for_2r1f_ab=0x4; 	Address(0x38[7:4])
    SPIWrite 0039,55,0,7	//mux_sel_rxc_b2_i_for_2r1f_ab=0x5; 	Address(0x39[7:0])
    SPIWrite 0039,55,0,7	//mux_sel_rxc_b2_q_for_2r1f_ab=0x5; 	Address(0x39[7:4])
    SPIWrite 003a,66,0,7	//mux_sel_rxd_b1_i_for_2r1f_ab=0x6; 	Address(0x3a[7:0])
    SPIWrite 003a,66,0,7	//mux_sel_rxd_b1_q_for_2r1f_ab=0x6; 	Address(0x3a[7:4])
    SPIWrite 003b,77,0,7	//mux_sel_rxd_b2_i_for_2r1f_ab=0x7; 	Address(0x3b[7:0])
    SPIWrite 003b,77,0,7	//mux_sel_rxd_b2_q_for_2r1f_ab=0x7; 	Address(0x3b[7:4])
    SPIWrite 0040,00,0,7	//mux_sel_rxc_b1_i_for_2r1f_cd=0x0; 	Address(0x40[7:0])
    SPIWrite 0040,00,0,7	//mux_sel_rxc_b1_q_for_2r1f_cd=0x0; 	Address(0x40[7:4])
    SPIWrite 0041,21,0,7	//mux_sel_rxc_b2_i_for_2r1f_cd=0x1; 	Address(0x41[7:0])
    SPIWrite 0041,11,0,7	//mux_sel_rxc_b2_q_for_2r1f_cd=0x1; 	Address(0x41[7:4])
    SPIWrite 0042,22,0,7	//mux_sel_rxd_b1_i_for_2r1f_cd=0x2; 	Address(0x42[7:0])
    SPIWrite 0042,22,0,7	//mux_sel_rxd_b1_q_for_2r1f_cd=0x2; 	Address(0x42[7:4])
    SPIWrite 0043,33,0,7	//mux_sel_rxd_b2_i_for_2r1f_cd=0x3; 	Address(0x43[7:0])
    SPIWrite 0043,33,0,7	//mux_sel_rxd_b2_q_for_2r1f_cd=0x3; 	Address(0x43[7:4])
    SPIWrite 0044,50,0,7	//mux_sel_fba_i0_for_2r1f_ab=0x0; 	Address(0x44[7:0])
    SPIWrite 0044,50,0,7	//mux_sel_fba_q0_for_2r1f_ab=0x0; 	Address(0x44[7:2])
    SPIWrite 0044,50,0,7	//mux_sel_fba_i1_for_2r1f_ab=0x1; 	Address(0x44[7:4])
    SPIWrite 0044,50,0,7	//mux_sel_fba_q1_for_2r1f_ab=0x1; 	Address(0x44[7:6])
    SPIWrite 0045,fa,0,7	//mux_sel_fbc_i0_for_2r1f_ab=0x2; 	Address(0x45[7:0])
    SPIWrite 0045,fa,0,7	//mux_sel_fbc_q0_for_2r1f_ab=0x2; 	Address(0x45[7:2])
    SPIWrite 0045,fa,0,7	//mux_sel_fbc_i1_for_2r1f_ab=0x3; 	Address(0x45[7:4])
    SPIWrite 0045,fa,0,7	//mux_sel_fbc_q1_for_2r1f_ab=0x3; 	Address(0x45[7:6])
    SPIWrite 0046,fa,0,7	//mux_sel_fba_i0_for_2r1f_cd=0x2; 	Address(0x46[7:0])
    SPIWrite 0046,fa,0,7	//mux_sel_fba_q0_for_2r1f_cd=0x2; 	Address(0x46[7:2])
    SPIWrite 0046,fa,0,7	//mux_sel_fba_i1_for_2r1f_cd=0x3; 	Address(0x46[7:4])
    SPIWrite 0046,fa,0,7	//mux_sel_fba_q1_for_2r1f_cd=0x3; 	Address(0x46[7:6])
    SPIWrite 0047,50,0,7	//mux_sel_fbc_i0_for_2r1f_cd=0x0; 	Address(0x47[7:0])
    SPIWrite 0047,50,0,7	//mux_sel_fbc_q0_for_2r1f_cd=0x0; 	Address(0x47[7:2])
    SPIWrite 0047,50,0,7	//mux_sel_fbc_i1_for_2r1f_cd=0x1; 	Address(0x47[7:4])
    SPIWrite 0047,50,0,7	//mux_sel_fbc_q1_for_2r1f_cd=0x1; 	Address(0x47[7:6])
    
    //END: Configuring the DDC-JESD Data Muxes
    
    
    //START: Configuring the JESD-DUC Data Muxes
    
    SPIWrite 00cc,00,0,7	//mux_sel_for_txa_b0_i=0x0; 	Address(0xcc[7:0])
    SPIWrite 00cc,00,0,7	//mux_sel_for_txa_b0_q=0x0; 	Address(0xcc[7:4])
    SPIWrite 00cd,11,0,7	//mux_sel_for_txa_b1_i=0x1; 	Address(0xcd[7:0])
    SPIWrite 00cd,11,0,7	//mux_sel_for_txa_b1_q=0x1; 	Address(0xcd[7:4])
    SPIWrite 00ce,22,0,7	//mux_sel_for_txb_b0_i=0x2; 	Address(0xce[7:0])
    SPIWrite 00ce,22,0,7	//mux_sel_for_txb_b0_q=0x2; 	Address(0xce[7:4])
    SPIWrite 00cf,33,0,7	//mux_sel_for_txb_b1_i=0x3; 	Address(0xcf[7:0])
    SPIWrite 00cf,33,0,7	//mux_sel_for_txb_b1_q=0x3; 	Address(0xcf[7:4])
    SPIWrite 00d0,48,0,7	//mux_sel_for_txc_b0_i=0x8; 	Address(0xd0[7:0])
    SPIWrite 00d0,88,0,7	//mux_sel_for_txc_b0_q=0x8; 	Address(0xd0[7:4])
    SPIWrite 00d1,59,0,7	//mux_sel_for_txc_b1_i=0x9; 	Address(0xd1[7:0])
    SPIWrite 00d1,99,0,7	//mux_sel_for_txc_b1_q=0x9; 	Address(0xd1[7:4])
    SPIWrite 00d2,6a,0,7	//mux_sel_for_txd_b0_i=0xa; 	Address(0xd2[7:0])
    SPIWrite 00d2,aa,0,7	//mux_sel_for_txd_b0_q=0xa; 	Address(0xd2[7:4])
    SPIWrite 00d3,7b,0,7	//mux_sel_for_txd_b1_i=0xb; 	Address(0xd3[7:0])
    SPIWrite 00d3,bb,0,7	//mux_sel_for_txd_b1_q=0xb; 	Address(0xd3[7:4])
    SPIWrite 0060,10,0,7	//mux_sel_for_txa_ctrl=0x0; 	Address(0x60[7:0])
    SPIWrite 0060,10,0,7	//mux_sel_for_txb_ctrl=0x1; 	Address(0x60[7:4])
    SPIWrite 0061,34,0,7	//mux_sel_for_txc_ctrl=0x4; 	Address(0x61[7:0])
    SPIWrite 0061,54,0,7	//mux_sel_for_txd_ctrl=0x5; 	Address(0x61[7:4])
    SPIWrite 00bc,e4,0,7	//tdd_tx_on_a_2t_ab_mux_sel=0x0; 	Address(0xbc[7:0])
    SPIWrite 00bc,e4,0,7	//tdd_tx_on_b_2t_ab_mux_sel=0x1; 	Address(0xbc[7:2])
    SPIWrite 00bc,e4,0,7	//tdd_tx_on_c_2t_ab_mux_sel=0x2; 	Address(0xbc[7:4])
    SPIWrite 00bc,e4,0,7	//tdd_tx_on_d_2t_ab_mux_sel=0x3; 	Address(0xbc[7:6])
    SPIWrite 00be,4e,0,7	//tdd_tx_on_a_2t_cd_mux_sel=0x2; 	Address(0xbe[7:0])
    SPIWrite 00be,4e,0,7	//tdd_tx_on_b_2t_cd_mux_sel=0x3; 	Address(0xbe[7:2])
    SPIWrite 00be,6e,0,7	//tdd_tx_on_c_2t_cd_mux_sel=0x2; 	Address(0xbe[7:4])
    SPIWrite 00be,ee,0,7	//tdd_tx_on_d_2t_cd_mux_sel=0x3; 	Address(0xbe[7:6])
    
    //END: Configuring the JESD-DUC Data Muxes
    
    
    //START: Configuring JESD TX Sync Mux
    
    SPIWrite 0054,00,0,7	//adc_jesd_sync_n0_mux_sel=0x0; 	Address(0x54[7:0])
    SPIWrite 0054,00,0,7	//adc_jesd_sync_n1_mux_sel=0x0; 	Address(0x54[7:4])
    SPIWrite 0055,30,0,7	//adc_jesd_sync_n2_mux_sel=0x0; 	Address(0x55[7:0])
    SPIWrite 0055,00,0,7	//adc_jesd_sync_n3_mux_sel=0x0; 	Address(0x55[7:4])
    SPIWrite 0056,50,0,7	//adc_jesd_sync_n4_mux_sel=0x0; 	Address(0x56[7:0])
    SPIWrite 0056,00,0,7	//adc_jesd_sync_n5_mux_sel=0x0; 	Address(0x56[7:4])
    
    //END: Configuring JESD TX Sync Mux
    
    
    //START: Configuring JESD RX Sync Mux
    
    SPIWrite 00ca,e4,0,7	//dac_jesd_sync_n0_mux_sel=0x0; 	Address(0xca[7:0])
    SPIWrite 00ca,e0,0,7	//dac_jesd_sync_n1_mux_sel=0x0; 	Address(0xca[7:2])
    SPIWrite 00ca,c0,0,7	//dac_jesd_sync_n2_mux_sel=0x0; 	Address(0xca[7:4])
    SPIWrite 00ca,00,0,7	//dac_jesd_sync_n3_mux_sel=0x0; 	Address(0xca[7:6])
    
    //END: Configuring JESD RX Sync Mux
    
    SPIWrite 009c,03,0,7	//rx_clk_dithered_mode_en=0x1; 	Address(0x9c[7:1])
    SPIWrite 009e,03,0,7	//fb_clk_dithered_mode_en=0x1; 	Address(0x9e[7:1])
    SPIWrite 009c,03,0,7	//rx_clk_disable=0x1; 	Address(0x9c[7:0])
    SPIWrite 00a0,02,0,7	//tx_clk_disable=0x0; 	Address(0xa0[7:0])
    SPIWrite 00a0,00,0,7	//tx_clk_dithered_mode_en=0x0; 	Address(0xa0[7:1])
    
    //END: Configuring JESD Muxes and Pointers
    
    
    //START: Setting JESD SyncB Pin Mode
    
    SPIWrite 0016,00,0,7	//jesd_subchip=0x0; 	Address(0x16[7:4])
    SPIWrite 0015,04,0,7	//rx=0x1; 	Address(0x15[7:2])
    SPIWrite 0067,18,0,7	//Property_44h_31_0=0x18000000; 	Address(0x64[7:0],0x65[7:0],0x66[7:0],0x67[7:0],0x68[7:0])
    SPIWrite 0066,00,0,7
    SPIWrite 0065,00,0,7
    SPIWrite 0064,00,0,7
    SPIWrite 0015,08,0,7	//rx=0x2; 	Address(0x15[7:2])
    SPIWrite 0067,18,0,7	//Property_44h_31_0=0x18000000; 	Address(0x64[7:0],0x65[7:0],0x66[7:0],0x67[7:0],0x68[7:0])
    SPIWrite 0066,00,0,7
    SPIWrite 0065,00,0,7
    SPIWrite 0064,00,0,7
    
    //END: Setting JESD SyncB Pin Mode
    
    SPIWrite 0015,00,0,7	//rx=0x0; 	Address(0x15[7:2])
    
    //STEP: jesdConfig/step1 
    
    //START: Configuring ADC JESD TX
    
    SPIWrite 0016,01,0,7	//adc_jesd=0x1; 	Address(0x16[7:0])
    SPIWrite 006d,07,0,7	//link0_init_state=0x1; 	Address(0x6d[7:0])
    SPIWrite 006d,07,0,7	//link1_init_state=0x1; 	Address(0x6d[7:1])
    SPIWrite 006d,07,0,7	//link2_init_state=0x1; 	Address(0x6d[7:2])
    SPIWrite 0022,04,0,7	//sysref_jesd_mode=0x4; 	Address(0x22[7:0])
    SPIWrite 006f,02,0,7	//init_state_gearbox_spi_ovr=0x1; 	Address(0x6f[7:1])
    SPIWrite 006c,0f,0,7	//lane0_gearbox_init_state=0x1; 	Address(0x6c[7:0])
    SPIWrite 006c,0f,0,7	//lane1_gearbox_init_state=0x1; 	Address(0x6c[7:1])
    SPIWrite 006c,0f,0,7	//lane2_gearbox_init_state=0x1; 	Address(0x6c[7:2])
    SPIWrite 006c,0f,0,7	//lane3_gearbox_init_state=0x1; 	Address(0x6c[7:3])
    SPIWrite 006c,0e,0,7	//lane0_gearbox_init_state=0x0; 	Address(0x6c[7:0])
    SPIWrite 006c,0c,0,7	//lane1_gearbox_init_state=0x0; 	Address(0x6c[7:1])
    SPIWrite 006c,08,0,7	//lane2_gearbox_init_state=0x0; 	Address(0x6c[7:2])
    SPIWrite 006c,00,0,7	//lane3_gearbox_init_state=0x0; 	Address(0x6c[7:3])
    SPIWrite 006e,0f,0,7	//lane0_serdes_fifo_init_state=0x1; 	Address(0x6e[7:0])
    SPIWrite 006e,0f,0,7	//lane1_serdes_fifo_init_state=0x1; 	Address(0x6e[7:1])
    SPIWrite 006e,0f,0,7	//lane2_serdes_fifo_init_state=0x1; 	Address(0x6e[7:2])
    SPIWrite 006e,0f,0,7	//lane3_serdes_fifo_init_state=0x1; 	Address(0x6e[7:3])
    SPIWrite 005c,1f,0,7	//rx_root_clk_dither_en=0x1; 	Address(0x5c[7:0])
    SPIWrite 005c,1f,0,7	//fb_root_clk_dither_en=0x1; 	Address(0x5c[7:1])
    SPIWrite 005c,1b,0,7	//ddc_rd_clk_dither_en=0x0; 	Address(0x5c[7:2])
    SPIWrite 005c,13,0,7	//jesd_clk_dither_en=0x0; 	Address(0x5c[7:3])
    SPIWrite 005c,03,0,7	//jesd_clk_div2_dither_en=0x0; 	Address(0x5c[7:4])
    SPIWrite 0021,03,0,7	//jesd_system_mode=0x3; 	Address(0x21[7:0])
    SPIWrite 005d,01,0,7	//rx_adc_clk_sysref_mux=0x1; 	Address(0x5d[7:0])
    SPIWrite 005d,01,0,7	//fb_adc_clk_sysref_mux=0x0; 	Address(0x5d[7:1])
    SPIWrite 0024,0f,0,7	//jesd_clear_data=0xf; 	Address(0x24[7:0])
    SPIWrite 0069,88,0,7	//serdes_fifo_read_dly_lane0=0x8; 	Address(0x69[7:0])
    SPIWrite 0069,88,0,7	//serdes_fifo_read_dly_lane1=0x8; 	Address(0x69[7:4])
    SPIWrite 006a,88,0,7	//serdes_fifo_read_dly_lane2=0x8; 	Address(0x6a[7:0])
    SPIWrite 006a,88,0,7	//serdes_fifo_read_dly_lane3=0x8; 	Address(0x6a[7:4])
    SPIWrite 0040,01,0,7	//rx1_root_clk_div_m=0x1; 	Address(0x40[7:0])
    SPIWrite 0041,00,0,7	//rx1_root_clk_div_n_m1=0x0; 	Address(0x41[7:0])
    SPIWrite 0046,01,0,7	//ddc_rd_clk_rx1_div_m=0x1; 	Address(0x46[7:0])
    SPIWrite 0047,00,0,7	//ddc_rd_clk_rx1_div_n_m1=0x0; 	Address(0x47[7:0])
    SPIWrite 004c,01,0,7	//jesd_clk_rx1_div_m=0x1; 	Address(0x4c[7:0])
    SPIWrite 004d,00,0,7	//jesd_clk_rx1_div_n_m1=0x0; 	Address(0x4d[7:0])
    SPIWrite 0034,18,0,7	//rx1_jesd_mode=0x18; 	Address(0x34[7:0])
    SPIWrite 0084,00,0,7	//link0_k_m1=0x0; 	Address(0x84[7:0],0x85[7:0])
    SPIWrite 0079,00,0,7	//link0_ila_k_m1=0x0; 	Address(0x79[7:0],0x7a[7:0])
    SPIWrite 0042,01,0,7	//rx2_root_clk_div_m=0x1; 	Address(0x42[7:0])
    SPIWrite 0043,00,0,7	//rx2_root_clk_div_n_m1=0x0; 	Address(0x43[7:0])
    SPIWrite 0048,01,0,7	//ddc_rd_clk_rx2_div_m=0x1; 	Address(0x48[7:0])
    SPIWrite 0049,00,0,7	//ddc_rd_clk_rx2_div_n_m1=0x0; 	Address(0x49[7:0])
    SPIWrite 004e,01,0,7	//jesd_clk_rx2_div_m=0x1; 	Address(0x4e[7:0])
    SPIWrite 004f,00,0,7	//jesd_clk_rx2_div_n_m1=0x0; 	Address(0x4f[7:0])
    SPIWrite 0035,18,0,7	//rx2_jesd_mode=0x18; 	Address(0x35[7:0])
    SPIWrite 009c,00,0,7	//link1_k_m1=0x0; 	Address(0x9c[7:0],0x9d[7:0])
    SPIWrite 0091,00,0,7	//link1_ila_k_m1=0x0; 	Address(0x91[7:0],0x92[7:0])
    SPIWrite 0044,01,0,7	//fb_root_clk_div_m=0x1; 	Address(0x44[7:0])
    SPIWrite 0045,00,0,7	//fb_root_clk_div_n_m1=0x0; 	Address(0x45[7:0])
    SPIWrite 004a,01,0,7	//ddc_rd_clk_fb_div_m=0x1; 	Address(0x4a[7:0])
    SPIWrite 004b,00,0,7	//ddc_rd_clk_fb_div_n_m1=0x0; 	Address(0x4b[7:0])
    SPIWrite 0050,01,0,7	//jesd_clk_fb_div_m=0x1; 	Address(0x50[7:0])
    SPIWrite 0051,00,0,7	//jesd_clk_fb_div_n_m1=0x0; 	Address(0x51[7:0])
    SPIWrite 0036,18,0,7	//fb_jesd_mode=0x18; 	Address(0x36[7:0])
    SPIWrite 00b4,00,0,7	//link2_k_m1=0x0; 	Address(0xb4[7:0],0xb5[7:0])
    SPIWrite 00a9,00,0,7	//link2_ila_k_m1=0x0; 	Address(0xa9[7:0],0xaa[7:0])
    SPIWrite 0020,02,0,7	//jesd_std_sel=0x2; 	Address(0x20[7:0])
    SPIWrite 0077,01,0,7	//link0_scr=0x0; 	Address(0x77[7:7])
    SPIWrite 008f,01,0,7	//link1_scr=0x0; 	Address(0x8f[7:7])
    SPIWrite 00a7,01,0,7	//link2_scr=0x0; 	Address(0xa7[7:7])
    SPIWrite 0023,03,0,7	//lane_ena=0x3; 	Address(0x23[7:0])
    SPIWrite 003c,02,0,7	//sel_rx1_jesd_mode_1s_2s_ovr=0x1; 	Address(0x3c[7:1])
    SPIWrite 003c,03,0,7	//sel_rx1_jesd_mode_1s_2s_val=0x1; 	Address(0x3c[7:0])
    SPIWrite 003c,0b,0,7	//sel_rx2_jesd_mode_1s_2s_ovr=0x1; 	Address(0x3c[7:3])
    SPIWrite 003c,0f,0,7	//sel_rx2_jesd_mode_1s_2s_val=0x1; 	Address(0x3c[7:2])
    SPIWrite 003c,2f,0,7	//sel_fb_jesd_mode_1s_2s_ovr=0x1; 	Address(0x3c[7:5])
    SPIWrite 003c,3f,0,7	//sel_fb_jesd_mode_1s_2s_val=0x1; 	Address(0x3c[7:4])
    SPIWrite 0083,01,0,7	//link0_jesd_ila_config_override=0x1; 	Address(0x83[7:0])
    SPIWrite 009b,01,0,7	//link1_jesd_ila_config_override=0x1; 	Address(0x9b[7:0])
    SPIWrite 00b2,80,0,7	//link2_jesd_ila_config_override=0x1; 	Address(0xb2[7:7])
    SPIWrite 0078,01,0,7	//link0_ila_f_m1=0x1; 	Address(0x78[7:0],0x79[7:0])
    SPIWrite 0090,01,0,7	//link1_ila_f_m1=0x1; 	Address(0x90[7:0],0x91[7:0])
    SPIWrite 00a8,01,0,7	//link2_ila_f_m1=0x1; 	Address(0xa8[7:0],0xa9[7:0])
    SPIWrite 007a,07,0,7	//link0_ila_m_m1=0x7; 	Address(0x7a[7:0],0x7b[7:0])
    SPIWrite 0092,07,0,7	//link1_ila_m_m1=0x7; 	Address(0x92[7:0],0x93[7:0])
    SPIWrite 00aa,07,0,7	//link2_ila_m_m1=0x7; 	Address(0xaa[7:0],0xab[7:0])
    SPIWrite 0077,03,0,7	//link0_ila_l_m1=0x3; 	Address(0x77[7:0])
    SPIWrite 008f,03,0,7	//link1_ila_l_m1=0x3; 	Address(0x8f[7:0])
    SPIWrite 00a7,03,0,7	//link2_ila_l_m1=0x3; 	Address(0xa7[7:0])
    SPIWrite 007b,0f,0,7	//link0_ila_n_m1=0xf; 	Address(0x7b[7:0])
    SPIWrite 0093,0f,0,7	//link1_ila_n_m1=0xf; 	Address(0x93[7:0])
    SPIWrite 00ab,0f,0,7	//link2_ila_n_m1=0xf; 	Address(0xab[7:0])
    SPIWrite 00bc,00,0,7	//lid0=0x0; 	Address(0xbc[7:0])
    SPIWrite 00bd,01,0,7	//lid1=0x1; 	Address(0xbd[7:0])
    SPIWrite 00be,02,0,7	//lid2=0x2; 	Address(0xbe[7:0])
    SPIWrite 00bf,03,0,7	//lid3=0x3; 	Address(0xbf[7:0])
    SPIWrite 00e4,42,0,7	//msf_rx1_offset_default_mode0=0x2; 	Address(0xe4[7:0])
    SPIWrite 00e4,22,0,7	//msf_rx1_offset_default_mode1=0x2; 	Address(0xe4[7:4])
    SPIWrite 00e5,83,0,7	//msf_rx1_offset_default_mode2=0x3; 	Address(0xe5[7:0])
    SPIWrite 00e5,43,0,7	//msf_rx1_offset_default_mode3=0x4; 	Address(0xe5[7:4])
    SPIWrite 00e6,42,0,7	//msf_rx2_offset_default_mode0=0x2; 	Address(0xe6[7:0])
    SPIWrite 00e6,22,0,7	//msf_rx2_offset_default_mode1=0x2; 	Address(0xe6[7:4])
    SPIWrite 00e7,83,0,7	//msf_rx2_offset_default_mode2=0x3; 	Address(0xe7[7:0])
    SPIWrite 00e7,43,0,7	//msf_rx2_offset_default_mode3=0x4; 	Address(0xe7[7:4])
    SPIWrite 00e8,42,0,7	//msf_fb_offset_default_mode0=0x2; 	Address(0xe8[7:0])
    SPIWrite 00e8,22,0,7	//msf_fb_offset_default_mode1=0x2; 	Address(0xe8[7:4])
    SPIWrite 00e9,83,0,7	//msf_fb_offset_default_mode2=0x3; 	Address(0xe9[7:0])
    SPIWrite 00e9,43,0,7	//msf_fb_offset_default_mode3=0x4; 	Address(0xe9[7:4])
    SPIWrite 0037,06,0,7	//rx1_ctrlmode_12b_trunc_en=0x0; 	Address(0x37[7:0])
    SPIWrite 0037,04,0,7	//rx2_ctrlmode_12b_trunc_en=0x0; 	Address(0x37[7:1])
    SPIWrite 0037,00,0,7	//fb_ctrlmode_12b_trunc_en=0x0; 	Address(0x37[7:2])
    
    //END: Done Configuring ADC JESD TX
    
    
    //START: Configuring ADC JESD TX
    
    SPIWrite 0016,02,0,7	//adc_jesd=0x2; 	Address(0x16[7:0])
    SPIWrite 006d,07,0,7	//link0_init_state=0x1; 	Address(0x6d[7:0])
    SPIWrite 006d,07,0,7	//link1_init_state=0x1; 	Address(0x6d[7:1])
    SPIWrite 006d,07,0,7	//link2_init_state=0x1; 	Address(0x6d[7:2])
    SPIWrite 0022,04,0,7	//sysref_jesd_mode=0x4; 	Address(0x22[7:0])
    SPIWrite 006f,02,0,7	//init_state_gearbox_spi_ovr=0x1; 	Address(0x6f[7:1])
    SPIWrite 006c,0f,0,7	//lane0_gearbox_init_state=0x1; 	Address(0x6c[7:0])
    SPIWrite 006c,0f,0,7	//lane1_gearbox_init_state=0x1; 	Address(0x6c[7:1])
    SPIWrite 006c,0f,0,7	//lane2_gearbox_init_state=0x1; 	Address(0x6c[7:2])
    SPIWrite 006c,0f,0,7	//lane3_gearbox_init_state=0x1; 	Address(0x6c[7:3])
    SPIWrite 006c,0e,0,7	//lane0_gearbox_init_state=0x0; 	Address(0x6c[7:0])
    SPIWrite 006c,0c,0,7	//lane1_gearbox_init_state=0x0; 	Address(0x6c[7:1])
    SPIWrite 006c,08,0,7	//lane2_gearbox_init_state=0x0; 	Address(0x6c[7:2])
    SPIWrite 006c,00,0,7	//lane3_gearbox_init_state=0x0; 	Address(0x6c[7:3])
    SPIWrite 006e,0f,0,7	//lane0_serdes_fifo_init_state=0x1; 	Address(0x6e[7:0])
    SPIWrite 006e,0f,0,7	//lane1_serdes_fifo_init_state=0x1; 	Address(0x6e[7:1])
    SPIWrite 006e,0f,0,7	//lane2_serdes_fifo_init_state=0x1; 	Address(0x6e[7:2])
    SPIWrite 006e,0f,0,7	//lane3_serdes_fifo_init_state=0x1; 	Address(0x6e[7:3])
    SPIWrite 005c,1f,0,7	//rx_root_clk_dither_en=0x1; 	Address(0x5c[7:0])
    SPIWrite 005c,1f,0,7	//fb_root_clk_dither_en=0x1; 	Address(0x5c[7:1])
    SPIWrite 005c,1b,0,7	//ddc_rd_clk_dither_en=0x0; 	Address(0x5c[7:2])
    SPIWrite 005c,13,0,7	//jesd_clk_dither_en=0x0; 	Address(0x5c[7:3])
    SPIWrite 005c,03,0,7	//jesd_clk_div2_dither_en=0x0; 	Address(0x5c[7:4])
    SPIWrite 0021,03,0,7	//jesd_system_mode=0x3; 	Address(0x21[7:0])
    SPIWrite 005d,01,0,7	//rx_adc_clk_sysref_mux=0x1; 	Address(0x5d[7:0])
    SPIWrite 005d,01,0,7	//fb_adc_clk_sysref_mux=0x0; 	Address(0x5d[7:1])
    SPIWrite 0024,0f,0,7	//jesd_clear_data=0xf; 	Address(0x24[7:0])
    SPIWrite 0069,88,0,7	//serdes_fifo_read_dly_lane0=0x8; 	Address(0x69[7:0])
    SPIWrite 0069,88,0,7	//serdes_fifo_read_dly_lane1=0x8; 	Address(0x69[7:4])
    SPIWrite 006a,88,0,7	//serdes_fifo_read_dly_lane2=0x8; 	Address(0x6a[7:0])
    SPIWrite 006a,88,0,7	//serdes_fifo_read_dly_lane3=0x8; 	Address(0x6a[7:4])
    SPIWrite 0040,01,0,7	//rx1_root_clk_div_m=0x1; 	Address(0x40[7:0])
    SPIWrite 0041,00,0,7	//rx1_root_clk_div_n_m1=0x0; 	Address(0x41[7:0])
    SPIWrite 0046,01,0,7	//ddc_rd_clk_rx1_div_m=0x1; 	Address(0x46[7:0])
    SPIWrite 0047,00,0,7	//ddc_rd_clk_rx1_div_n_m1=0x0; 	Address(0x47[7:0])
    SPIWrite 004c,01,0,7	//jesd_clk_rx1_div_m=0x1; 	Address(0x4c[7:0])
    SPIWrite 004d,00,0,7	//jesd_clk_rx1_div_n_m1=0x0; 	Address(0x4d[7:0])
    SPIWrite 0034,18,0,7	//rx1_jesd_mode=0x18; 	Address(0x34[7:0])
    SPIWrite 0084,00,0,7	//link0_k_m1=0x0; 	Address(0x84[7:0],0x85[7:0])
    SPIWrite 0079,00,0,7	//link0_ila_k_m1=0x0; 	Address(0x79[7:0],0x7a[7:0])
    SPIWrite 0042,01,0,7	//rx2_root_clk_div_m=0x1; 	Address(0x42[7:0])
    SPIWrite 0043,00,0,7	//rx2_root_clk_div_n_m1=0x0; 	Address(0x43[7:0])
    SPIWrite 0048,01,0,7	//ddc_rd_clk_rx2_div_m=0x1; 	Address(0x48[7:0])
    SPIWrite 0049,00,0,7	//ddc_rd_clk_rx2_div_n_m1=0x0; 	Address(0x49[7:0])
    SPIWrite 004e,01,0,7	//jesd_clk_rx2_div_m=0x1; 	Address(0x4e[7:0])
    SPIWrite 004f,00,0,7	//jesd_clk_rx2_div_n_m1=0x0; 	Address(0x4f[7:0])
    SPIWrite 0035,18,0,7	//rx2_jesd_mode=0x18; 	Address(0x35[7:0])
    SPIWrite 009c,00,0,7	//link1_k_m1=0x0; 	Address(0x9c[7:0],0x9d[7:0])
    SPIWrite 0091,00,0,7	//link1_ila_k_m1=0x0; 	Address(0x91[7:0],0x92[7:0])
    SPIWrite 0044,01,0,7	//fb_root_clk_div_m=0x1; 	Address(0x44[7:0])
    SPIWrite 0045,00,0,7	//fb_root_clk_div_n_m1=0x0; 	Address(0x45[7:0])
    SPIWrite 004a,01,0,7	//ddc_rd_clk_fb_div_m=0x1; 	Address(0x4a[7:0])
    SPIWrite 004b,00,0,7	//ddc_rd_clk_fb_div_n_m1=0x0; 	Address(0x4b[7:0])
    SPIWrite 0050,01,0,7	//jesd_clk_fb_div_m=0x1; 	Address(0x50[7:0])
    SPIWrite 0051,00,0,7	//jesd_clk_fb_div_n_m1=0x0; 	Address(0x51[7:0])
    SPIWrite 0036,18,0,7	//fb_jesd_mode=0x18; 	Address(0x36[7:0])
    SPIWrite 00b4,00,0,7	//link2_k_m1=0x0; 	Address(0xb4[7:0],0xb5[7:0])
    SPIWrite 00a9,00,0,7	//link2_ila_k_m1=0x0; 	Address(0xa9[7:0],0xaa[7:0])
    SPIWrite 0020,02,0,7	//jesd_std_sel=0x2; 	Address(0x20[7:0])
    SPIWrite 0077,01,0,7	//link0_scr=0x0; 	Address(0x77[7:7])
    SPIWrite 008f,01,0,7	//link1_scr=0x0; 	Address(0x8f[7:7])
    SPIWrite 00a7,01,0,7	//link2_scr=0x0; 	Address(0xa7[7:7])
    SPIWrite 0023,00,0,7	//lane_ena=0x0; 	Address(0x23[7:0])
    SPIWrite 003c,02,0,7	//sel_rx1_jesd_mode_1s_2s_ovr=0x1; 	Address(0x3c[7:1])
    SPIWrite 003c,03,0,7	//sel_rx1_jesd_mode_1s_2s_val=0x1; 	Address(0x3c[7:0])
    SPIWrite 003c,0b,0,7	//sel_rx2_jesd_mode_1s_2s_ovr=0x1; 	Address(0x3c[7:3])
    SPIWrite 003c,0f,0,7	//sel_rx2_jesd_mode_1s_2s_val=0x1; 	Address(0x3c[7:2])
    SPIWrite 003c,2f,0,7	//sel_fb_jesd_mode_1s_2s_ovr=0x1; 	Address(0x3c[7:5])
    SPIWrite 003c,3f,0,7	//sel_fb_jesd_mode_1s_2s_val=0x1; 	Address(0x3c[7:4])
    SPIWrite 0083,01,0,7	//link0_jesd_ila_config_override=0x1; 	Address(0x83[7:0])
    SPIWrite 009b,01,0,7	//link1_jesd_ila_config_override=0x1; 	Address(0x9b[7:0])
    SPIWrite 00b2,80,0,7	//link2_jesd_ila_config_override=0x1; 	Address(0xb2[7:7])
    SPIWrite 0078,01,0,7	//link0_ila_f_m1=0x1; 	Address(0x78[7:0],0x79[7:0])
    SPIWrite 0090,01,0,7	//link1_ila_f_m1=0x1; 	Address(0x90[7:0],0x91[7:0])
    SPIWrite 00a8,01,0,7	//link2_ila_f_m1=0x1; 	Address(0xa8[7:0],0xa9[7:0])
    SPIWrite 007a,07,0,7	//link0_ila_m_m1=0x7; 	Address(0x7a[7:0],0x7b[7:0])
    SPIWrite 0092,07,0,7	//link1_ila_m_m1=0x7; 	Address(0x92[7:0],0x93[7:0])
    SPIWrite 00aa,07,0,7	//link2_ila_m_m1=0x7; 	Address(0xaa[7:0],0xab[7:0])
    SPIWrite 0077,03,0,7	//link0_ila_l_m1=0x3; 	Address(0x77[7:0])
    SPIWrite 008f,03,0,7	//link1_ila_l_m1=0x3; 	Address(0x8f[7:0])
    SPIWrite 00a7,03,0,7	//link2_ila_l_m1=0x3; 	Address(0xa7[7:0])
    SPIWrite 007b,0f,0,7	//link0_ila_n_m1=0xf; 	Address(0x7b[7:0])
    SPIWrite 0093,0f,0,7	//link1_ila_n_m1=0xf; 	Address(0x93[7:0])
    SPIWrite 00ab,0f,0,7	//link2_ila_n_m1=0xf; 	Address(0xab[7:0])
    SPIWrite 00bc,04,0,7	//lid0=0x4; 	Address(0xbc[7:0])
    SPIWrite 00bd,05,0,7	//lid1=0x5; 	Address(0xbd[7:0])
    SPIWrite 00be,06,0,7	//lid2=0x6; 	Address(0xbe[7:0])
    SPIWrite 00bf,07,0,7	//lid3=0x7; 	Address(0xbf[7:0])
    SPIWrite 00e4,42,0,7	//msf_rx1_offset_default_mode0=0x2; 	Address(0xe4[7:0])
    SPIWrite 00e4,22,0,7	//msf_rx1_offset_default_mode1=0x2; 	Address(0xe4[7:4])
    SPIWrite 00e5,83,0,7	//msf_rx1_offset_default_mode2=0x3; 	Address(0xe5[7:0])
    SPIWrite 00e5,43,0,7	//msf_rx1_offset_default_mode3=0x4; 	Address(0xe5[7:4])
    SPIWrite 00e6,42,0,7	//msf_rx2_offset_default_mode0=0x2; 	Address(0xe6[7:0])
    SPIWrite 00e6,22,0,7	//msf_rx2_offset_default_mode1=0x2; 	Address(0xe6[7:4])
    SPIWrite 00e7,83,0,7	//msf_rx2_offset_default_mode2=0x3; 	Address(0xe7[7:0])
    SPIWrite 00e7,43,0,7	//msf_rx2_offset_default_mode3=0x4; 	Address(0xe7[7:4])
    SPIWrite 00e8,42,0,7	//msf_fb_offset_default_mode0=0x2; 	Address(0xe8[7:0])
    SPIWrite 00e8,22,0,7	//msf_fb_offset_default_mode1=0x2; 	Address(0xe8[7:4])
    SPIWrite 00e9,83,0,7	//msf_fb_offset_default_mode2=0x3; 	Address(0xe9[7:0])
    SPIWrite 00e9,43,0,7	//msf_fb_offset_default_mode3=0x4; 	Address(0xe9[7:4])
    SPIWrite 0037,06,0,7	//rx1_ctrlmode_12b_trunc_en=0x0; 	Address(0x37[7:0])
    SPIWrite 0037,04,0,7	//rx2_ctrlmode_12b_trunc_en=0x0; 	Address(0x37[7:1])
    SPIWrite 0037,00,0,7	//fb_ctrlmode_12b_trunc_en=0x0; 	Address(0x37[7:2])
    
    //END: Done Configuring ADC JESD TX
    
    SPIWrite 0016,00,0,7	//adc_jesd=0x0; 	Address(0x16[7:0])
    
    //STEP: jesdConfig/step2 
    
    //START: Configuring DAC JESD RX
    
    SPIWrite 0016,04,0,7	//dac_jesd=0x1; 	Address(0x16[7:2])
    SPIWrite 006c,00,0,7	//link0_k_m1=0x0; 	Address(0x6c[7:0],0x6d[7:0])
    SPIWrite 006d,00,0,7	//link1_k_m1=0x0; 	Address(0x6d[7:0],0x6e[7:0])
    SPIWrite 0057,00,0,7	//link1_ila_k_m1=0x0; 	Address(0x57[7:0],0x58[7:0])
    SPIWrite 0049,00,0,7	//link0_ila_k_m1=0x0; 	Address(0x49[7:0],0x4a[7:0])
    SPIWrite 0069,00,0,7	//link0_rbd_m1=0x31; 	Address(0x68[7:0],0x69[7:0],0x6a[7:0])
    SPIWrite 0068,31,0,7
    SPIWrite 006b,00,0,7	//link1_rbd_m1=0x31; 	Address(0x6a[7:0],0x6b[7:0],0x6c[7:0])
    SPIWrite 006a,31,0,7
    SPIWrite 0070,00,0,7	//link0_init_o_counter=0x0; 	Address(0x70[7:0],0x71[7:0])
    SPIWrite 0072,00,0,7	//link1_init_o_counter=0x0; 	Address(0x72[7:0],0x73[7:0])
    SPIWrite 0021,04,0,7	//sysref_mode=0x4; 	Address(0x21[7:0])
    SPIWrite 0024,5e,0,7	//gearbox_init_state_ovr=0x1; 	Address(0x24[7:6])
    SPIWrite 0025,ff,0,7	//gearbox_init_state_lane0_val=0x1; 	Address(0x25[7:0])
    SPIWrite 0025,ff,0,7	//gearbox_init_state_lane1_val=0x1; 	Address(0x25[7:1])
    SPIWrite 0025,ff,0,7	//gearbox_init_state_lane2_val=0x1; 	Address(0x25[7:2])
    SPIWrite 0025,ff,0,7	//gearbox_init_state_lane3_val=0x1; 	Address(0x25[7:3])
    SPIWrite 0025,fe,0,7	//gearbox_init_state_lane0_val=0x0; 	Address(0x25[7:0])
    SPIWrite 0025,fc,0,7	//gearbox_init_state_lane1_val=0x0; 	Address(0x25[7:1])
    SPIWrite 0025,f8,0,7	//gearbox_init_state_lane2_val=0x0; 	Address(0x25[7:2])
    SPIWrite 0025,f0,0,7	//gearbox_init_state_lane3_val=0x0; 	Address(0x25[7:3])
    SPIWrite 0020,03,0,7	//link0_init_state=0x1; 	Address(0x20[7:0])
    SPIWrite 0020,03,0,7	//link1_init_state=0x1; 	Address(0x20[7:1])
    SPIWrite 0064,ff,0,7	//jesd_clear_data=0xf; 	Address(0x64[7:4])
    SPIWrite 0040,04,0,7	//link0_comma_align_lock_reset_disable=0x1; 	Address(0x40[7:2])
    SPIWrite 0040,0c,0,7	//link1_comma_align_lock_reset_disable=0x1; 	Address(0x40[7:3])
    SPIWrite 00ac,04,0,7	//link0_emb_align_lock_reset_disable=0x1; 	Address(0xac[7:2])
    SPIWrite 00ac,0c,0,7	//link1_emb_align_lock_reset_disable=0x1; 	Address(0xac[7:3])
    SPIWrite 002c,01,0,7	//root_clk_tx1_div_m=0x1; 	Address(0x2c[7:0])
    SPIWrite 002d,00,0,7	//root_clk_tx1_div_n_m1=0x0; 	Address(0x2d[7:0])
    SPIWrite 002e,01,0,7	//root_clk_tx2_div_m=0x1; 	Address(0x2e[7:0])
    SPIWrite 002f,00,0,7	//root_clk_tx2_div_n_m1=0x0; 	Address(0x2f[7:0])
    SPIWrite 0030,01,0,7	//duc_clk_tx1_div_m=0x1; 	Address(0x30[7:0])
    SPIWrite 0031,00,0,7	//duc_clk_tx1_div_n_m1=0x0; 	Address(0x31[7:0])
    SPIWrite 0032,01,0,7	//duc_clk_tx2_div_m=0x1; 	Address(0x32[7:0])
    SPIWrite 0033,00,0,7	//duc_clk_tx2_div_n_m1=0x0; 	Address(0x33[7:0])
    SPIWrite 0034,01,0,7	//jesd_clk_tx1_div_m=0x1; 	Address(0x34[7:0])
    SPIWrite 0035,00,0,7	//jesd_clk_tx1_div_n_m1=0x0; 	Address(0x35[7:0])
    SPIWrite 0036,01,0,7	//jesd_clk_tx2_div_m=0x1; 	Address(0x36[7:0])
    SPIWrite 0037,00,0,7	//jesd_clk_tx2_div_n_m1=0x0; 	Address(0x37[7:0])
    SPIWrite 0022,45,0,7	//link0_jesd_mode=0x5; 	Address(0x22[7:0])
    SPIWrite 0023,45,0,7	//link1_jesd_mode=0x5; 	Address(0x23[7:0])
    SPIWrite 0022,85,0,7	//link0_jesd_sample_mode=0x2; 	Address(0x22[7:6])
    SPIWrite 0023,85,0,7	//link1_jesd_sample_mode=0x2; 	Address(0x23[7:6])
    SPIWrite 0038,1f,0,7	//tx_root_clk_div_dither_en=0x1; 	Address(0x38[7:0])
    SPIWrite 0038,1d,0,7	//duc_clk_io_div_dither_en=0x0; 	Address(0x38[7:1])
    SPIWrite 0038,19,0,7	//duc_clk_div_dither_en=0x0; 	Address(0x38[7:2])
    SPIWrite 0038,11,0,7	//jesd_clk_div_dither_en=0x0; 	Address(0x38[7:3])
    SPIWrite 0038,01,0,7	//jesd_clk_div2_div_dither_en=0x0; 	Address(0x38[7:4])
    SPIWrite 0026,00,0,7	//num_links=0x0; 	Address(0x26[7:2])
    SPIWrite 0042,7f,0,7	//comma_align_valid_thresh=0x7f; 	Address(0x42[7:0])
    SPIWrite 00ad,86,0,7	//emb_align_valid_thresh=0x6; 	Address(0xad[7:0])
    SPIWrite 0078,00,0,7	//link0_sync_request_ena=0x0; 	Address(0x78[7:0],0x79[7:0])
    SPIWrite 0079,00,0,7	//link1_sync_request_ena=0x0; 	Address(0x79[7:0],0x7a[7:0])
    SPIWrite 007a,00,0,7	//link0_error_ena=0x0; 	Address(0x7a[7:0],0x7b[7:0])
    SPIWrite 007b,00,0,7	//link1_error_ena=0x0; 	Address(0x7b[7:0],0x7c[7:0])
    SPIWrite 0103,00,0,7	//alarms_clear=0xe1e1e1e1000000bf; 	Address(0x100[7:0],0x101[7:0],0x102[7:0],0x103[7:0],0x104[7:0],0x104[7:0],0x105[7:0],0x106[7:0],0x107[7:0],0x108[7:0])
    SPIWrite 0102,00,0,7
    SPIWrite 0101,00,0,7
    SPIWrite 0100,bf,0,7
    SPIWrite 0107,e1,0,7
    SPIWrite 0106,e1,0,7
    SPIWrite 0105,e1,0,7
    SPIWrite 0104,e1,0,7
    SPIWrite 00fb,00,0,7	//alarms_mask=0xe1e1e1e1000000bf; 	Address(0xf8[7:0],0xf9[7:0],0xfa[7:0],0xfb[7:0],0xfc[7:0],0xfc[7:0],0xfd[7:0],0xfe[7:0],0xff[7:0],0x100[7:0])
    SPIWrite 00fa,00,0,7
    SPIWrite 00f9,00,0,7
    SPIWrite 00f8,bf,0,7
    SPIWrite 00ff,e1,0,7
    SPIWrite 00fe,e1,0,7
    SPIWrite 00fd,e1,0,7
    SPIWrite 00fc,e1,0,7
    SPIWrite 0113,00,0,7	//alarms_to_pap_clear=0xe1e1e1e1000000bf; 	Address(0x110[7:0],0x111[7:0],0x112[7:0],0x113[7:0],0x114[7:0],0x114[7:0],0x115[7:0],0x116[7:0],0x117[7:0],0x118[7:0])
    SPIWrite 0112,00,0,7
    SPIWrite 0111,00,0,7
    SPIWrite 0110,bf,0,7
    SPIWrite 0117,e1,0,7
    SPIWrite 0116,e1,0,7
    SPIWrite 0115,e1,0,7
    SPIWrite 0114,e1,0,7
    SPIWrite 010b,00,0,7	//alarms_to_pap_mask=0xe1e1e1e1000000bf; 	Address(0x108[7:0],0x109[7:0],0x10a[7:0],0x10b[7:0],0x10c[7:0],0x10c[7:0],0x10d[7:0],0x10e[7:0],0x10f[7:0],0x110[7:0])
    SPIWrite 010a,00,0,7
    SPIWrite 0109,00,0,7
    SPIWrite 0108,bf,0,7
    SPIWrite 010f,e1,0,7
    SPIWrite 010e,e1,0,7
    SPIWrite 010d,e1,0,7
    SPIWrite 010c,e1,0,7
    SPIWrite 0024,5c,0,7	//alarm_zeros_jesd_data_ena=0x0; 	Address(0x24[7:1])
    SPIWrite 003c,88,0,7	//serdes_fifo_offset_lane0=0x8; 	Address(0x3c[7:0])
    SPIWrite 003c,88,0,7	//serdes_fifo_offset_lane1=0x8; 	Address(0x3c[7:4])
    SPIWrite 003d,88,0,7	//serdes_fifo_offset_lane2=0x8; 	Address(0x3d[7:0])
    SPIWrite 003d,88,0,7	//serdes_fifo_offset_lane3=0x8; 	Address(0x3d[7:4])
    SPIWrite 0026,02,0,7	//jesd_std_sel=0x2; 	Address(0x26[7:0])
    SPIWrite 0047,01,0,7	//link0_scr=0x0; 	Address(0x47[7:7])
    SPIWrite 0055,01,0,7	//link1_scr=0x0; 	Address(0x55[7:7])
    SPIWrite 0064,ff,0,7	//lane_ena=0xf; 	Address(0x64[7:0])
    SPIWrite 0081,f1,0,7	//rbd_buf_overflow_err_cnt_thresh=0xf; 	Address(0x81[7:4])
    SPIWrite 0083,1f,0,7	//dec_8b10b_code_err_cnt_thresh=0xf; 	Address(0x83[7:0])
    SPIWrite 0083,ff,0,7	//dec_8b10b_disp_err_cnt_thresh=0xf; 	Address(0x83[7:4])
    SPIWrite 0081,ff,0,7	//link_config_err_cnt_thresh=0xf; 	Address(0x81[7:0])
    SPIWrite 0080,1f,0,7	//multiframe_align_err_cnt_thresh=0xf; 	Address(0x80[7:0])
    SPIWrite 0080,ff,0,7	//frame_align_err_cnt_thresh=0xf; 	Address(0x80[7:4])
    SPIWrite 00a8,02,0,7	//Property_88h_1_1=0x1; 	Address(0xa8[7:1])
    SPIWrite 0024,58,0,7	//zero_invalid_data=0x0; 	Address(0x24[7:2])
    SPIWrite 0024,50,0,7	//fifo_error_zeros_data_ena=0x0; 	Address(0x24[7:3])
    
    //END: Done Configuring DAC JESD RX
    
    
    //START: Configuring DAC JESD RX
    
    SPIWrite 0016,08,0,7	//dac_jesd=0x2; 	Address(0x16[7:2])
    SPIWrite 006c,00,0,7	//link0_k_m1=0x0; 	Address(0x6c[7:0],0x6d[7:0])
    SPIWrite 006d,00,0,7	//link1_k_m1=0x0; 	Address(0x6d[7:0],0x6e[7:0])
    SPIWrite 0057,00,0,7	//link1_ila_k_m1=0x0; 	Address(0x57[7:0],0x58[7:0])
    SPIWrite 0049,00,0,7	//link0_ila_k_m1=0x0; 	Address(0x49[7:0],0x4a[7:0])
    SPIWrite 0069,00,0,7	//link0_rbd_m1=0x31; 	Address(0x68[7:0],0x69[7:0],0x6a[7:0])
    SPIWrite 0068,31,0,7
    SPIWrite 006b,00,0,7	//link1_rbd_m1=0x31; 	Address(0x6a[7:0],0x6b[7:0],0x6c[7:0])
    SPIWrite 006a,31,0,7
    SPIWrite 0070,00,0,7	//link0_init_o_counter=0x0; 	Address(0x70[7:0],0x71[7:0])
    SPIWrite 0072,00,0,7	//link1_init_o_counter=0x0; 	Address(0x72[7:0],0x73[7:0])
    SPIWrite 0021,04,0,7	//sysref_mode=0x4; 	Address(0x21[7:0])
    SPIWrite 0024,5e,0,7	//gearbox_init_state_ovr=0x1; 	Address(0x24[7:6])
    SPIWrite 0025,ff,0,7	//gearbox_init_state_lane0_val=0x1; 	Address(0x25[7:0])
    SPIWrite 0025,ff,0,7	//gearbox_init_state_lane1_val=0x1; 	Address(0x25[7:1])
    SPIWrite 0025,ff,0,7	//gearbox_init_state_lane2_val=0x1; 	Address(0x25[7:2])
    SPIWrite 0025,ff,0,7	//gearbox_init_state_lane3_val=0x1; 	Address(0x25[7:3])
    SPIWrite 0025,fe,0,7	//gearbox_init_state_lane0_val=0x0; 	Address(0x25[7:0])
    SPIWrite 0025,fc,0,7	//gearbox_init_state_lane1_val=0x0; 	Address(0x25[7:1])
    SPIWrite 0025,f8,0,7	//gearbox_init_state_lane2_val=0x0; 	Address(0x25[7:2])
    SPIWrite 0025,f0,0,7	//gearbox_init_state_lane3_val=0x0; 	Address(0x25[7:3])
    SPIWrite 0020,03,0,7	//link0_init_state=0x1; 	Address(0x20[7:0])
    SPIWrite 0020,03,0,7	//link1_init_state=0x1; 	Address(0x20[7:1])
    SPIWrite 0064,ff,0,7	//jesd_clear_data=0xf; 	Address(0x64[7:4])
    SPIWrite 0040,04,0,7	//link0_comma_align_lock_reset_disable=0x1; 	Address(0x40[7:2])
    SPIWrite 0040,0c,0,7	//link1_comma_align_lock_reset_disable=0x1; 	Address(0x40[7:3])
    SPIWrite 00ac,04,0,7	//link0_emb_align_lock_reset_disable=0x1; 	Address(0xac[7:2])
    SPIWrite 00ac,0c,0,7	//link1_emb_align_lock_reset_disable=0x1; 	Address(0xac[7:3])
    SPIWrite 002c,01,0,7	//root_clk_tx1_div_m=0x1; 	Address(0x2c[7:0])
    SPIWrite 002d,00,0,7	//root_clk_tx1_div_n_m1=0x0; 	Address(0x2d[7:0])
    SPIWrite 002e,01,0,7	//root_clk_tx2_div_m=0x1; 	Address(0x2e[7:0])
    SPIWrite 002f,00,0,7	//root_clk_tx2_div_n_m1=0x0; 	Address(0x2f[7:0])
    SPIWrite 0030,01,0,7	//duc_clk_tx1_div_m=0x1; 	Address(0x30[7:0])
    SPIWrite 0031,00,0,7	//duc_clk_tx1_div_n_m1=0x0; 	Address(0x31[7:0])
    SPIWrite 0032,01,0,7	//duc_clk_tx2_div_m=0x1; 	Address(0x32[7:0])
    SPIWrite 0033,00,0,7	//duc_clk_tx2_div_n_m1=0x0; 	Address(0x33[7:0])
    SPIWrite 0034,01,0,7	//jesd_clk_tx1_div_m=0x1; 	Address(0x34[7:0])
    SPIWrite 0035,00,0,7	//jesd_clk_tx1_div_n_m1=0x0; 	Address(0x35[7:0])
    SPIWrite 0036,01,0,7	//jesd_clk_tx2_div_m=0x1; 	Address(0x36[7:0])
    SPIWrite 0037,00,0,7	//jesd_clk_tx2_div_n_m1=0x0; 	Address(0x37[7:0])
    SPIWrite 0022,45,0,7	//link0_jesd_mode=0x5; 	Address(0x22[7:0])
    SPIWrite 0023,45,0,7	//link1_jesd_mode=0x5; 	Address(0x23[7:0])
    SPIWrite 0022,85,0,7	//link0_jesd_sample_mode=0x2; 	Address(0x22[7:6])
    SPIWrite 0023,85,0,7	//link1_jesd_sample_mode=0x2; 	Address(0x23[7:6])
    SPIWrite 0038,1f,0,7	//tx_root_clk_div_dither_en=0x1; 	Address(0x38[7:0])
    SPIWrite 0038,1d,0,7	//duc_clk_io_div_dither_en=0x0; 	Address(0x38[7:1])
    SPIWrite 0038,19,0,7	//duc_clk_div_dither_en=0x0; 	Address(0x38[7:2])
    SPIWrite 0038,11,0,7	//jesd_clk_div_dither_en=0x0; 	Address(0x38[7:3])
    SPIWrite 0038,01,0,7	//jesd_clk_div2_div_dither_en=0x0; 	Address(0x38[7:4])
    SPIWrite 0026,00,0,7	//num_links=0x0; 	Address(0x26[7:2])
    SPIWrite 0042,7f,0,7	//comma_align_valid_thresh=0x7f; 	Address(0x42[7:0])
    SPIWrite 00ad,86,0,7	//emb_align_valid_thresh=0x6; 	Address(0xad[7:0])
    SPIWrite 0078,00,0,7	//link0_sync_request_ena=0x0; 	Address(0x78[7:0],0x79[7:0])
    SPIWrite 0079,00,0,7	//link1_sync_request_ena=0x0; 	Address(0x79[7:0],0x7a[7:0])
    SPIWrite 007a,00,0,7	//link0_error_ena=0x0; 	Address(0x7a[7:0],0x7b[7:0])
    SPIWrite 007b,00,0,7	//link1_error_ena=0x0; 	Address(0x7b[7:0],0x7c[7:0])
    SPIWrite 0103,00,0,7	//alarms_clear=0xe1e1e1e1000000bf; 	Address(0x100[7:0],0x101[7:0],0x102[7:0],0x103[7:0],0x104[7:0],0x104[7:0],0x105[7:0],0x106[7:0],0x107[7:0],0x108[7:0])
    SPIWrite 0102,00,0,7
    SPIWrite 0101,00,0,7
    SPIWrite 0100,bf,0,7
    SPIWrite 0107,e1,0,7
    SPIWrite 0106,e1,0,7
    SPIWrite 0105,e1,0,7
    SPIWrite 0104,e1,0,7
    SPIWrite 00fb,00,0,7	//alarms_mask=0xe1e1e1e1000000bf; 	Address(0xf8[7:0],0xf9[7:0],0xfa[7:0],0xfb[7:0],0xfc[7:0],0xfc[7:0],0xfd[7:0],0xfe[7:0],0xff[7:0],0x100[7:0])
    SPIWrite 00fa,00,0,7
    SPIWrite 00f9,00,0,7
    SPIWrite 00f8,bf,0,7
    SPIWrite 00ff,e1,0,7
    SPIWrite 00fe,e1,0,7
    SPIWrite 00fd,e1,0,7
    SPIWrite 00fc,e1,0,7
    SPIWrite 0113,00,0,7	//alarms_to_pap_clear=0xe1e1e1e1000000bf; 	Address(0x110[7:0],0x111[7:0],0x112[7:0],0x113[7:0],0x114[7:0],0x114[7:0],0x115[7:0],0x116[7:0],0x117[7:0],0x118[7:0])
    SPIWrite 0112,00,0,7
    SPIWrite 0111,00,0,7
    SPIWrite 0110,bf,0,7
    SPIWrite 0117,e1,0,7
    SPIWrite 0116,e1,0,7
    SPIWrite 0115,e1,0,7
    SPIWrite 0114,e1,0,7
    SPIWrite 010b,00,0,7	//alarms_to_pap_mask=0xe1e1e1e1000000bf; 	Address(0x108[7:0],0x109[7:0],0x10a[7:0],0x10b[7:0],0x10c[7:0],0x10c[7:0],0x10d[7:0],0x10e[7:0],0x10f[7:0],0x110[7:0])
    SPIWrite 010a,00,0,7
    SPIWrite 0109,00,0,7
    SPIWrite 0108,bf,0,7
    SPIWrite 010f,e1,0,7
    SPIWrite 010e,e1,0,7
    SPIWrite 010d,e1,0,7
    SPIWrite 010c,e1,0,7
    SPIWrite 0024,5c,0,7	//alarm_zeros_jesd_data_ena=0x0; 	Address(0x24[7:1])
    SPIWrite 003c,88,0,7	//serdes_fifo_offset_lane0=0x8; 	Address(0x3c[7:0])
    SPIWrite 003c,88,0,7	//serdes_fifo_offset_lane1=0x8; 	Address(0x3c[7:4])
    SPIWrite 003d,88,0,7	//serdes_fifo_offset_lane2=0x8; 	Address(0x3d[7:0])
    SPIWrite 003d,88,0,7	//serdes_fifo_offset_lane3=0x8; 	Address(0x3d[7:4])
    SPIWrite 0026,02,0,7	//jesd_std_sel=0x2; 	Address(0x26[7:0])
    SPIWrite 0047,01,0,7	//link0_scr=0x0; 	Address(0x47[7:7])
    SPIWrite 0055,01,0,7	//link1_scr=0x0; 	Address(0x55[7:7])
    SPIWrite 0064,f0,0,7	//lane_ena=0x0; 	Address(0x64[7:0])
    SPIWrite 0081,f1,0,7	//rbd_buf_overflow_err_cnt_thresh=0xf; 	Address(0x81[7:4])
    SPIWrite 0083,1f,0,7	//dec_8b10b_code_err_cnt_thresh=0xf; 	Address(0x83[7:0])
    SPIWrite 0083,ff,0,7	//dec_8b10b_disp_err_cnt_thresh=0xf; 	Address(0x83[7:4])
    SPIWrite 0081,ff,0,7	//link_config_err_cnt_thresh=0xf; 	Address(0x81[7:0])
    SPIWrite 0080,1f,0,7	//multiframe_align_err_cnt_thresh=0xf; 	Address(0x80[7:0])
    SPIWrite 0080,ff,0,7	//frame_align_err_cnt_thresh=0xf; 	Address(0x80[7:4])
    SPIWrite 00a8,02,0,7	//Property_88h_1_1=0x1; 	Address(0xa8[7:1])
    SPIWrite 0024,58,0,7	//zero_invalid_data=0x0; 	Address(0x24[7:2])
    SPIWrite 0024,50,0,7	//fifo_error_zeros_data_ena=0x0; 	Address(0x24[7:3])
    
    //END: Done Configuring DAC JESD RX
    
    SPIWrite 0016,00,0,7	//dac_jesd=0x0; 	Address(0x16[7:2])
    
    //STEP: jesdConfig/step3 
    SPIWrite 0016,10,0,7	//jesd_subchip=0x1; 	Address(0x16[7:4])
    SPIWrite 007c,c1,0,7	//lp_rx_on_a_sel_2r1f_ab_mask=0x1; 	Address(0x7c[7:0])
    SPIWrite 007c,21,0,7	//lp_rx_on_b_sel_2r1f_ab_mask=0x2; 	Address(0x7c[7:4])
    SPIWrite 007d,04,0,7	//lp_rx_on_c_sel_2r1f_ab_mask=0x4; 	Address(0x7d[7:0])
    SPIWrite 007d,84,0,7	//lp_rx_on_d_sel_2r1f_ab_mask=0x8; 	Address(0x7d[7:4])
    SPIWrite 007e,09,0,7	//lp_fb_on_a_sel_2r1f_ab_mask=0x1; 	Address(0x7e[7:0])
    SPIWrite 007e,09,0,7	//lp_fb_on_c_sel_2r1f_ab_mask=0x2; 	Address(0x7e[7:2])
    SPIWrite 0016,00,0,7	//jesd_subchip=0x0; 	Address(0x16[7:4])
    SPIWrite 0016,01,0,7	//adc_jesd=0x1; 	Address(0x16[7:0])
    SPIWrite 0120,00,0,7	//ctrl_rx1_msf_sig_invalid=0x0; 	Address(0x120[7:0])
    SPIWrite 0120,0c,0,7	//ctrl_rx2_msf_sig_invalid=0x3; 	Address(0x120[7:2])
    SPIWrite 0120,3c,0,7	//ctrl_rx3_rx4_msf_sig_invalid=0x3; 	Address(0x120[7:4])
    SPIWrite 0121,03,0,7	//ctrl_fb1_msf_sig_invalid=0x3; 	Address(0x121[7:0])
    SPIWrite 0121,0f,0,7	//ctrl_fb2_msf_sig_invalid=0x3; 	Address(0x121[7:2])
    SPIWrite 0016,00,0,7	//adc_jesd=0x0; 	Address(0x16[7:0])
    SPIWrite 0016,10,0,7	//jesd_subchip=0x1; 	Address(0x16[7:4])
    SPIWrite 0029,03,0,7	//dual_2t2r1f_mode_ab=0x1; 	Address(0x29[7:0])
    SPIWrite 0029,03,0,7	//dual_2t2r1f_mode_cd=0x1; 	Address(0x29[7:1])
    SPIWrite 0081,01,0,7	//lp_rx_on_c_sel_2r1f_cd_mask=0x1; 	Address(0x81[7:0])
    SPIWrite 0081,21,0,7	//lp_rx_on_d_sel_2r1f_cd_mask=0x2; 	Address(0x81[7:4])
    SPIWrite 0082,04,0,7	//lp_fb_on_c_sel_2r1f_cd_mask=0x1; 	Address(0x82[7:2])
    SPIWrite 0082,06,0,7	//lp_fb_on_a_sel_2r1f_cd_mask=0x2; 	Address(0x82[7:0])
    SPIWrite 0016,00,0,7	//jesd_subchip=0x0; 	Address(0x16[7:4])
    SPIWrite 0016,02,0,7	//adc_jesd=0x2; 	Address(0x16[7:0])
    SPIWrite 0120,00,0,7	//ctrl_rx1_msf_sig_invalid=0x0; 	Address(0x120[7:0])
    SPIWrite 0120,0c,0,7	//ctrl_rx2_msf_sig_invalid=0x3; 	Address(0x120[7:2])
    SPIWrite 0120,3c,0,7	//ctrl_rx3_rx4_msf_sig_invalid=0x3; 	Address(0x120[7:4])
    SPIWrite 0121,03,0,7	//ctrl_fb1_msf_sig_invalid=0x3; 	Address(0x121[7:0])
    SPIWrite 0121,0f,0,7	//ctrl_fb2_msf_sig_invalid=0x3; 	Address(0x121[7:2])
    SPIWrite 0016,00,0,7	//adc_jesd=0x0; 	Address(0x16[7:0])
    SPIWrite 0016,10,0,7	//jesd_subchip=0x1; 	Address(0x16[7:4])
    SPIWrite 0029,03,0,7	//dual_2t2r1f_mode_ab=0x1; 	Address(0x29[7:0])
    SPIWrite 0029,03,0,7	//dual_2t2r1f_mode_cd=0x1; 	Address(0x29[7:1])
    SPIWrite 0016,00,0,7	//jesd_subchip=0x0; 	Address(0x16[7:4])
    
    //STEP: agcConfig/step0 
    SPIWrite 0013,40,0,7	//dsa_page1=0x1; 	Address(0x13[7:6])
    SPIWrite 00d0,03,0,7	//gain_ctrl=0x3; 	Address(0xd0[7:0])
    SPIWrite 0013,80,0,7	//dsa_page1=0x2; 	Address(0x13[7:6])
    SPIWrite 00d0,03,0,7	//gain_ctrl=0x3; 	Address(0xd0[7:0])
    SPIWrite 0013,00,0,7	//dsa_page1=0x0; 	Address(0x13[7:6])
    SPIWrite 0012,01,0,7	//rxdig=0x1; 	Address(0x12[7:0])
    SPIWrite 0773,01,0,7	//Property_750h_24_24=0x1; 	Address(0x773[7:0])
    SPIWrite 0773,01,0,7	//Property_750h_24_24=0x1; 	Address(0x773[7:0])
    SPIWrite 0012,08,0,7	//rxdig=0x8; 	Address(0x12[7:0])
    SPIWrite 0773,01,0,7	//Property_750h_24_24=0x1; 	Address(0x773[7:0])
    SPIWrite 0773,01,0,7	//Property_750h_24_24=0x1; 	Address(0x773[7:0])
    SPIWrite 0012,00,0,7	//rxdig=0x0; 	Address(0x12[7:0])
    
    //STEP: miscConfig/step0 
    
    //START: Configuring Interrupt Pins
    
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0101,02,0,7	//alarm_mask_lsb_for_alarm0=0x23f; 	Address(0x100[7:0],0x101[7:0],0x102[7:0])
    SPIWrite 0100,3f,0,7
    SPIWrite 0103,00,0,7	//alarm_mask_msb_for_alarm0=0x0; 	Address(0x102[7:0],0x103[7:0],0x104[7:0])
    SPIWrite 0102,00,0,7
    SPIWrite 0105,02,0,7	//alarm_mask_lsb_for_alarm1=0x23f; 	Address(0x104[7:0],0x105[7:0],0x106[7:0])
    SPIWrite 0104,3f,0,7
    SPIWrite 0107,00,0,7	//alarm_mask_msb_for_alarm1=0x0; 	Address(0x106[7:0],0x107[7:0],0x108[7:0])
    SPIWrite 0106,00,0,7
    
    //END: Done configuring Interrupt Pins
    
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    
    //STEP: miscConfig/step1 
    SPIWrite 0013,40,0,7	//dsa_page1=0x1; 	Address(0x13[7:6])
    SPIWrite 0124,00,0,7	//spi_agc_dsa_A=0x0; 	Address(0x124[7:0])
    SPIWrite 0174,00,0,7	//spi_agc_dsa_B=0x0; 	Address(0x174[7:0])
    SPIWrite 0013,80,0,7	//dsa_page1=0x2; 	Address(0x13[7:6])
    SPIWrite 0124,00,0,7	//spi_agc_dsa_A=0x0; 	Address(0x124[7:0])
    SPIWrite 0174,00,0,7	//spi_agc_dsa_B=0x0; 	Address(0x174[7:0])
    SPIWrite 0013,00,0,7	//dsa_page1=0x0; 	Address(0x13[7:6])
    SPIWrite 0013,10,0,7	//dsa_page0=0x1; 	Address(0x13[7:4])
    SPIWrite 00c8,00,0,7	//txa_dsa_index=0x0; 	Address(0xc8[7:0])
    SPIWrite 00cc,00,0,7	//txb_dsa_index=0x0; 	Address(0xcc[7:0])
    SPIWrite 0013,20,0,7	//dsa_page0=0x2; 	Address(0x13[7:4])
    SPIWrite 00c8,00,0,7	//txa_dsa_index=0x0; 	Address(0xc8[7:0])
    SPIWrite 00cc,00,0,7	//txb_dsa_index=0x0; 	Address(0xcc[7:0])
    SPIWrite 0013,10,0,7	//dsa_page0=0x1; 	Address(0x13[7:4])
    SPIWrite 006c,00,0,7	//spi_agc_dsa_fb=0x0; 	Address(0x6c[7:0])
    SPIWrite 0013,20,0,7	//dsa_page0=0x2; 	Address(0x13[7:4])
    SPIWrite 006c,00,0,7	//spi_agc_dsa_fb=0x0; 	Address(0x6c[7:0])
    SPIWrite 0013,00,0,7	//dsa_page0=0x0; 	Address(0x13[7:4])
    
    //STEP: gpioConfig/step0 
    SPIWrite 0015,10,0,7	//io_wrap=0x1; 	Address(0x15[7:4])
    SPIWrite 04f4,05,0,7	//preferred_input_sel_gpio_61=0x1; 	Address(0x4f4[7:2])
    SPIWrite 04f4,05,0,7	//buf_dir_ctrl_gpio_61=0x1; 	Address(0x4f4[7:0])
    SPIWrite 08cd,00,0,7	//ovr_sel_intpi_tdd_en_fbcd=0x0; 	Address(0x8cd[7:1])
    SPIWrite 0420,05,0,7	//preferred_input_sel_gpio_8=0x1; 	Address(0x420[7:2])
    SPIWrite 0420,05,0,7	//buf_dir_ctrl_gpio_8=0x1; 	Address(0x420[7:0])
    SPIWrite 08c9,00,0,7	//ovr_sel_intpi_tdd_en_fbab=0x0; 	Address(0x8c9[7:1])
    SPIWrite 0514,21,0,7	//preferred_output_sel_gpio_69=0x1; 	Address(0x514[7:5])
    SPIWrite 0514,22,0,7	//buf_dir_ctrl_gpio_69=0x2; 	Address(0x514[7:0])
    SPIWrite 10f5,00,0,7	//ovr_sel_intpo_dac_sync_n_cd_1=0x0; 	Address(0x10f5[7:1])
    SPIWrite 040c,01,0,7	//preferred_input_sel_gpio_3=0x0; 	Address(0x40c[7:2])
    SPIWrite 040c,01,0,7	//buf_dir_ctrl_gpio_3=0x1; 	Address(0x40c[7:0])
    SPIWrite 08b9,00,0,7	//ovr_sel_intpi_tdd_en_txa=0x0; 	Address(0x8b9[7:1])
    SPIWrite 08ba,04,0,7	//crossbar_sel_intpi_tdd_en_txa=0x4; 	Address(0x8ba[7:0],0x8bb[7:0])
    SPIWrite 040c,01,0,7	//preferred_input_sel_gpio_3=0x0; 	Address(0x40c[7:2])
    SPIWrite 040c,01,0,7	//buf_dir_ctrl_gpio_3=0x1; 	Address(0x40c[7:0])
    SPIWrite 08bd,00,0,7	//ovr_sel_intpi_tdd_en_txb=0x0; 	Address(0x8bd[7:1])
    SPIWrite 08be,04,0,7	//crossbar_sel_intpi_tdd_en_txb=0x4; 	Address(0x8be[7:0],0x8bf[7:0])
    SPIWrite 0510,01,0,7	//preferred_input_sel_gpio_68=0x0; 	Address(0x510[7:2])
    SPIWrite 0510,01,0,7	//buf_dir_ctrl_gpio_68=0x1; 	Address(0x510[7:0])
    SPIWrite 08ad,00,0,7	//ovr_sel_intpi_adc_sync_n_cd_0=0x0; 	Address(0x8ad[7:1])
    SPIWrite 08ae,3e,0,7	//crossbar_sel_intpi_adc_sync_n_cd_0=0x3e; 	Address(0x8ae[7:0],0x8af[7:0])
    SPIWrite 050c,21,0,7	//preferred_output_sel_gpio_67=0x1; 	Address(0x50c[7:5])
    SPIWrite 050c,22,0,7	//buf_dir_ctrl_gpio_67=0x2; 	Address(0x50c[7:0])
    SPIWrite 10f1,00,0,7	//ovr_sel_intpo_dac_sync_n_cd_0=0x0; 	Address(0x10f1[7:1])
    SPIWrite 0468,01,0,7	//preferred_input_sel_gpio_26=0x0; 	Address(0x468[7:2])
    SPIWrite 0468,01,0,7	//buf_dir_ctrl_gpio_26=0x1; 	Address(0x468[7:0])
    SPIWrite 09dd,00,0,7	//ovr_sel_intpi_tdd_en_rxc=0x0; 	Address(0x9dd[7:1])
    SPIWrite 09de,18,0,7	//crossbar_sel_intpi_tdd_en_rxc=0x18; 	Address(0x9de[7:0],0x9df[7:0])
    SPIWrite 0468,01,0,7	//preferred_input_sel_gpio_26=0x0; 	Address(0x468[7:2])
    SPIWrite 0468,01,0,7	//buf_dir_ctrl_gpio_26=0x1; 	Address(0x468[7:0])
    SPIWrite 09e1,00,0,7	//ovr_sel_intpi_tdd_en_rxd=0x0; 	Address(0x9e1[7:1])
    SPIWrite 09e2,18,0,7	//crossbar_sel_intpi_tdd_en_rxd=0x18; 	Address(0x9e2[7:0],0x9e3[7:0])
    SPIWrite 0534,05,0,7	//preferred_input_sel_gpio_77=0x1; 	Address(0x534[7:2])
    SPIWrite 0534,05,0,7	//buf_dir_ctrl_gpio_77=0x1; 	Address(0x534[7:0])
    SPIWrite 08b1,00,0,7	//ovr_sel_intpi_adc_sync_n_cd_1=0x0; 	Address(0x8b1[7:1])
    SPIWrite 04c0,05,0,7	//preferred_input_sel_gpio_48=0x1; 	Address(0x4c0[7:2])
    SPIWrite 04c0,05,0,7	//buf_dir_ctrl_gpio_48=0x1; 	Address(0x4c0[7:0])
    SPIWrite 08a1,00,0,7	//ovr_sel_intpi_adc_sync_n_ab_0=0x0; 	Address(0x8a1[7:1])
    SPIWrite 04bc,21,0,7	//preferred_output_sel_gpio_47=0x1; 	Address(0x4bc[7:5])
    SPIWrite 04bc,22,0,7	//buf_dir_ctrl_gpio_47=0x2; 	Address(0x4bc[7:0])
    SPIWrite 10c5,00,0,7	//ovr_sel_intpo_dac_sync_n_ab_0=0x0; 	Address(0x10c5[7:1])
    SPIWrite 04e4,05,0,7	//preferred_input_sel_gpio_57=0x1; 	Address(0x4e4[7:2])
    SPIWrite 04e4,05,0,7	//buf_dir_ctrl_gpio_57=0x1; 	Address(0x4e4[7:0])
    SPIWrite 08a5,00,0,7	//ovr_sel_intpi_adc_sync_n_ab_1=0x0; 	Address(0x8a5[7:1])
    SPIWrite 04c4,21,0,7	//preferred_output_sel_gpio_49=0x1; 	Address(0x4c4[7:5])
    SPIWrite 04c4,22,0,7	//buf_dir_ctrl_gpio_49=0x2; 	Address(0x4c4[7:0])
    SPIWrite 10c9,00,0,7	//ovr_sel_intpo_dac_sync_n_ab_1=0x0; 	Address(0x10c9[7:1])
    SPIWrite 0454,05,0,7	//preferred_input_sel_gpio_21=0x1; 	Address(0x454[7:2])
    SPIWrite 0454,05,0,7	//buf_dir_ctrl_gpio_21=0x1; 	Address(0x454[7:0])
    SPIWrite 0905,00,0,7	//ovr_sel_intpi_global_pdn=0x0; 	Address(0x905[7:1])
    SPIWrite 0538,01,0,7	//preferred_input_sel_gpio_78=0x0; 	Address(0x538[7:2])
    SPIWrite 0538,01,0,7	//buf_dir_ctrl_gpio_78=0x1; 	Address(0x538[7:0])
    SPIWrite 08c1,00,0,7	//ovr_sel_intpi_tdd_en_txc=0x0; 	Address(0x8c1[7:1])
    SPIWrite 08c2,48,0,7	//crossbar_sel_intpi_tdd_en_txc=0x48; 	Address(0x8c2[7:0],0x8c3[7:0])
    SPIWrite 0538,01,0,7	//preferred_input_sel_gpio_78=0x0; 	Address(0x538[7:2])
    SPIWrite 0538,01,0,7	//buf_dir_ctrl_gpio_78=0x1; 	Address(0x538[7:0])
    SPIWrite 08c5,00,0,7	//ovr_sel_intpi_tdd_en_txd=0x0; 	Address(0x8c5[7:1])
    SPIWrite 08c6,48,0,7	//crossbar_sel_intpi_tdd_en_txd=0x48; 	Address(0x8c6[7:0],0x8c7[7:0])
    SPIWrite 04cc,01,0,7	//preferred_input_sel_gpio_51=0x0; 	Address(0x4cc[7:2])
    SPIWrite 04cc,01,0,7	//buf_dir_ctrl_gpio_51=0x1; 	Address(0x4cc[7:0])
    SPIWrite 09d5,00,0,7	//ovr_sel_intpi_tdd_en_rxa=0x0; 	Address(0x9d5[7:1])
    SPIWrite 09d6,2d,0,7	//crossbar_sel_intpi_tdd_en_rxa=0x2d; 	Address(0x9d6[7:0],0x9d7[7:0])
    SPIWrite 04cc,01,0,7	//preferred_input_sel_gpio_51=0x0; 	Address(0x4cc[7:2])
    SPIWrite 04cc,01,0,7	//buf_dir_ctrl_gpio_51=0x1; 	Address(0x4cc[7:0])
    SPIWrite 09d9,00,0,7	//ovr_sel_intpi_tdd_en_rxb=0x0; 	Address(0x9d9[7:1])
    SPIWrite 09da,2d,0,7	//crossbar_sel_intpi_tdd_en_rxb=0x2d; 	Address(0x9da[7:0],0x9db[7:0])
    SPIWrite 02bc,00,0,7	//pull_ctrl_gpio_47=0x0; 	Address(0x2bc[7:0])
    SPIWrite 02c4,00,0,7	//pull_ctrl_gpio_49=0x0; 	Address(0x2c4[7:0])
    SPIWrite 030c,00,0,7	//pull_ctrl_gpio_67=0x0; 	Address(0x30c[7:0])
    SPIWrite 0314,00,0,7	//pull_ctrl_gpio_69=0x0; 	Address(0x314[7:0])
    SPIWrite 02c0,00,0,7	//pull_ctrl_gpio_48=0x0; 	Address(0x2c0[7:0])
    SPIWrite 02e4,00,0,7	//pull_ctrl_gpio_57=0x0; 	Address(0x2e4[7:0])
    SPIWrite 0334,00,0,7	//pull_ctrl_gpio_77=0x0; 	Address(0x334[7:0])
    SPIWrite 0310,00,0,7	//pull_ctrl_gpio_68=0x0; 	Address(0x310[7:0])
    SPIWrite 0015,00,0,7	//io_wrap=0x0; 	Address(0x15[7:4])
    
    //STEP: sysrefJesdLinkup/step0 
    SPIWrite 0016,03,0,7	//adc_jesd=0x3; 	Address(0x16[7:0])
    SPIWrite 006d,06,0,7	//link0_init_state=0x0; 	Address(0x6d[7:0])
    SPIWrite 006d,02,0,7	//link2_init_state=0x0; 	Address(0x6d[7:2])
    SPIWrite 006d,00,0,7	//link1_init_state=0x0; 	Address(0x6d[7:1])
    SPIWrite 006e,0e,0,7	//lane0_serdes_fifo_init_state=0x0; 	Address(0x6e[7:0])
    SPIWrite 006e,0c,0,7	//lane1_serdes_fifo_init_state=0x0; 	Address(0x6e[7:1])
    SPIWrite 006e,08,0,7	//lane2_serdes_fifo_init_state=0x0; 	Address(0x6e[7:2])
    SPIWrite 006e,00,0,7	//lane3_serdes_fifo_init_state=0x0; 	Address(0x6e[7:3])
    SPIWrite 0016,00,0,7	//adc_jesd=0x0; 	Address(0x16[7:0])
    SPIWrite 0016,0c,0,7	//dac_jesd=0x3; 	Address(0x16[7:2])
    SPIWrite 0020,02,0,7	//link0_init_state=0x0; 	Address(0x20[7:0])
    SPIWrite 0020,00,0,7	//link1_init_state=0x0; 	Address(0x20[7:1])
    SPIWrite 0016,00,0,7	//dac_jesd=0x0; 	Address(0x16[7:2])
    
    //STEP: sysrefJesdLinkup/step1 
    
    //START: Clearing Sysref Flags
    
    SPIWrite 0016,03,0,7	//adc_jesd=0x3; 	Address(0x16[7:0])
    SPIWrite 0124,08,0,7	//clear_jesd_clk_rx1_p0=0x1; 	Address(0x124[7:3])
    SPIWrite 0128,08,0,7	//clear_jesd_sysref_rx1_p0=0x1; 	Address(0x128[7:3])
    SPIWrite 0124,00,0,7	//clear_jesd_clk_rx1_p0=0x0; 	Address(0x124[7:3])
    SPIWrite 0128,00,0,7	//clear_jesd_sysref_rx1_p0=0x0; 	Address(0x128[7:3])
    SPIWrite 0016,00,0,7	//adc_jesd=0x0; 	Address(0x16[7:0])
    SPIWrite 0016,04,0,7	//dac_jesd=0x1; 	Address(0x16[7:2])
    SPIWrite 00eb,f0,0,7	//clear_jesd_sysref_flag=0xf; 	Address(0xeb[7:4])
    SPIWrite 00eb,ff,0,7	//clear_jesd_clk_flag=0xf; 	Address(0xeb[7:0])
    SPIWrite 00eb,0f,0,7	//clear_jesd_sysref_flag=0x0; 	Address(0xeb[7:4])
    SPIWrite 00eb,00,0,7	//clear_jesd_clk_flag=0x0; 	Address(0xeb[7:0])
    SPIWrite 0016,00,0,7	//dac_jesd=0x0; 	Address(0x16[7:2])
    SPIWrite 0015,02,0,7	//ana_4t4r=0x1; 	Address(0x15[7:1])
    SPIWrite 00dc,10,0,7	//Property_bch_4_4=0x1; 	Address(0xdc[7:4])
    SPIWrite 00df,10,0,7	//Property_bch_28_28=0x1; 	Address(0xdf[7:4])
    SPIWrite 0100,10,0,7	//Property_e0h_4_4=0x1; 	Address(0x100[7:4])
    SPIWrite 00c4,10,0,7	//Property_a4h_4_4=0x1; 	Address(0xc4[7:4])
    SPIWrite 00c7,10,0,7	//Property_a4h_28_28=0x1; 	Address(0xc7[7:4])
    SPIWrite 00cc,10,0,7	//Property_ach_4_4=0x1; 	Address(0xcc[7:4])
    SPIWrite 00cf,10,0,7	//Property_ach_28_28=0x1; 	Address(0xcf[7:4])
    SPIWrite 00d8,10,0,7	//Property_b8h_4_4=0x1; 	Address(0xd8[7:4])
    SPIWrite 00d4,10,0,7	//Property_b4h_4_4=0x1; 	Address(0xd4[7:4])
    SPIWrite 00dc,00,0,7	//Property_bch_4_4=0x0; 	Address(0xdc[7:4])
    SPIWrite 00df,00,0,7	//Property_bch_28_28=0x0; 	Address(0xdf[7:4])
    SPIWrite 0100,00,0,7	//Property_e0h_4_4=0x0; 	Address(0x100[7:4])
    SPIWrite 00c4,00,0,7	//Property_a4h_4_4=0x0; 	Address(0xc4[7:4])
    SPIWrite 00c7,00,0,7	//Property_a4h_28_28=0x0; 	Address(0xc7[7:4])
    SPIWrite 00cc,00,0,7	//Property_ach_4_4=0x0; 	Address(0xcc[7:4])
    SPIWrite 00cf,00,0,7	//Property_ach_28_28=0x0; 	Address(0xcf[7:4])
    SPIWrite 00d8,00,0,7	//Property_b8h_4_4=0x0; 	Address(0xd8[7:4])
    SPIWrite 00d4,00,0,7	//Property_b4h_4_4=0x0; 	Address(0xd4[7:4])
    
    //END: Done clearing Sysref Flags
    
    SPIWrite 0015,00,0,7	//ana_4t4r=0x0; 	Address(0x15[7:1])
    
    //STEP: sysrefJesdLinkup/step2 
    
    //START: Sending Sysref to device
    
    
    //External-Action: Ensure Sysref is running before this point.
    
    
    //START: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0170,01,0,7	//pll_reg_spi_req_a=0x1; 	Address(0x170[7:0])
    SPIWrite 0540,00,0,7	//Property_520h_0_0=0x0; 	Address(0x540[7:0])
    
    SPIPoll 0171,0,0,01
    SPIRead 0171,0,0
    
    //Read	pll_reg_spi_a_ack=0x0(Meaning: );; 	Address(0x171[7:0])
    
    
    //END: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0015,80,0,7	//timing_controller=0x1; 	Address(0x15[7:7])
    SPIWrite 085b,00,0,7	//Property_838h_31_0=0x0; 	Address(0x858[7:0],0x859[7:0],0x85a[7:0],0x85b[7:0],0x85c[7:0])
    SPIWrite 085a,00,0,7
    SPIWrite 0859,00,0,7
    SPIWrite 0858,00,0,7
    SPIWrite 085b,00,0,7	//Property_838h_31_0=0x101; 	Address(0x858[7:0],0x859[7:0],0x85a[7:0],0x85b[7:0],0x85c[7:0])
    SPIWrite 085a,00,0,7
    SPIWrite 0859,01,0,7
    SPIWrite 0858,01,0,7
    SPIWrite 085b,00,0,7	//Property_838h_31_0=0x0; 	Address(0x858[7:0],0x859[7:0],0x85a[7:0],0x85b[7:0],0x85c[7:0])
    SPIWrite 085a,00,0,7
    SPIWrite 0859,00,0,7
    SPIWrite 0858,00,0,7
    SPIWrite 0015,00,0,7	//timing_controller=0x0; 	Address(0x15[7:7])
    SPIWrite 0015,01,0,7	//pll=0x1; 	Address(0x15[7:0])
    SPIWrite 006a,00,0,7	//Property_48h_17_17=0x0; 	Address(0x6a[7:1])
    SPIWrite 006e,00,0,7	//LCMGEN_USE_SPI_SYSREF=0x0; 	Address(0x6e[7:0])
    SPIWrite 006a,00,0,7	//Property_48h_17_17=0x0; 	Address(0x6a[7:1])
    SPIWrite 006a,02,0,7	//Property_48h_17_17=0x1; 	Address(0x6a[7:1])
    SPIWrite 0058,06,0,7	//Property_38h_1_1=0x1; 	Address(0x58[7:1])
    
    WAIT 0.001
    SPIWrite 0058,04,0,7	//Property_38h_1_1=0x0; 	Address(0x58[7:1])
    
    //START: Requesting/releasing SPI Access to PLL Pages
    
    SPIWrite 0015,00,0,7	//pll=0x0; 	Address(0x15[7:0])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0170,00,0,7	//pll_reg_spi_req_a=0x0; 	Address(0x170[7:0])
    SPIWrite 0540,00,0,7	//Property_520h_0_0=0x0; 	Address(0x540[7:0])
    
    //END: Requesting/releasing SPI Access to PLL Pages
    
    
    //END: Sending Sysref to device
    
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    
    //STEP: sysrefJesdLinkup/step3 
    
    //START: Checking Sysref Flags
    
    SPIWrite 0016,01,0,7	//adc_jesd=0x1; 	Address(0x16[7:0])
    SPIReadCheck 012c,3,3,08
    
    //Read	monitor_jesd_clk_rx1_p0=0x0; 	Address(0x12c[7:3])
    
    SPIReadCheck 0130,3,3,08
    
    //Read	monitor_jesd_sysref_rx1_p0=0x0; 	Address(0x130[7:3])
    
    
    //END: Done checking Sysref Flags
    
    SPIWrite 0016,00,0,7	//adc_jesd=0x0; 	Address(0x16[7:0])
    
    //STEP: sysrefJesdLinkup/step4 
    SPIWrite 0016,03,0,7	//adc_jesd=0x3; 	Address(0x16[7:0])
    SPIWrite 0024,00,0,7	//jesd_clear_data=0x0; 	Address(0x24[7:0])
    SPIWrite 00f0,0f,0,7	//alarms_serdes_fifo_errors_clear=0xf; 	Address(0xf0[7:0])
    SPIWrite 00f0,00,0,7	//alarms_serdes_fifo_errors_clear=0x0; 	Address(0xf0[7:0])
    SPIWrite 0016,00,0,7	//adc_jesd=0x0; 	Address(0x16[7:0])
    SPIWrite 0016,04,0,7	//dac_jesd=0x1; 	Address(0x16[7:2])
    SPIWrite 0064,0f,0,7	//jesd_clear_data=0x0; 	Address(0x64[7:4])
    SPIWrite 0128,01,0,7	//clear_all_alarms=0x1; 	Address(0x128[7:0])
    SPIWrite 0128,00,0,7	//clear_all_alarms=0x0; 	Address(0x128[7:0])
    SPIWrite 0128,04,0,7	//clear_all_alarms_to_pap=0x1; 	Address(0x128[7:2])
    SPIWrite 0128,00,0,7	//clear_all_alarms_to_pap=0x0; 	Address(0x128[7:2])
    SPIWrite 0016,08,0,7	//dac_jesd=0x2; 	Address(0x16[7:2])
    SPIWrite 0064,00,0,7	//jesd_clear_data=0x0; 	Address(0x64[7:4])
    SPIWrite 0128,01,0,7	//clear_all_alarms=0x1; 	Address(0x128[7:0])
    SPIWrite 0128,00,0,7	//clear_all_alarms=0x0; 	Address(0x128[7:0])
    SPIWrite 0128,04,0,7	//clear_all_alarms_to_pap=0x1; 	Address(0x128[7:2])
    SPIWrite 0128,00,0,7	//clear_all_alarms_to_pap=0x0; 	Address(0x128[7:2])
    SPIWrite 0016,00,0,7	//dac_jesd=0x0; 	Address(0x16[7:2])
    
    //STEP: postLinkUp/step0 
    
    //START: Writing Post Link up SERDES writes
    
    SPIWrite 0016,60,0,7	//serdes_jesd=0x3; 	Address(0x16[7:5])
    SPIWrite 0016,20,0,7	//serdes_jesd=0x1; 	Address(0x16[7:5])
    SPIWrite 0016,60,0,7	//serdes_jesd=0x3; 	Address(0x16[7:5])
    SPIWrite 41fb,02,0,7
    SPIWrite 41fa,6e,0,7
    SPIWrite 43fb,02,0,7
    SPIWrite 43fa,6e,0,7
    SPIWrite 45fb,02,0,7
    SPIWrite 45fa,6e,0,7
    SPIWrite 47fb,02,0,7
    SPIWrite 47fa,6e,0,7
    
    //END: Done writing Post Link up SERDES writes
    
    SPIWrite 0016,00,0,7	//serdes_jesd=0x0; 	Address(0x16[7:5])
    SPIWrite 0013,01,0,7	//txdh=0x1; 	Address(0x13[7:0])
    SPIWrite 015a,25,0,7	//Property_138h_17_17=0x0; 	Address(0x15a[7:1])
    SPIWrite 0013,00,0,7	//txdh=0x0; 	Address(0x13[7:0])
    
    //STEP: postLinkUp/step1 
    
    //START: Setting TDD Pin Override values.
    
    SPIWrite 0015,80,0,7	//timing_controller=0x1; 	Address(0x15[7:7])
    SPIWrite 00ed,00,0,7	//Property_cch_11_8=0x0; 	Address(0xed[7:0])
    SPIWrite 00f5,00,0,7	//Property_d4h_9_8=0x0; 	Address(0xf5[7:0])
    SPIWrite 00e5,00,0,7	//Property_c4h_11_8=0x0; 	Address(0xe5[7:0])
    SPIWrite 00ed,00,0,7	//Property_cch_11_8=0x0; 	Address(0xed[7:0])
    SPIWrite 00f5,00,0,7	//Property_d4h_9_8=0x0; 	Address(0xf5[7:0])
    SPIWrite 00e5,0f,0,7	//Property_c4h_11_8=0xf; 	Address(0xe5[7:0])
    
    //END: Setting TDD Pin Override values.
    
    SPIWrite 0015,00,0,7	//timing_controller=0x0; 	Address(0x15[7:7])
    SPIWrite 0019,20,0,7	//txdig=0x2; 	Address(0x19[7:4])
    SPIWrite 0a25,20,0,7	//cfg_tx_sig_invalid_spare1_sel=0x1; 	Address(0xa25[7:5])
    SPIWrite 0019,80,0,7	//txdig=0x8; 	Address(0x19[7:4])
    SPIWrite 0a25,20,0,7	//cfg_tx_sig_invalid_spare1_sel=0x1; 	Address(0xa25[7:5])
    SPIWrite 0019,00,0,7	//txdig=0x0; 	Address(0x19[7:4])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x101; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,01,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 00a7,00,0,7	//MACRO_OPERAND_REG1=0x0; 	Address(0xa4[7:0],0xa5[7:0],0xa6[7:0],0xa7[7:0],0xa8[7:0])
    SPIWrite 00a6,00,0,7
    SPIWrite 00a5,00,0,7
    SPIWrite 00a4,00,0,7
    SPIWrite 0193,52,0,7	//MACRO_OPCODE=0x52; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x301; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,03,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,53,0,7	//MACRO_OPCODE=0x53; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0019,f0,0,7	//txdig=0xf; 	Address(0x19[7:4])
    SPIWrite 0320,00,0,7	//Property_300h_3_0=0x0; 	Address(0x320[7:0])
    SPIWrite 0019,00,0,7	//txdig=0x0; 	Address(0x19[7:4])
    
    //START: Setting TDD Pin Override values.
    
    SPIWrite 0015,80,0,7	//timing_controller=0x1; 	Address(0x15[7:7])
    SPIWrite 00ed,00,0,7	//Property_cch_11_8=0x0; 	Address(0xed[7:0])
    SPIWrite 00f5,00,0,7	//Property_d4h_9_8=0x0; 	Address(0xf5[7:0])
    SPIWrite 00e5,00,0,7	//Property_c4h_11_8=0x0; 	Address(0xe5[7:0])
    SPIWrite 00ed,0f,0,7	//Property_cch_11_8=0xf; 	Address(0xed[7:0])
    SPIWrite 00f5,00,0,7	//Property_d4h_9_8=0x0; 	Address(0xf5[7:0])
    SPIWrite 00e5,00,0,7	//Property_c4h_11_8=0x0; 	Address(0xe5[7:0])
    
    //END: Setting TDD Pin Override values.
    
    SPIWrite 0015,00,0,7	//timing_controller=0x0; 	Address(0x15[7:7])
    SPIWrite 0010,0f,0,7	//ec_dig=0xf; 	Address(0x10[7:0])
    SPIWrite 003c,01,0,7	//Property_3ch_0_0=0x1; 	Address(0x3c[7:0])
    SPIWrite 003c,00,0,7	//Property_3ch_0_0=0x0; 	Address(0x3c[7:0])
    SPIWrite 0010,00,0,7	//ec_dig=0x0; 	Address(0x10[7:0])
    
    //START: Setting TDD Pin Override values.
    
    SPIWrite 0015,80,0,7	//timing_controller=0x1; 	Address(0x15[7:7])
    SPIWrite 00ed,00,0,7	//Property_cch_11_8=0x0; 	Address(0xed[7:0])
    SPIWrite 00f5,00,0,7	//Property_d4h_9_8=0x0; 	Address(0xf5[7:0])
    SPIWrite 00e5,00,0,7	//Property_c4h_11_8=0x0; 	Address(0xe5[7:0])
    SPIWrite 00ed,00,0,7	//Property_cch_11_8=0x0; 	Address(0xed[7:0])
    SPIWrite 00f5,03,0,7	//Property_d4h_9_8=0x3; 	Address(0xf5[7:0])
    SPIWrite 00e5,00,0,7	//Property_c4h_11_8=0x0; 	Address(0xe5[7:0])
    
    //END: Setting TDD Pin Override values.
    
    SPIWrite 0015,00,0,7	//timing_controller=0x0; 	Address(0x15[7:7])
    SPIWrite 0010,30,0,7	//ec_dig=0x30; 	Address(0x10[7:0])
    SPIWrite 003c,01,0,7	//Property_3ch_0_0=0x1; 	Address(0x3c[7:0])
    SPIWrite 003c,00,0,7	//Property_3ch_0_0=0x0; 	Address(0x3c[7:0])
    SPIWrite 0010,00,0,7	//ec_dig=0x0; 	Address(0x10[7:0])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x0; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 0193,90,0,7	//MACRO_OPCODE=0x90; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0144,08,0,7	//Property_124h_4_2=0x2; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,08,0,7	//Property_18h_3_3=0x1; 	Address(0x18[7:3])
    SPIWrite 1f8f,05,0,7
    SPIWrite 0018,00,0,7	//Property_18h_3_3=0x0; 	Address(0x18[7:3])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x1; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,90,0,7	//MACRO_OPCODE=0x90; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,01,0,7	//MACRO_OPERAND_REG0=0x1010001; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,01,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,9f,0,7	//MACRO_OPCODE=0x9f; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0xb0001; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,0b,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,49,0,7	//MACRO_OPCODE=0x49; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x1; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,4b,0,7	//MACRO_OPCODE=0x4b; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x0; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 00a7,00,0,7	//MACRO_OPERAND_REG1=0x0; 	Address(0xa4[7:0],0xa5[7:0],0xa6[7:0],0xa7[7:0],0xa8[7:0])
    SPIWrite 00a6,00,0,7
    SPIWrite 00a5,00,0,7
    SPIWrite 00a4,00,0,7
    SPIWrite 0193,13,0,7	//MACRO_OPCODE=0x13; 	Address(0x193[7:0],0x194[7:0])
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0018,00,5,5	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0012,01,0,3	//rxdig=0x1; 	Address(0x12[7:0])
    SPIWrite 14c4,00,0,0	//dc_corr_fw_pause=0x0; 	Address(0x14c4[7:0])
    SPIWrite 0012,02,0,3	//rxdig=0x2; 	Address(0x12[7:0])
    SPIWrite 14c4,00,0,0	//dc_corr_fw_pause=0x0; 	Address(0x14c4[7:0])
    SPIWrite 0012,04,0,3	//rxdig=0x4; 	Address(0x12[7:0])
    SPIWrite 14c4,00,0,0	//dc_corr_fw_pause=0x0; 	Address(0x14c4[7:0])
    SPIWrite 0012,08,0,3	//rxdig=0x8; 	Address(0x12[7:0])
    SPIWrite 14c4,00,0,0	//dc_corr_fw_pause=0x0; 	Address(0x14c4[7:0])
    SPIWrite 0012,00,0,3	//rxdig=0x0; 	Address(0x12[7:0])
    SPIWrite 0012,10,4,5	//fbdig=0x1; 	Address(0x12[7:4])
    SPIWrite 14c4,00,0,0	//dc_corr_fw_pause=0x0; 	Address(0x14c4[7:0])
    SPIWrite 0012,20,4,5	//fbdig=0x2; 	Address(0x12[7:4])
    SPIWrite 14c4,00,0,0	//dc_corr_fw_pause=0x0; 	Address(0x14c4[7:0])
    SPIWrite 0012,00,0,7	//fbdig=0x0; 	Address(0x12[7:4])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 0193,3d,0,7	//MACRO_OPCODE=0x3d; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x0; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 0193,90,0,7	//MACRO_OPCODE=0x90; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,40,0,7	//Property_18h_6_6=0x1; 	Address(0x18[7:6])
    SPIWrite 026e,02,0,7	//Property_24ch_17_17=0x1; 	Address(0x26e[7:1])
    SPIWrite 0018,00,0,7	//Property_18h_6_6=0x0; 	Address(0x18[7:6])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIWrite 0144,08,0,7	//Property_124h_4_2=0x2; 	Address(0x144[7:2])
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,08,0,7	//Property_18h_3_3=0x1; 	Address(0x18[7:3])
    SPIWrite 1443,05,0,7
    SPIWrite 1442,f5,0,7
    SPIWrite 1441,e1,0,7
    SPIWrite 1440,00,0,7
    SPIWrite 140b,27,0,7
    SPIWrite 140c,27,0,7
    SPIWrite 140d,27,0,7
    SPIWrite 140e,27,0,7
    SPIWrite 140f,27,0,7
    SPIWrite 1410,27,0,7
    SPIWrite 0018,00,0,7	//Property_18h_3_3=0x0; 	Address(0x18[7:3])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x7; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,07,0,7
    SPIWrite 0193,a4,0,7	//MACRO_OPCODE=0xa4; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x8; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,08,0,7
    SPIWrite 0193,a4,0,7	//MACRO_OPCODE=0xa4; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x100; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,01,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 0193,72,0,7	//MACRO_OPCODE=0x72; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x8f0001; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,8f,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,01,0,7
    SPIWrite 0193,89,0,7	//MACRO_OPCODE=0x89; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0b01,00,0,7	//Property_ae0h_10_8=0x0; 	Address(0xb01[7:0])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0019,04,0,7	//Property_19h_2_2=0x1; 	Address(0x19[7:2])
    SPIWrite 0212,28,0,7
    SPIWrite 0019,00,0,7	//Property_19h_2_2=0x0; 	Address(0x19[7:2])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0b01,00,0,7	//Property_ae0h_10_8=0x0; 	Address(0xb01[7:0])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0019,04,0,7	//Property_19h_2_2=0x1; 	Address(0x19[7:2])
    SPIWrite 0277,00,0,7
    SPIWrite 0019,00,0,7	//Property_19h_2_2=0x0; 	Address(0x19[7:2])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0b01,00,0,7	//Property_ae0h_10_8=0x0; 	Address(0xb01[7:0])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0019,04,0,7	//Property_19h_2_2=0x1; 	Address(0x19[7:2])
    SPIWrite 07ad,00,0,7
    SPIWrite 0019,00,0,7	//Property_19h_2_2=0x0; 	Address(0x19[7:2])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0b01,00,0,7	//Property_ae0h_10_8=0x0; 	Address(0xb01[7:0])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0019,04,0,7	//Property_19h_2_2=0x1; 	Address(0x19[7:2])
    SPIWrite 027b,03,0,7
    SPIWrite 0019,00,0,7	//Property_19h_2_2=0x0; 	Address(0x19[7:2])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0b01,00,0,7	//Property_ae0h_10_8=0x0; 	Address(0xb01[7:0])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0019,04,0,7	//Property_19h_2_2=0x1; 	Address(0x19[7:2])
    SPIWrite 0214,a8,0,7
    SPIWrite 0215,01,0,7
    SPIWrite 0019,00,0,7	//Property_19h_2_2=0x0; 	Address(0x19[7:2])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0b01,00,0,7	//Property_ae0h_10_8=0x0; 	Address(0xb01[7:0])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0019,04,0,7	//Property_19h_2_2=0x1; 	Address(0x19[7:2])
    SPIWrite 0216,a8,0,7
    SPIWrite 0217,01,0,7
    SPIWrite 0019,00,0,7	//Property_19h_2_2=0x0; 	Address(0x19[7:2])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0b01,00,0,7	//Property_ae0h_10_8=0x0; 	Address(0xb01[7:0])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0019,04,0,7	//Property_19h_2_2=0x1; 	Address(0x19[7:2])
    SPIWrite 0218,a8,0,7
    SPIWrite 0219,01,0,7
    SPIWrite 0019,00,0,7	//Property_19h_2_2=0x0; 	Address(0x19[7:2])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0b01,00,0,7	//Property_ae0h_10_8=0x0; 	Address(0xb01[7:0])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0019,04,0,7	//Property_19h_2_2=0x1; 	Address(0x19[7:2])
    SPIWrite 021a,a8,0,7
    SPIWrite 021b,01,0,7
    SPIWrite 0019,00,0,7	//Property_19h_2_2=0x0; 	Address(0x19[7:2])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0b01,00,0,7	//Property_ae0h_10_8=0x0; 	Address(0xb01[7:0])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0019,04,0,7	//Property_19h_2_2=0x1; 	Address(0x19[7:2])
    SPIWrite 07fc,f6,0,7
    SPIWrite 07fd,ff,0,7
    SPIWrite 0019,00,0,7	//Property_19h_2_2=0x0; 	Address(0x19[7:2])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0b01,00,0,7	//Property_ae0h_10_8=0x0; 	Address(0xb01[7:0])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0019,04,0,7	//Property_19h_2_2=0x1; 	Address(0x19[7:2])
    SPIWrite 07b6,f6,0,7
    SPIWrite 07b7,ff,0,7
    SPIWrite 0019,00,0,7	//Property_19h_2_2=0x0; 	Address(0x19[7:2])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0b01,00,0,7	//Property_ae0h_10_8=0x0; 	Address(0xb01[7:0])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0019,04,0,7	//Property_19h_2_2=0x1; 	Address(0x19[7:2])
    SPIWrite 0284,0c,0,7
    SPIWrite 0285,04,0,7
    SPIWrite 0019,00,0,7	//Property_19h_2_2=0x0; 	Address(0x19[7:2])
    SPIWrite 0015,40,0,7	//digtop=0x1; 	Address(0x15[7:6])
    SPIWrite 0b01,00,0,7	//Property_ae0h_10_8=0x0; 	Address(0xb01[7:0])
    SPIWrite 0015,00,0,7	//digtop=0x0; 	Address(0x15[7:6])
    SPIWrite 0019,04,0,7	//Property_19h_2_2=0x1; 	Address(0x19[7:2])
    SPIWrite 0294,0c,0,7
    SPIWrite 0295,04,0,7
    SPIWrite 0019,00,0,7	//Property_19h_2_2=0x0; 	Address(0x19[7:2])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x7; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,07,0,7
    SPIWrite 0193,a3,0,7	//MACRO_OPCODE=0xa3; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x78; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,78,0,7
    SPIWrite 0193,a3,0,7	//MACRO_OPCODE=0xa3; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x0; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 00a7,00,0,7	//MACRO_OPERAND_REG1=0x1; 	Address(0xa4[7:0],0xa5[7:0],0xa6[7:0],0xa7[7:0],0xa8[7:0])
    SPIWrite 00a6,00,0,7
    SPIWrite 00a5,00,0,7
    SPIWrite 00a4,01,0,7
    SPIWrite 0193,13,0,7	//MACRO_OPCODE=0x13; 	Address(0x193[7:0],0x194[7:0])
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0xf00; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,0f,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 0193,a3,0,7	//MACRO_OPCODE=0xa3; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x0; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 0193,90,0,7	//MACRO_OPCODE=0x90; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    SPIWrite 0018,40,0,7	//Property_18h_6_6=0x1; 	Address(0x18[7:6])
    SPIWrite 026e,02,0,7	//Property_24ch_17_17=0x1; 	Address(0x26e[7:1])
    
    //START: Setting TDD Pin Override values.
    
    SPIWrite 0018,00,0,7	//Property_18h_6_6=0x0; 	Address(0x18[7:6])
    SPIWrite 0015,80,0,7	//timing_controller=0x1; 	Address(0x15[7:7])
    SPIWrite 00ed,00,0,7	//Property_cch_11_8=0x0; 	Address(0xed[7:0])
    SPIWrite 00f5,00,0,7	//Property_d4h_9_8=0x0; 	Address(0xf5[7:0])
    SPIWrite 00e5,00,0,7	//Property_c4h_11_8=0x0; 	Address(0xe5[7:0])
    SPIWrite 00ed,00,0,7	//Property_cch_11_8=0x0; 	Address(0xed[7:0])
    SPIWrite 00f5,03,0,7	//Property_d4h_9_8=0x3; 	Address(0xf5[7:0])
    SPIWrite 00e5,00,0,7	//Property_c4h_11_8=0x0; 	Address(0xe5[7:0])
    
    //END: Setting TDD Pin Override values.
    
    
    //START: Setting TDD Pin Override values.
    
    SPIWrite 00ed,00,0,7	//Property_cch_11_8=0x0; 	Address(0xed[7:0])
    SPIWrite 00f5,00,0,7	//Property_d4h_9_8=0x0; 	Address(0xf5[7:0])
    SPIWrite 00e5,00,0,7	//Property_c4h_11_8=0x0; 	Address(0xe5[7:0])
    SPIWrite 00ed,0f,0,7	//Property_cch_11_8=0xf; 	Address(0xed[7:0])
    SPIWrite 00f5,00,0,7	//Property_d4h_9_8=0x0; 	Address(0xf5[7:0])
    SPIWrite 00e5,00,0,7	//Property_c4h_11_8=0x0; 	Address(0xe5[7:0])
    
    //END: Setting TDD Pin Override values.
    
    
    //START: Removing TDD Pin Overrides.
    
    SPIWrite 00ec,00,0,7	//Property_cch_0_0=0x0; 	Address(0xec[7:0])
    SPIWrite 00f4,00,0,7	//Property_d4h_0_0=0x0; 	Address(0xf4[7:0])
    SPIWrite 00e4,00,0,7	//Property_c4h_0_0=0x0; 	Address(0xe4[7:0])
    
    //END: Removing TDD Pin Overrides.
    
    SPIWrite 0015,00,0,7	//timing_controller=0x0; 	Address(0x15[7:7])
    SPIWrite 0018,20,0,7	//macro=0x1; 	Address(0x18[7:5])
    SPIRead 00f0,0,0
    
    //Read	MACRO_READY=0x0; 	Address(0xf0[7:0])
    
    
    SPIPoll 00f0,0,0,01
    SPIWrite 00a3,00,0,7	//MACRO_OPERAND_REG0=0x0; 	Address(0xa0[7:0],0xa1[7:0],0xa2[7:0],0xa3[7:0],0xa4[7:0])
    SPIWrite 00a2,00,0,7
    SPIWrite 00a1,00,0,7
    SPIWrite 00a0,00,0,7
    SPIWrite 0193,15,0,7	//MACRO_OPCODE=0x15; 	Address(0x193[7:0],0x194[7:0])
    
    WAIT 0.001
    SPIRead 00f0,2,2
    
    //Read	MACRO_DONE=0x0; 	Address(0xf0[7:2])
    
    
    SPIPoll 00f0,2,2,04
    SPIReadCheck 00f0,3,3,00
    
    //Read	MACRO_ERROR=0x0; 	Address(0xf0[7:3])
    
    SPIRead 00f1,0,7
    
    //Read	MACRO_ERROR_OPCODE=0x0; 	Address(0xf1[7:0],0xf2[7:0])
    
    SPIRead 00f0,4,4
    
    //Read	MACRO_ERROR_IN_OPCODE=0x0; 	Address(0xf0[7:4])
    
    SPIRead 00f0,5,5
    
    //Read	MACRO_ERROR_OPCODE_NOT_ALLOWED=0x0; 	Address(0xf0[7:5])
    
    SPIRead 00f0,6,6
    
    //Read	MACRO_ERROR_IN_OPERAND=0x0; 	Address(0xf0[7:6])
    
    SPIRead 00f0,7,7
    
    //Read	MACRO_ERROR_IN_EXECUTION=0x0; 	Address(0xf0[7:7])
    
    SPIRead 00f3,0,7
    SPIRead 00f2,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE=0x0; 	Address(0xf2[7:0],0xf3[7:0],0xf4[7:0])
    
    SPIRead 00f7,0,7
    SPIRead 00f6,0,7
    SPIRead 00f5,0,7
    SPIRead 00f4,0,7
    
    //Read	MACRO_ERROR_EXTENDED_CODE_2=0x0; 	Address(0xf4[7:0],0xf5[7:0],0xf6[7:0],0xf7[7:0],0xf8[7:0])
    
    SPIWrite 0018,00,0,7	//macro=0x0; 	Address(0x18[7:5])
    
    //STEP: postLinkUp/step2 
    SPIWrite 0016,03,0,7	//adc_jesd=0x3; 	Address(0x16[7:0])
    SPIWrite 0024,00,0,7	//jesd_clear_data=0x0; 	Address(0x24[7:0])
    SPIWrite 00f0,0f,0,7	//alarms_serdes_fifo_errors_clear=0xf; 	Address(0xf0[7:0])
    SPIWrite 00f0,00,0,7	//alarms_serdes_fifo_errors_clear=0x0; 	Address(0xf0[7:0])
    SPIWrite 0016,00,0,7	//adc_jesd=0x0; 	Address(0x16[7:0])
    SPIWrite 0016,04,0,7	//dac_jesd=0x1; 	Address(0x16[7:2])
    SPIWrite 0064,0f,0,7	//jesd_clear_data=0x0; 	Address(0x64[7:4])
    SPIWrite 0128,01,0,7	//clear_all_alarms=0x1; 	Address(0x128[7:0])
    SPIWrite 0128,00,0,7	//clear_all_alarms=0x0; 	Address(0x128[7:0])
    SPIWrite 0128,04,0,7	//clear_all_alarms_to_pap=0x1; 	Address(0x128[7:2])
    SPIWrite 0128,00,0,7	//clear_all_alarms_to_pap=0x0; 	Address(0x128[7:2])
    SPIWrite 0016,08,0,7	//dac_jesd=0x2; 	Address(0x16[7:2])
    SPIWrite 0064,00,0,7	//jesd_clear_data=0x0; 	Address(0x64[7:4])
    SPIWrite 0128,01,0,7	//clear_all_alarms=0x1; 	Address(0x128[7:0])
    SPIWrite 0128,00,0,7	//clear_all_alarms=0x0; 	Address(0x128[7:0])
    SPIWrite 0128,04,0,7	//clear_all_alarms_to_pap=0x1; 	Address(0x128[7:2])
    SPIWrite 0128,00,0,7	//clear_all_alarms_to_pap=0x0; 	Address(0x128[7:2])
    SPIWrite 0016,00,0,7	//dac_jesd=0x0; 	Address(0x16[7:2])
    SPIWrite 0019,f0,0,7	//txdig=0xf; 	Address(0x19[7:4])
    SPIWrite 0a40,0f,0,7	//HBF59OvrClr=0xf; 	Address(0xa40[7:0])
    SPIWrite 0a41,0f,0,7	//HBF23HROvrClr=0xf; 	Address(0xa41[7:0])
    SPIWrite 0a44,0f,0,7	//mixerOvrClr=0xf; 	Address(0xa44[7:0])
    SPIWrite 0a45,0f,0,7	//isincOvrClr=0xf; 	Address(0xa45[7:0])
    SPIWrite 0a46,0f,0,7	//dacDitherOvrClr=0xf; 	Address(0xa46[7:0])
    SPIWrite 0a40,00,0,7	//HBF59OvrClr=0x0; 	Address(0xa40[7:0])
    SPIWrite 0a41,00,0,7	//HBF23HROvrClr=0x0; 	Address(0xa41[7:0])
    SPIWrite 0a44,00,0,7	//mixerOvrClr=0x0; 	Address(0xa44[7:0])
    SPIWrite 0a45,00,0,7	//isincOvrClr=0x0; 	Address(0xa45[7:0])
    SPIWrite 0a46,00,0,7	//dacDitherOvrClr=0x0; 	Address(0xa46[7:0])
    SPIWrite 054d,07,0,7	//Property_52ch_10_0=0x7ff; 	Address(0x54c[2:0],0x54d[7:0])
    SPIWrite 054c,ff,0,7
    SPIWrite 0580,07,0,7	//Property_560h_2_0=0x7; 	Address(0x580[7:0])
    SPIWrite 0589,07,0,7	//Property_568h_10_8=0x7; 	Address(0x589[7:0])
    SPIWrite 06b4,01,0,7	//pap_hw_alarm_act_alc_clr=0x1; 	Address(0x6b4[7:0])
    SPIWrite 06b4,03,0,7	//pap_hw_alarm_act_lmt_clr=0x1; 	Address(0x6b4[7:1])
    SPIWrite 054d,00,0,7	//Property_52ch_10_0=0x0; 	Address(0x54c[2:0],0x54d[7:0])
    SPIWrite 054c,00,0,7
    SPIWrite 0580,00,0,7	//Property_560h_2_0=0x0; 	Address(0x580[7:0])
    SPIWrite 0589,00,0,7	//Property_568h_10_8=0x0; 	Address(0x589[7:0])
    SPIWrite 06b4,02,0,7	//pap_hw_alarm_act_alc_clr=0x0; 	Address(0x6b4[7:0])
    SPIWrite 06b4,00,0,7	//pap_hw_alarm_act_lmt_clr=0x0; 	Address(0x6b4[7:1])
    SPIWrite 052c,1f,0,7	//Property_50ch_4_0=0x1f; 	Address(0x52c[7:0])
    SPIWrite 052c,00,0,7	//Property_50ch_4_0=0x0; 	Address(0x52c[7:0])
    SPIWrite 0019,00,0,7	//txdig=0x0; 	Address(0x19[7:4])
    
    //STEP: dlJesdLinkupCheck/step0 
    
    //START: Reading the JESD RX states to check if link is established
    
    
    WAIT 0.001
    SPIWrite 0016,04,0,7	//dac_jesd=0x1; 	Address(0x16[7:2])
    SPIReadCheck 011b,0,7,00
    SPIReadCheck 011a,0,7,00
    SPIReadCheck 0119,0,7,00
    SPIReadCheck 0118,0,7,00
    SPIReadCheck 011f,0,7,00
    SPIReadCheck 011e,0,7,00
    SPIReadCheck 011d,0,7,00
    SPIReadCheck 011c,0,7,00
    
    //Read	alarms=0x0; 	Address(0x118[7:0],0x119[7:0],0x11a[7:0],0x11b[7:0],0x11c[7:0],0x11c[7:0],0x11d[7:0],0x11e[7:0],0x11f[7:0],0x120[7:0])
    
    SPIReadCheck 00ee,0,3,0f
    
    //Read	comma_align_lock_flag=0x0; 	Address(0xee[7:0])
    
    SPIReadCheck 00a2,0,7,aa
    
    //Read	jesd_cs_state=0x0; 	Address(0xa2[7:0],0xa3[7:0])
    
    SPIReadCheck 00a6,0,7,00
    
    //Read	jesd_buf_state=0x0; 	Address(0xa6[7:0],0xa7[7:0])
    
    
    //END: Done reading the JESD RX states to check if link is established
    
    SPIWrite 0016,00,0,7	//dac_jesd=0x0; 	Address(0x16[7:2])
    
    //END: Device Config Complete
    
    
    //START: Setting TDD Pin in override state and setting override values.
    
    SPIWrite 0015,80,0,7	//timing_controller=0x1; 	Address(0x15[7:7])
    SPIWrite 00ec,01,0,7	//Property_cch_0_0=0x1; 	Address(0xec[7:0])
    SPIWrite 00f4,01,0,7	//Property_d4h_0_0=0x1; 	Address(0xf4[7:0])
    SPIWrite 00e4,01,0,7	//Property_c4h_0_0=0x1; 	Address(0xe4[7:0])
    SPIWrite 00ed,00,0,7	//Property_cch_11_8=0x0; 	Address(0xed[7:0])
    SPIWrite 00f5,00,0,7	//Property_d4h_9_8=0x0; 	Address(0xf5[7:0])
    SPIWrite 00e5,00,0,7	//Property_c4h_11_8=0x0; 	Address(0xe5[7:0])
    SPIWrite 00ed,0f,0,7	//Property_cch_11_8=0xf; 	Address(0xed[7:0])
    SPIWrite 00f5,03,0,7	//Property_d4h_9_8=0x3; 	Address(0xf5[7:0])
    SPIWrite 00e5,0f,0,7	//Property_c4h_11_8=0xf; 	Address(0xe5[7:0])
    
    //END: Setting TDD Pin in override state and setting override values.
    
    

    The SYSREF is 3.90625MHz.

    It is same as Latte GUI indicated.

    When the RBD is broken, the CS and FS value is not 0xAA and 0xFF.

    If the correct value is required for the RBD failure time, the FPGA program image must be changed.

    This is because the programmed FPGA image repeats the bring-up operation until the connection between the FPGA and the AFE7950.

    Thank you.

  • Hi David Chaparro,

    I am waiting for your reply now.
    How is my inquiry going?
    Is there any problem with the script I posted?
    Please let me know how it goes.
    It's been almost a month since I inquired.
    Thank you.

  • Hi Byungsoo,

    I was able to load your exact configuration file through Latte and program the AFE without any issues, so I do not expect the issue to be with your configuration file. I also verified that the SYSREF frequency you reported is correct. 

    Also, when the link is broken you say that the CS and FS values are not 0xAA and 0xFF. Can you share any other values these are in the broken state? This can provide us with additional information that can be helpful for debugging this error. 

    Also, I am not sure if it was mentioned earlier, but when you see this bad state are their any other readcheck or poll failures? Specifically we should double check the JESD alarm registers.

    Regards,

    David Chaparro 

  • Hi David Chaparro,

    The CS is 0xAA, and the FS is 0x55.

    Lane0 any ready counter is 0x2b00

    Lane1 any ready counter is 0x3300

    Lane2 any ready counter is 0x2b01

    Lane3 any ready counter is 0x2900

    Lane0 all ready counter is 0x3300

    Lane1 all ready counter is 0x3300

    Lane2 all ready counter is 0x3300

    Lane3 all ready counter is 0x3300

    Lane0 skew 0x1f

    Lane1 skew 0x1f

    Lane2 skew 0x1f

    Lane3 skew 0x1f

    Link0 RBD 0x3100

    Link1 RBD 0x3100

    Link0 init fcounter 0x00

    Link1 init fcounter 0x00

    Link0 init ocounter 0x00

    Link1 init ocounter 0x00

    Lane0 Aram lane RBD 0x00

    Lane1 Aram lane RBD 0x20

    Lane2 Aram lane RBD 0x00

    Lane3 Aram lane RBD 0x60

    Lane4 Aram lane RBD 0x10

    Lane5 Aram lane RBD 0x16

    Lane6 Aram lane RBD 0x12

    Lane7 Aram lane RBD 0x10

    Link sysref cnt 0x00

    Link0 buffer depth 0x1f

    Link1 buffer depth 0x1f

    Lane enable 0x0F

    jesd cs state 0xAA -> CS

    jesd buf state 0x55 -> FS

    Above values are I read.

    Thank you.

  • Hi Byungsoo,

    Just to confirm, is this design using the Xilinx JESD204 IP or the TI204c-IP? Also, on your setup do you follow the steps outlined in the document below to find and set the optimal RBD?

    https://www.ti.com/lit/an/sbaa543/sbaa543.pdf 

    Regards,

    David Chaparro