Can i get any documents to read about interfacing with AD7689 using SPORT?
I've attached the code that was used to interface AD7682 (4 channel ADC) with SPORT of BF59x processor. The comments in the code has the description of the interface used.
Prashant's answer reminded me to inform you that, we have the option to enable the Gated Clock functionality on SPORT's of BF59x only. This facilitates to seamlessly interface to ADC's supporting SPI protocol like the AD7682/9.
So, for other Blackfin processors as Prashant said, you need to emulate the SPI interface on SPORT. Can I know the reason why you are not using the SPI of BF527..? Is it already used for other purpose in your system..?
I am using my SPI for booting, we have configured the SPI port for that.
I apologize for the delay in responding to your question. The core is same but you see difference in the on-chip peripherals, controllers, memory. You can have a look at the product selection table to compare the differences between the two. There is a difference in the SPORT peripheral architecture,where you have an option to enable the gated clock functionality on BF59x processors.
Coming back to your question, you can still use the SPI to hook up your ADC. You should use a different flag to select the ADC other than the one used for Flash. This will help you to overcome the need to emulate SPI on SPORT to interface with AD7689. If you wish to use SPORT to interface with AD7689, the option left is to emulate and the ref what we all have is EE-304. We don't have sample code to communicate with AD7682/9 via SPORT (excpet for BF592 which I already shared).
Thanks a lot .
Thanks for the example document. Are the architectures of BF59x and BF52x similar? I havn't checked that yet? It would be really helpful if you could give me an example code for interfacing any BF52x processor with AD7689(8 channel) or AD7682(4 channel).
I am emulating my SPORT0 as SPI as per the "EE-304" note mentioned by prasanth.
So, it would be helpful if i can get some example code for that.
Unlike few other ADC's, AD7689 does not support direct SPORT interface. Its timings are compatible with SPI protocol.
To interface AD7682 to BF527 through SPORT module, you may have to refer EE-304, which discusses about emulating SPI interface using SPORT module. Here is the link to that doc:
Just out of curiousity, which ADCs are directly SPORT compatible? There are certain advantages that the SPORT has over the SPI (eg, discrete bit lengths and dual channel operation).
Just as an example, we have AD7266 on BF518 EZ-KIT, which is directly interfaced to SPORT. (Audio codecs are also being interfaced to SPORT peripherals). As you aware, you should refer datasheet of particular device to check whether it supports SPORT interface. Else you can contact our ‘linear analog private support channel’.
Your understanding is correct. Dual channel operation of SPORT is a plus point, when interfacing it with a ‘Dual’ ADC like AD7266.
Somebody please post something related to my query..
Retrieving data ...