I inserted main loop execution speed formula
which is based on TAR counter.
Question:
I have no idea why same software with same external envirrionmet
has loop execution  time from 250us upto 70ms. I thought initially conditional
breaks, but I am not able to catch similar results!

My software is using USART so 70ms doesn't allow to read
anything from usart ( speed 9600 need 1ms execution time
to read each character in polling mode).


I also noticed, that break withing WDT timer interrupt
doesn't modify __spd variable. Why? Is it possible
that main loop is not executed !?


.comm __spd,4
CheckSpeed:
        mov &TAR, r15
        mov #__spd,r13
        mov @r13,r14
        mov r15,0(r13)
        sub r14,r15
        jc .Lcnt
        inv r15
        inc r15
.Lcnt:
        cmp 2(r13),r15
        jge .Lgtr
        ret
.Lgtr:
        mov r15,2(r13)
        ret

-- 
Pozdrowienia
Robert Seczkowski
rs...@poczta.onet.pl
//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\//\\

--
------------------------
 DOMENY, DOMENY, DOMENY 
 nie zwlekaj, skorzystaj 
 z Super Ceny
 ----------------------- 
 http://www.alpha.pl 

Reply via email to