It is my understanding from reading the archives, that if I "poke $8F,%01000000" I slow the clock from 4 to 1 MHZ and this saves a bit of power, and I can expect nap, pause and sleep to be multiplied by a factor of four?
first part of my 14M program
b5=0 'reset picture count
low 1 'Pin 12 shutter low
pause 1000 'allow caps time to charge
poke $8F,%01000000 'Set clock to 1 MHz
pause 5 'allow clock to stabilize
goto start
I went in and divided all my pause settings by 4 and the program behaves the same as it did before the clock speed change. BUT my sleep command is about 4 times too short! Went from four minutes to one minute.
I tweaked it in software and multiplied the variable controlling the sleep by 4 times and it is back to normal.
My sleep variable is set by an adc so I suppose the adc could also be affected by timing, is that possible?
first part of my 14M program
b5=0 'reset picture count
low 1 'Pin 12 shutter low
pause 1000 'allow caps time to charge
poke $8F,%01000000 'Set clock to 1 MHz
pause 5 'allow clock to stabilize
goto start
I went in and divided all my pause settings by 4 and the program behaves the same as it did before the clock speed change. BUT my sleep command is about 4 times too short! Went from four minutes to one minute.
I tweaked it in software and multiplied the variable controlling the sleep by 4 times and it is back to normal.
My sleep variable is set by an adc so I suppose the adc could also be affected by timing, is that possible?