Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/21/02 02:50
Read: times


 
#29457 - RE: My first attempt at using interupts
So each "interupt vector" is a place in eeprom/flash where you would write code for that routine? How much space is availble before your interupt's ass end goes into the beginning of the next one?

The reason I ask is because writing enough code to measure out the input from an IR sensor will be significant. I'm afraid I might pass over into some other code.

Donatas M wrote:
-------------------------------
Interupt vector is adress where your program will jump after interupt has been trigered.
For 5'th interupt it is 5Bh. So you should write something like that:

ORG 5Bh
' do what you want in interupt
RETI

If your interrupt routine is long, insert only jump to the routine, otherwise it can overlap other interupt vectors space!

About flag. Usaly flag is bit to indicate saomething has hapened. In your case, flag will be SET after INT5 has been trigered and program will jump to interrupt vector. If you will not clear interupt flag, after RETI program will jump again to INT5 interupt vector, thinking, that it was trigered again.

Yep... begining sometimes is hard... ;)


List of 13 messages in thread
TopicAuthorDate
My first attempt at using interupts :-(            01/01/70 00:00      
RE: My first attempt at using interupts            01/01/70 00:00      
RE: My first attempt at using interupts            01/01/70 00:00      
RE: My first attempt at using interupts            01/01/70 00:00      
RE: My first attempt at using interupts            01/01/70 00:00      
RE: My first attempt at using interupts            01/01/70 00:00      
RE: My first attempt at using interupts :-(            01/01/70 00:00      
RE: My first attempt at using interupts            01/01/70 00:00      
RE: My first attempt at using interrupts            01/01/70 00:00      
RE: My first attempt at using interupts            01/01/70 00:00      
RE: more            01/01/70 00:00      
RE: My first attempt at using interupts            01/01/70 00:00      
RE: My first attempt at using interupts            01/01/70 00:00      

Back to Subject List