I want to achieve Interrupt-like behaviour at fixed 5-50mS intervals (not accurately). I think this may be achieved using Timer1 but I can't find any description of this having been done previously. I think it should be possible to load a value in Timer1 then watch for overflow using a separate task. I appreciate that the overflow won't generate an interrupt directly but the 2nd task should spot it soon enough, I'm hoping.
I have tried (and failed so far) to understand use of peek/pokesfr to do that but so far only in the Simulator. Does peeksfr work in the simulator?
The objective is to reduce the brightness of an OLED by rapid on/off switching of the display. I have already used "254,19" to switch off the internal power of the OLED but it's still too bright for a bedroom clock, I've been told.
Another possible approach would be to use a spare PWM from a connected 14M2 to generate real interrupts on an input pin. Would that be simpler?
Derek
I have tried (and failed so far) to understand use of peek/pokesfr to do that but so far only in the Simulator. Does peeksfr work in the simulator?
The objective is to reduce the brightness of an OLED by rapid on/off switching of the display. I have already used "254,19" to switch off the internal power of the OLED but it's still too bright for a bedroom clock, I've been told.
Another possible approach would be to use a spare PWM from a connected 14M2 to generate real interrupts on an input pin. Would that be simpler?
Derek