It's the right place to change the gate time, no need for other changes. Now the gate time is 200 ms, which is more than enough for the rest of the code to do its thing. If you want to experiment with other gate times, the formula to calculate the value to enter into sm0.put(x) is:For example, to get the gate time of 100 ms when using the 250 MHz clock (MFREQ) it would be:so you'd use:
As a side note, I should really get to uploading the newer, more refined version, shouldn't I?
Code:
x = state machine frequency * gate time (in seconds)
Code:
x = 250e6 * 0.1 = 25e6
Code:
sm0.put(25e6)
As a side note, I should really get to uploading the newer, more refined version, shouldn't I?
Statistics: Posted by horuable — Fri Feb 23, 2024 9:20 am