Skip to content

Commit e0155fd

Browse files
WIP: add note about runtime vs max freq
1 parent 5646fc4 commit e0155fd

File tree

1 file changed

+10
-0
lines changed
  • software/glasgow/applet/interface/freq_counter

1 file changed

+10
-0
lines changed

software/glasgow/applet/interface/freq_counter/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
# notes:
33
# - does not play nicely with slow edges or analog signals (e.g: sine wave)
44
# will produce very inaccurate and inconsistent results
5+
# - max runtime is ~89 sec, at which the max freq is ~48 MHz
6+
# - given a max freq of ~100 MHz, the max sensible runtime is ~42 sec
7+
# - given the diminishing returns in precision past a few seconds of runtime, long runtimes aren't actually that helpful
8+
# - a 1 sec runtime will give a precision of +/- 1.000 Hz (max freq of ~4.2 GHz)
9+
# - a 2 sec runtime will give a precision of +/- 0.500 Hz (max freq of ~2.1 GHz)
10+
# - a 5 sec runtime will give a precision of +/- 0.200 Hz (max freq of ~858 MHz)
11+
# - a 15 sec runtime will give a precision of +/- 0.066 Hz (max freq of ~286 MHz)
12+
# - a 20 sec runtime will give a precision of +/- 0.050 Hz (max freq of ~214 MHz)
13+
# - a 30 sec runtime will give a precision of +/- 0.033 Hz (max freq of ~140 MHz)
14+
# - given the crossover, a hard limit of 20 seconds has been put on the runtime
515
#
616

717
import enum

0 commit comments

Comments
 (0)