micromite pwm commands


Author Message
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 1903
Posted: 09:56pm 09 Jun 2024      

I don't see that problem on RC5 but do get other odd things with PWM error handling.
> option list
PicoMite MMBasic Version 5.09.00RC5
OPTION FLASH SIZE 16777216
OPTION CPUSPEED  420000 'KHz

> SETPIN gp16, PWM
> PWM 0, 1000, 50
> PWM 0, OFF
> SETPIN gp0, PWM
> PWM 0, 1000, 50
> SETPIN gp16, PWM
Error: Invalid address - resetting


Invalid clock speed - reset to default
> option list
PicoMite MMBasic Version 5.09.00RC5
OPTION FLASH SIZE 16777216

> OPTION CPUSPEED  420000
> SETPIN gp16, PWM
> SETPIN gp0, PWM
Error : Already Set to pin -9067575637245427710
> PWM 0, 1000, 50
> PWM 0, OFF
>