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.
Chen,
We are using our own board design, not an EVM. An update on our progress, we got the LVDS partially working (there was a bug in the FPGA that made it send wrong SPI commands, now that is fixed), D3 and D4 now appear to be outputting something, and when I set the test pattern to all 1 or all 0, the D3 and D4 LVDS lines stay at high or low as expected. Now we have some more problems:
- D2 and D1 LVDS outputs do not work, they appear to be stuck at 1 no matter what D3 and D4 are doing.
- Reading the registers on our FPGA, it looks like the AFE is not sending the sync word (0x2772), but we are not sure if this is the FPGA not reading properly or the AFE not sending a sync word. If the LVDS is sending data, should it automatically send the sync word even under test pattern mode?
We are sending the following ADC register commands over SPI.
Addr 0x00: 0x0001
Addr 0x01: 0xC000
Addr 0x02: 0x6000
Addr 0x03: 0x2000
Addr 0x04: 0x0010
Addr 0x05: 0x3F80 (obviously this isn't used because addr 0x02 isn't set to custom, but we kept it anyways)
Addr 0x0A: 0x0100
Addr 0x16: 0x0001
Hi Wei,
How are you?
We think because you need to use AFE5809's demod mode,
that is the reason you will use sync word. Right?
Using sync word, according to and following data sheet:
First, you need to set the register correctly, before you can see the sync word on LVDS output.
Sync word is used for you to recognize on LVDS output data, when you can receive the correct
data (such as A.I , A.Q , B.I , B.Q or '0000'=empty)
Please take a look (it also depends what kind of register you set to make M=3, or M=4, or M=5)
These are helping you to read data more correctly for using AFE5809 demod mode.
Thanks and best regards,
Chen
Wei-Han,
I am the applications engineer for the AFE5809 and I made the EVM and GUI, which I know that you are not using. The sync word and also 16-bit mode only work when you are using the DEMOD feature. The ADC in the AFE5809 is only a 14-bit ADC, but the decimation can effectively increase the resolution to 16 bits. Either way, in any mode you can use the 16x serialization which is separate but similar to the ADC resolution. For instance, you can use 14-bit ADC resolution and 16x serialization.
So, please let us confirm the LVDS data without any use of the DEMOD function first, if you plan on using that. Therefore, there will be no sync word in the data and we can use 14b,14x mode for the data. This means that the FCLK will be at a frequency equal to Fs, and the DCLK will be at 14/2 *Fs, or 7 * Fs. If you can use a slower input clock than you can see if there is a speed or alignment issue, but I know that this is often difficult.
Please use the Deskew pattern to debug the DCLK alignment, and the Sync pattern to debug the FCLK alignment.
Chuck