piclist 2001\01\03\131823a >
Thread: Timer 0
www.piclist.com/techref/microchip/time.htm?key=time
flavicon
face BY : Dan Michaels email (remove spam text)



At 01:05 PM 1/3/01 -0500, you wrote:
>I'm confused.
>
>I've set timer0 to run, and I'm polling as follows for the T0IF bit.
>
>Comm_Bit_Loop:
>        btfss   INTCON,T0IF             ;Check for timer hitting zero
>        goto    Comm_Bit_Loop           ;If not, then keep looping
>
>It appears that the int flag is never set.
>Ints are disabled, but I thought I read that the int flag would still be
>set on rollover.
>

Maybe:

       bcf     INTCON,T0IF
       .
       .
       .
Comm_Bit_Loop:
       btfss   INTCON,T0IF             ;Check for timer hitting zero
       goto    Comm_Bit_Loop           ;If not, then keep looping
       bcf     INTCON,T0IF
       .
       .


BTW, don't try this on scenix.

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


<1.5.4.16.20010103111240.30efa134@pop.dnvr.uswest.net>

See also: www.piclist.com/techref/microchip/time.htm?key=time
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Timer 0

month overview.

new search...