The circuit uses a "Twin Tee" filter along with an opamp to generate a sine wave.
https://www.electronics-tutorials.ws/oscillator/twin-t-oscillator.html
f = 1 / 2 * pi * RC
This simulation was done with a "montecarlo mismatch corner" which aims to test how well the circuit will work as the resistance and transistors change across process corners. Each run is shown in a different colour. If R6 resistor in the Twin Tee filter is too high, the oscillations quickly die out, so it's deliberately undersized at the expense of distortion in the sine wave.
After the project is enabled, you should see a sine wave at around 6.3MHz on analog output pin 0.
There is also a 20 bit digital counter connected to the oscillator output. The top 8 bits are connected to the LEDs. So you should also see the most significant bit flashing every ~6 seconds.
Oscilloscope.
# | Input | Output | Bidirectional |
---|---|---|---|
0 | counter bit 12 | ||
1 | counter bit 13 | ||
2 | counter bit 14 | ||
3 | counter bit 15 | ||
4 | counter bit 16 | ||
5 | counter bit 17 | ||
6 | counter bit 18 | ||
7 | counter bit 19 |
ua | PCB Pin | Internal index | Description |
---|---|---|---|
0 | B5 | 11 | sine out |