#CNLohr’s program #dyngraph using #rawdraw for visualizing real-time waveforms reported by #microcontrollers. #electronics
on 02026-06-02#CNLohr has new #CH32V006 porn on his channel, featuring its supposedly 1.7Msps ADC in a TDR use case. Apparently its DMA can schedule future I/Os, apparently even to memory-mapped I/O addresses, and you can control the timing of ADC samples to within a single 48MHz CPU clock cycle, although you can’t sample at 48Msps. The ADC is astonishingly clear, especially when he uses an external quartz crystal to get more precise sample times; the code works on the #CH32V003 ADC but has worse precision, but the ’006 has a problem lacking on the ’003 — a discontinuity in the count at multiples of 512 (large DNL?). Oh and apparently UIAPduino SBCs powered by a CH32V006 are available for ¥290 in Tokyo vending machines? Which also sell Raspberry Pi Pico 2s for ¥1060‽ And, holy shit, he can actually very clearly visualize the reflections back and forth from a roll of coax cable with the opposite end open-circuited. He plots it with debug printfs and his "dyngraph" program. #video #microcontrollers #electronics #hardware
on 02026-06-02