A PicoMite CSUB to  timestamp pin changes (Manchester code?)


Author Message
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 3429
Posted: 11:32am 15 Jan 2022      

> UPDATE FIRMWARE
PicoMite MMBasic Version 5.07.03RC14
Copyright 2011-2021 Geoff Graham
Copyright 2016-2021 Peter Mather

> setpin 4,pwm1a : setpin 9,fin
> for n=3500 to 4100 step 50 : pause 100 : pwm 1,n,50 : pause 1500 : :? n,pin(9) : next
3500    3500
3550    3539
3600    3600
3650    3628
3700    3699
3750    3750
3800    3788
3850    1925
3900    1939
3950    1974
4000    2000
4050    2019
4100    2050
>

Still something odd. retrying after a CLEAR FLASH seems to have fixed it

> UPDATE FIRMWARE
PicoMite MMBasic Version 5.07.03RC14
Copyright 2011-2021 Geoff Graham
Copyright 2016-2021 Peter Mather

> setpin 4,pwm1a : setpin 9,fin
> for n=3500 to 4100 step 50 : pause 100 : pwm 1,n,50 : pause 1500 : :? n,pin(9) : next

Error : Cannot find a matching FOR

> OPTION DISPLAY 50, 240

> setpin 4,pwm1a : setpin 9,fin
> for n=3500 to 4100 step 50 : pause 100 : pwm 1,n,50 : pause 1500 : :? n,pin(9) : next
3500    2722
3550    3550
3600    3579
3650    3648
3700    3700
3750    3738
3800    3800
3850    3828
3900    3898
3950    3951
4000    3987
4050    4050
4100    4078
>

Thanks for your help.
I will see if it stays that way when I restore the other Options.

Edit
> OPTION SYSTEM SPI GP18,GP19,GP16
> OPTION SYSTEM I2C GP0,GP1
> OPTION CPUSPEED 252000
> OPTION LCDPANEL ILI9341, LANDSCAPE,GP15,GP14,GP13
> OPTION TOUCH GP12,GP11
> GUI CALIBRATE 0, 3912, 3831, -897, -650
> OPTION SDCARD GP22
> OPTION RTC AUTO ENABLE
PicoMite MMBasic Version 5.07.03RC14
Copyright 2011-2021 Geoff Graham
Copyright 2016-2021 Peter Mather

> setpin 4,pwm1a : setpin 9,fin
> for n=3500 to 4100 step 50 : pause 100 : pwm 1,n,50 : pause 1500 : :? n,pin(9) : next
3500    3500
3550    3534
3600    3600
3650    3650
3700    3693
3750    3750
3800    3784
3850    1925
3900    1950
3950    1972
4000    2000
4050    2017
4100    2050
>

Its back to the same /2 above 3800.
I will remove Options to find which one dos it.
Edited 2022-01-15 21:50 by phil99