9.3.2.1.1 Setup of SYSREF Example
The following procedure is a programming example for a system which is to operate with a 3000-MHz VCO frequency. Use DCLKout0 and DCLKout2 to drive converters at 750 MHz. Use DCLKout4 to drive an FPGA at 150 MHz. Synchronize the converters and FPGA using a two SYSREF pulses at 10 MHz.
- Program registers 0x000 to 0x1fff as desired. Key to prepare for SYSREF operations:
- Prepare for manual SYNC: SYNC_POL = 0, SYNC_MODE = 1, SYSREF_MUX = 0
- Setup output dividers as per example: DCLKout0_DIV and DCLKout2_DIV = 4 for frequency of 750 MHz. DCLKout4_DIV = 20 for frequency of 150 MHz.
- Setup output dividers as per example: SYSREF_DIV = 300 for 10 MHz SYSREF
- Setup SYSREF: SYSREF_PD = 0, SYSREF_DDLY_PD = 0, DCLKout0_DDLY_PD = 0, DCLKout2_DDLY_PD = 0, DCLKout4_DDLY_PD = 0, SYNC_EN = 1, SYSREF_PLSR_PD = 0, SYSREF_PULSE_CNT = 1 (2 pulses). SDCLKout1_PD = 0, SDCLKout3_PD = 0”
- Clear Local SYSREF DDLY: SYSREF_CLR = 1.
- Establish deterministic phase relationships between SYSREF and Device Clock for JESD204B:
- Set device clock and SYSREF divider digital delays: DCLKout0_DDLY_CNTH, DCLKout0_DDLY_CNTL, DCLKout2_DDLY_CNTH, DCLKout2_DDLY_CNTL, DCLKout4_DDLY_CNTH, DCLKout4_DDLY_CNTL, SYSREF_DDLY.
- Set device clock digital delay half steps: DCLKout0_HS, DCLKout2_HS, DCLKout4_HS.
- Set SYSREF clock digital delay as required to achieve known phase relationships: SDCLKout1_DDLY, SDCLKout3_DDLY, SDCLKout5_DDLY.
- To allow SYNC to effect dividers: SYNC_DIS0 = 0, SYNC_DIS2 = 0, SYNC_DIS4 = 0, SYNC_DISSYSREF = 0
- Perform SYNC by toggling SYNC_POL = 1 then SYNC_POL = 0.
- Now that dividers are synchronized, disable SYNC from resetting these dividers. It is not desired for SYSREF to reset its own divider or the dividers of the output clocks.
- Prevent SYNC (SYSREF) from affecting dividers: SYNC_DIS0 = 1, SYNC_DIS2 = 1, SYNC_DIS4 = 1, SYNC_DISSYSREF = 1.
- Release reset of local SYSREF digital delay.
- SYSREF_CLR = 0. Note this bit needs to be set for only 15 VCO clocks after SYSREF_PD = 0.
- Set SYSREF operation.
- Allow pin SYNC event to start pulser: SYNC_MODE = 2.
- Select pulser as SYSREF signal: SYSREF_MUX = 2.
- Complete! Now asserting the SYNC pin, or toggling SYNC_POL will result in a series of 2 SYSREF pulses.