now its working :)
[code:1:3f7bf47215]
Const Ctbo0per =(1 / 1000) /(1 /(_xtal / 2)) '0,5ms
Tcb0_ccmp = Ctbo0per
Config Tcb0 = Periodic_int , Prescale = 2 , Run = On
On Tcb0_CAPT Timer_2
Enable Tcb0_CAPT 'or tcb0_int
[/code:1:3f7bf47215]
thank you!
↧