uWFG-Pico/README.md

18 wiersze
1.5 KiB
Markdown
Czysty Zwykły widok Historia

2021-12-31 12:01:41 +00:00
# uWFG-Pico
2021-12-31 12:50:40 +00:00
Inspired by a description of an [Arbitrary Waveform Generator](https://www.instructables.com/Arbitrary-Wave-Generator-With-the-Raspberry-Pi-Pic/) I decided to try something similar myself. The [uSDR-Pico](https://github.com/ArjanteMarvelde/uSDR-pico) project focused on getting to know the Pico, especially the multi-core feature, this project will focus on using PIO and DMA.
2021-12-31 12:25:01 +00:00
![Prototype](doc/Proto.jpg)
2021-12-31 12:50:40 +00:00
The prototype provides two channels with 8 bit resolution, on which waveforms (sample files) can be played independently. The maximum sample frequency is the system clock, so on a Pico this is by default 125MHz. This obviously sets a limit to the maximum waveform frequency, in the sense that it will be a tradeoff with desired accuracy. If a sample file defining a single wave has a length of 25 samples, the maximum *wave* frequency is 125/25 = 5MHz. The sample clock can also be lowered, so for a minimum frequency both file length and clock divider must be tuned.
2021-12-31 12:32:49 +00:00
2021-12-31 12:44:22 +00:00
Still, the performance is quite remarkable, and mostly limited by the implementation of the R-2R ladder network on the digital output. Stray capacitance together with the used resistor values and maybe some inductance will act as a low-pass filter, in case of the prototype maxing output to about 10MHz.
2021-12-31 12:32:49 +00:00
![1MHz](doc/SQ-1MHz.jpg)
Above image shows 1MHz square waves on both output channels. It must be noted that the R value in the ladder networks is 0.5k in channel A and 1k in channel B, nicely showing the low-pass effect.
2021-12-31 12:01:41 +00:00
2022-01-02 09:29:16 +00:00
![Proto-schematic](doc/Proto-schematic.gif)
2021-12-31 12:01:41 +00:00
2022-01-01 16:04:17 +00:00
2022-01-02 09:28:23 +00:00