04-21-2016 05:09 AM
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:
And everything works fine.
When i try to set a 20MHz clock instead, I set:
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
Solved! Go to Solution.
05-17-2016 07:56 AM
Hi Federico,
as you can see in the image attached below, the number that you are setting is the number of BASE clock cycle that make the SPI clock.
Base clock is 100MHz, then the resolution is 10ns. You've to choose between 20 and 30ns or try to have 20ns high clock and 30ns low clock.
Teo.