- Disable the analog SYSREF receiver with the API
command.
SysRefEnable = 0 status_dac|=XRFdc_MTS_Sysref_Config(&InstancePtr, &DACSyncConfigPtr, &ADCSyncConfigPtr, SysRefEnable)
- Set the mixer settings, NCO phase reset, QMC, and/or coarse
delay.
XRFdc_Mixer_Settings Mixer_Settings; // Declare mixer settings struct u32 Type = XRFDC_DAC_TILE; u32 Tile_Id ; u32 Block_Id ; u32 Mixer_Settings.EventSource = XRFDC_EVNT_SRC_SYSREF; // it is assumed other Mixer settings have been previously assigned in the user code for (Tile_Id = 0; Tile_Id < 4; Tile_Id++ ) { for (Block_Id = 0; Block_Id < 4; Block_Id++ ) { XRFdc_SetMixerSettings(&RFdcInst, Type, Tile_Id, Block_Id, &Mixer_Settings); status_dac |= XRFdc_ResetNCOPhase(&RFdcInst,Type, Tile_Id,Block_Id); // Note that Coarse mixer and QMC could also be part of this for loop. } }
- Wait for successful return of API calls to ensure all register writes have
been
completed.
if (status_dac!=XST_SUCCESS) // Execute error code;
- Enable the analog SYSREF clock in continuous mode and ensure this clock is stable.
- Enable the analog SYSREF receiver with the API
command.
SysRefEnable = 1; status_dac|=XRFdc_MTS_Sysref_Config(&InstancePtr, &DACSyncConfigPtr, &ADCSyncConfigPtr, SysRefEnable);
- Wait long enough to ensure a rising edge has been detected, at this point the update would commence.
- Disable the analog SYSREF receiver with the API
command.
SysRefEnable = 0; status_dac|=XRFdc_MTS_Sysref_Config(&InstancePtr, &DACSyncConfigPtr, &ADCSyncConfigPtr, SysRefEnable);
- Disable the external analog SYSREF clock (optional).
Figure 1. Dynamic Update Event Trigger Using SYSREF for Single Device with AC- or
DC-Coupling