Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5083

General • Re: PIO pin follower delay

$
0
0
To be honest I didn't set the clock frequency as I want it running at 125MHz - I didn't see any difference between not setting the speed or setting using int = 0 and frac = 0.

Not sure how selecting zero for both could be 65536 as the code is:

Code:

    pio->sm[sm].clkdiv =            (((uint)div_frac) << PIO_SM0_CLKDIV_FRAC_LSB) |            (((uint)div_int) << PIO_SM0_CLKDIV_INT_LSB);
Which presumably sets clkdiv to zero, unless this means 65536 e.g. it's used as an init value immediately is incremented / decremented before testing??

Statistics: Posted by DavidPinball — Thu Feb 29, 2024 6:44 pm



Viewing all articles
Browse latest Browse all 5083

Trending Articles