P. 1
201_ASP v8.0

201_ASP v8.0

|Views: 50|Likes:
Published by Nghia Trong Ngo

More info:

Published by: Nghia Trong Ngo on Nov 19, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

01/30/2013

pdf

text

original

bsf PORTA,1

;Set bit 1 of
;PORTA

btfssINTCON,TMR0IF ;Check Timer0
;interrupt flag

;in “INTCON”

;register and
;skip the next
;instruction if
;it is set

goto$-1

;Go to
;previous
;instruction

bcf

PORTA,1

;Clear bit 0 of
;PORTA

RA<1> = 1

TMR0IF = 1
??

RA<1> = 0

YES

NO

©2007 Microchip Technology Incorporated. All Rights Reserved.

Slide 22

201ASP

Reset

code000h
gotoStart

;=========================
int_vectorcode004h

retfie

;return from
;interrupt
;=========================

main_prog

code

Start;start label for main
code

end

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->