Hi,
I have a TMS320C6670 EVM. I am using it to interface 14 bit AD7367 ADC using GPIO. This ADC converts input signals and then sends 14 bits (for one conversion result) serially on providing 14 clocks on its CLK pin. So, I give 14 clocks from a GPIO pin and simultaneously read one by one bit from another GPIO pin using GPIORead function. From the TMS320C6670 datasheet, it takes 12*(1/SYSCLK1) time (minimum) for reading input. SYSCLK1 is the core clock, 983 Mhz in my case (currently set by PLL values). So it should be around 12ns or let's say at max 30~40 ns. But it takes 230 ns to read one input and hence I am not able to get required sampling rate.
I was trying this on the emulator which according to my knowledge runs at much slower clock rate (1Mhz as stated by the CCS config file). But when I loaded the same program on NOR, I got the same performance. So is it the case that emulator's and flash boot performance is same? I also tried a simple program (on both emulator and NOR flash) in which I just clear and set output on a particular GPIO pin in an infinite while loop trying to figure out how fast can I generate clock on a GPIO pin and what I observed was 150ns time period square pulse. (Note: I was not giving any delay in between clearing and setting output on a GPIO). So I am missing any PLL configuration or this is the fastest clock that I can get via GPIO toggling? I am loading the gel file provided in the mcsdk folder and my DSP's main clock is currently set at 983 Mhz.
Please help!
Thanks and Regards,
Hardik Godara
Undergraduate Student at IIT Bombay