Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

TMS320C28346 SPI Clock

$
0
0

Hi there!

I am using a Delfino TMS320C28346 on the C28346 Control Card including the DIMM 168 docking station. I need to configure the SPIA on the microcontroller and I am having some troubles.

Since there is an external oscillator attached to the EVM with a 20MHz clock i am using the PLL to get a SYSCLK of 300MHz:

PLLCR = 0x001D for multiplication of 20Mhz by 30 with get's me a OSCCLK of 600MHz

PLLSTS = 0x0101 for dividing OSCCLK by 2 to get a 300MHz SYSCLK

Since the SPICLK uses the LSPCLK the register LOSPCP is set to 0x0002 (default) to divide by 4. This get's a LSPCLK of 75MHz.

The SPIBRR (which in fact get's me the wanted SPICLK) is set to 0x007F, dividing the LSPCLK by 128. This should result in a SPICLK of 585937.5 Hz (almost 600kHz).

The osciloscope however shows a frequency of around 80-84kHz.

Am I missing something in the calculation? What do i need to set to get a SPICLK of 50MHz?

Thank you very much in advance!

-Johannes


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>