Part Number: TMS320C6678
Hi,
I was running the SPI basic example test project for C6678 in which I transmit predefined data and the receive using SPI from NOR_flash memory. I am using Processor SDK 5.2. I put a breakpoint in the Board_initSPI function to see the SPI clock frequency. I ran the simulation and in the variables windows, I saw that sysclock frequency is "4294967295" and the SPI module input clock frequency is "166666666". I am not able to understand why the system clock frequency is so high. From the datasheet, I found out that maximum clock frequency is 1400 MHz. I need the SPI clock frequency to be somewhere between 10-20 MHz because the device from which the board is gonna interface with afterwards has its SPI module frequency less than 20 MHz. How can I change the SPI clock frequency? And to operate SPI in chipselect mode, should I change the "pinMode" to 0 and "csNum" to 1?
I am attaching a screenshot of the debug window for reference.
Thank You
