-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
I've added following PWM output with 50% duty cycle to the code and i got squarewave output for calibration and testing. PWM signal generating is offloaded to the hardware, so it should not interfere with logic analyzer functionality in any way:
pinMode(3, OUTPUT);
analogWrite(3, 127);
If we add some ifndefs, we can make sure, it will always run only on unused pins no mater what MCU we use.
Also it's possible to set various frequencies, so maybe we can have different freqs at different unused pins:
============================================
|| Frequency [Hz] || Prescaler || Setting ||
============================================
|| 31373.55 || 1 || 0x01 ||
|| 3921.57 || 8 || 0x02 ||
|| 980.39 || 32 || 0x03 ||
|| 490.20 || 64 || 0x04 ||
|| 245.10 || 128 || 0x05 ||
|| 122.55 || 256 || 0x06 ||
|| 30.64 || 1024 || 0x07 ||
============================================
Metadata
Metadata
Assignees
Labels
No labels