![]() |
Forum Index : Microcontroller and PC projects : PicoMite: PWM - Invalid frequency
Author | Message | ||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Hi Peter, I know this used to work, up until very recently, as I was using this frequency (with volume 0) when I needed to play a "rest" on my handheld: > pwm 2,15.43,0 Error : Invalid frequency Note that 15.43 Hz is the note below bottom-C. Obviously I can "fix" my code but: 1. Is there a reason for this limitation ? 2. When was the limitation added ? I could swear it was working one week and then not the next week without my having updated the firmware inbetween - obviously that isn't what happened, but still ![]() ![]() ![]() Best wishes, Tom Edited 2023-03-19 18:40 by thwill MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
You are running at a greater cpu frequency than before |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
Thanks Peter. You are correct of course and that fixed the problem. I could have sworn I had already tried that already though after I read the source ![]() ![]() ![]() Best wishes, Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
phil99![]() Guru ![]() Joined: 11/02/2018 Location: AustraliaPosts: 2640 |
From the manual. Minimum frequency = (cpuspeed + 1) / (2^24) Hz. Maximum speed is OPTION CPUSPEED/4. At very fast speeds the duty cycles will be increasingly limited. |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7937 |
Welcome to my world.... ;) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |