Unexpected SPI frequency variation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unexpected SPI frequency variation

433 Views
deven_solanki
Contributor III

Hi,

I am working in imx7d sabresd. Right now I am testing SPI which is available in mikrobus with spitest application (link: https://raw.githubusercontent.com/raspberrypi/linux/rpi-3.10.y/Documentation/spi/spidev_test.c).

I am changing frequency (from application) so mostly I am getting nearby clock value(like for 25MHz output frequency is 20MHz), that is ok because it is using divider.

But when I am giving 3MHz,4MHz,8MHz and 9MHz I am getting very low frequency(below 1MHz), and when I am giving 2MHz it is reflecting as same 2Mhz. Why it is like that?

Thanks in advance,

Labels (1)
Tags (2)
0 Kudos
1 Reply

354 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Deven,

which BSP/kernel are you using?

Carlos

0 Kudos