Dmitry Kiryashov wrote: > > Hi guys. > > I have a simple question for you. > > Sometimes it is required to read TMR1 on fly. > In my case TMR1 prescaler=1 and I do it in > such way: > > MOVFW TMR1H ;it is applicable > MOVWF SAV_TMR1H ;for both 12xxx & > DECF TMR1L,W ;16xxx families > MOVWF SAV_TMR1L ;i guess... > DECF SAV_TMR1L,F ; or ,W > > Is there another techniques to read or syncro- > nize with TMR1 (for instance prescaler value > may be different) > > I'll very appreciate if someone will show me > another way of doing that ;-) > > WBR Dmitry. Here is another way to read on fly TMR1 with presc=4. MOVFW TMR1H MOVWF SAV_TMR1H MOVFW TMR1L MOVWF SAV_TMR1L MOVFW TMR1L XORWF SAV_TMR1L,W SKPNZ DECF SAV_TMR1L,F I still se no people that are interested to discuss this stuff ;-) WBR Dmitry.