Generating an interrupt externally
-
- Very interested
- Posts: 237
- Joined: Fri Apr 17, 2009 7:35 pm
- Location: USA
Generating an interrupt externally
Is there any way to trigger an exception externally, like by pulling a 68k pin down or something similar? I would love to have a small momentary switch or button on my development genesis to use as a way to break into a debugger.
my album - last thursday died last week
-
- Very interested
- Posts: 745
- Joined: Sat Dec 15, 2007 7:49 am
- Location: Kazakhstan, Pavlodar
-
- Very interested
- Posts: 2984
- Joined: Fri Aug 17, 2007 9:33 pm
Re: Generating an interrupt externally
All external interrupts working exactly in this way. Check M68k User Manual: Exception Processing section. If you have access to M68k pins (especially interrupts pins...) then you can use it. but it's hardware stuff.powerofrecall wrote:Is there any way to trigger an exception externally, like by pulling a 68k pin down or something similar?
-
- Very interested
- Posts: 237
- Joined: Fri Apr 17, 2009 7:35 pm
- Location: USA
I like the lightgun approach, that's clever.
If I'm reading right, I could throw on a pushbutton switch to ground the BERR pin? Assuming it's not used the schematics suggest it's just being held up anyway. I don't want to cut any pins though.
If I'm reading right, I could throw on a pushbutton switch to ground the BERR pin? Assuming it's not used the schematics suggest it's just being held up anyway. I don't want to cut any pins though.
my album - last thursday died last week
-
- Very interested
- Posts: 60
- Joined: Wed Mar 12, 2014 11:11 pm
- Location: Michigan
- Contact:
-
- Very interested
- Posts: 2984
- Joined: Fri Aug 17, 2007 9:33 pm
No, that's the bus error pin. I'd not use that as the bus error isn't fully recoverable on the 68000. That was the "big" improvement on the 68010 - the bus error was now recoverable so it could be used by an external MMU for memory management. There are details in the 68000/010 hardware reference manual if you're really interested.Jazzmarazz wrote:If it is in fact pulled up, then a switch to ground should work. I don't know what that specific pin is for though. Is that the pin used for the gun data?
The light gun asserts the EXT INT through the controller interface... just enable INT on PB6 (I think, check the source to be sure) and the light gun can assert the proper pin on the controller port.
-
- Very interested
- Posts: 60
- Joined: Wed Mar 12, 2014 11:11 pm
- Location: Michigan
- Contact:
-
- Very interested
- Posts: 237
- Joined: Fri Apr 17, 2009 7:35 pm
- Location: USA
I'm thinking like a little dongle for a controller port might be the way to go (unless I can find a cheap lightgun)
my album - last thursday died last week
-
- Very interested
- Posts: 2984
- Joined: Fri Aug 17, 2007 9:33 pm
If you're even the least bit handy with a soldering iron, hooking a switch to a DB9 connector will be the cheapest thing to do. If you have a decent electronics store in town, it'd probably be less than $2. If you're all thumbs, the lightgun will be safe, but more expensive. However, if you were ever thinking of getting a lightgun, this gives you the perfect excuse to spend the money.