I have a small problem here... I am building a flash source in BASCOM. Most of it works fine, except for the Timer0. For some reason (I am guessing the chip definition file was botched) I cannot configure the Timer0 in 16-bits free-running counter using BASCOM statements...
Here is what my code looks like:
Config Pina.4 = Input Config Timer0 = Counter , Edge = Rising .... Tcnt0h = 0 : Tcnt0l = 0 Do ' Wait until 400 cycles have passed Loop Until Tcnt0l => &H90 And Tcnt0h = &H01
Now although this should work fine, it does not, as I said probably the chip def file that's broken.
Could anyone point me in the right direction about initializing Timer0 in free-running 16-bits Timer mode in assembly?