Timers and Interrupts
Moderators: Chuckt, Garth, bitfogav
Re:
Microcontrollers are more likely than separate microprocessors to have a separate vector for each interrupt source, since it will be known ahead of time what all the possible sources are since they're all on the same piece of silicon. In situations like separate microprocessors where there's not a separate interrupt vector for every possible interrupt, you have to poll the interrupt sources to ask which one cause the interrupt. This might seem like an awful lot of overhead, and indeed we see ridiculously long canned routines printed in ap. notes and programming manuals. However, there's no sense in wasting time polling sources that are not even enabled, and in spite of how many possible interrupt sources there are, or how many features in the I/O/timer ICs you're using, you probably won't be using the interrupt feature of very many of those. I have a 6502 interrupts primer at http://wilsonminesco.com/6502interrupts/ . Enjoy my outdated cartoons.brad wrote:But if I am understanding the post correctly (and I don't think that I am) you have multiple interupts and no matter which one of those is flagged, it just jumps to a certain location in program memory - is that right?
I would have thought that if say external interrupt 1 was flagged, then it would jump to a certain part of the program which would be different to it external interrupt 2 was flagged...
http://WilsonMinesCo.com/ lots of 6502 resources
- brad
- Site Admin
- Posts: 2578
- Joined: Fri Mar 26, 2010 10:30 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Timers and Interrupts
The outdated cartoons are nice and fitting!
I actually got a bit side tracked with your link - I moved on to the Atari Lynx page which is also fantastic! I still have an Atari Lynx I and II so I should look into those tutorials one day too
I actually got a bit side tracked with your link - I moved on to the Atari Lynx page which is also fantastic! I still have an Atari Lynx I and II so I should look into those tutorials one day too
Who is online
Users browsing this forum: No registered users and 3 guests