I have a ADC (TLC2323-12) that (as far as i understand from the datasheet) has two modes of controlling the output of the converted signal. One method is with the input signal SCK that can be controlled from the FPGA whenever you want to shift the value to the FPGA, and the other is way is through CLKOUT which is an internal clock from the ADC that "automatically and bursting" (sorry I'm new at this) spit out the results bit by bit of the 12 bits resolution in total. This last method is described in datasheet as "High-speed" in comparison with the SCK method.
Now, I was able to control the ADC with the SCK method, because I can send the signals from the FPGA top module easily and the pick the value I want, in general I work with only 1 clock. But with the CLKOUT, seemingly this one behave like a second clock, so this is a dual-clock system?
What should I do to properly code the interface when using the CLKOUT method? There are 2 clocks now. The FPGA internal clock and the CLKOUT coming from the ADC that can "announce" to the FPGA the availability of the data.
I was reading around that an easy way maybe is to code an Asyncrhonous FIFO that can write from the CLKOUT and read from the FPGA Clock. is this right?
The interface is Serial, 2 channels.