Code: Select all
# boot.py: does nothing
Code: Select all
# test24.py: Basic loop timing test
print('\nHello. This is test 24')
from machine import Pin
led2=Pin(26, Pin.OUT)
while True:
led2.on()
led2.off()
The answer is about 77.6kHz. However, I did not get a stable trigger. A little twiddling with the scope revealed why.
I wondered how frequently this happened.
It appears that 1 in 32 cycles are stretched. However, this is not all. I occasionally see:
And I have once captured:
The board is a brand new one with factory firmware, i.e. v1.11-267-gc430567b6-dirty.
I have also seen almost identical behaviour on two other TinyPICO boards with esp32-idf3-20191220-v1.12.bin firmware. In this case the frequency is slightly lower at 74.0kHz and the 'normal' waveform has almost a 50% duty cycle.
Can anybody explain this behaviour?