Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2147

USB8452 - How to set a 20MHz clock in SPI Stream mode?

$
0
0

Hello everyone,
I can't really manage to set a 20MHz clock in SPI Stream mode.

To set the frequency I use this property node (see attached image)
[e.g. To set a 1MHz clock, I set:

  1. Wave1.Tmng.SclkLow=50 (500ns)
  2. Wave1.Tmng.SclkHigh=50 (500ns)]

And everything works fine.

 

When i try to set a 20MHz clock instead, I set:

  1. Wave1.Tmng.SclkLow=2.5 (25ns)
  2. Wave1.Tmng.SclkHigh=2.5 (25ns)

But, unfortunately, I get a 25MHz clock.
I know that the USB 8452 can generate a 20MHz signal so I'm guessing that I'm doing something wrong, but honestly I don't know what to do.
I see that the input for Wave1.Tmng.SclkLow/High is a U32, so maybe it truncates my 2.5 to a 2 (that means a 25MHz clock) but since the USB8452 can generate a 20MHz signal I honestly don't see the point of this.

 

Thanks for any advice/help,
Federico

SPI stream set.png

 

 


Viewing all articles
Browse latest Browse all 2147

Trending Articles



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