Hi
I've been playing with a Pico when I get time, and there is an issue with the PWM.
If I set it for a frequency of 5KHz then I get an actual frequency of 20Hz
Experimenting, if I set the component for a freqency of ~1.288MHz the I can get 5KHz.
Just thought I'd let you know.
Regards
Pico PWM Frequency
-
- Valued Contributor
- Posts: 1147
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 285 times
- Been thanked: 412 times
-
- Valued Contributor
- Posts: 1147
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 285 times
- Been thanked: 412 times
-
- Matrix Staff
- Posts: 1451
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 512 times
- Been thanked: 472 times
Re: Pico PWM Frequency
Hi Iain
Thank you for the report.
I believe I have fixed the frequency for the 10bit PWM.
If you want to use the 10bit, I have attached the modified cal file.
Browse to this location using file explorer, it's hidden by default so just paste the link into your address bar.
save the attached CAL in the above location.
Note: As PWM is 16bit, don't use 8bit set duty as the range will be severely limited.
Thank you for the report.
I believe I have fixed the frequency for the 10bit PWM.
If you want to use the 10bit, I have attached the modified cal file.
Browse to this location using file explorer, it's hidden by default so just paste the link into your address bar.
Code: Select all
C:\ProgramData\MatrixTSL\FlowcodeV10\CAL\PICO
Note: As PWM is 16bit, don't use 8bit set duty as the range will be severely limited.
- Attachments
-
- PICO_CAL_PWM.c
- (4.8 KiB) Downloaded 42 times
Martin
-
- Valued Contributor
- Posts: 1147
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 285 times
- Been thanked: 412 times
Re: Pico PWM Frequency
Hi Martin
Thanks, I'll try that tomorrow. I was using the 10-bit option.
Regards
Thanks, I'll try that tomorrow. I was using the 10-bit option.
Regards
-
- Valued Contributor
- Posts: 1147
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 285 times
- Been thanked: 412 times