6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu May 09, 2024 5:19 pm

All times are UTC




Post new topic Reply to topic  [ 80 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
 Post subject: Re: 65c816 "Core"
PostPosted: Mon Sep 27, 2021 3:35 am 
Offline

Joined: Thu Mar 18, 2021 8:11 am
Posts: 28
This is a bit of a tricky problem: Should I put the IRQ# lines from the RTC and the UART into the control lines of the 65C22s or should I have them go into, say, a 74LVC21 that outputs direct to the IRQ# input of the microprocessor? I already have the SD detect switch go to CA1 on VIA1 but that's a special case because I'm thinking of flipping its CA1 control from positive-edge to negative-edge and vice versa depending on what the switch state is.


Top
 Profile  
Reply with quote  
 Post subject: Re: 65c816 "Core"
PostPosted: Mon Sep 27, 2021 10:32 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10800
Location: England
If you route the interrupts through the VIA's pins, you get some control of which ones are active or not, and can switch between interrupt-oriented and polling for the various devices. Sounds like a win, if you have the VIA, and enough free inputs.


Top
 Profile  
Reply with quote  
 Post subject: Re: 65c816 "Core"
PostPosted: Mon Sep 27, 2021 8:00 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8432
Location: Southern California
The RTC and UART allow turning off interrupts at the source, right? But the VIA's CA1, CA2, CB1, and CB2 are only edge-triggered for interrupts, not level-sensitive, probably meaning you won't want to put more than one interrupt source on each of these pins. There might be a good reason to run the peripherals' interrupt output lines into IRQ\ instead. Additional hardware can be used to read what the source of the interrupt is, if you don't want to poll each device in software. The software polling is often done taking a lot more cycles than necessary though, checking all interrupt sources even if most of them aren't even enabled at the moment, and not going in the best order ("best order" being that you first poll the devices that are most likely to cause an interrupt, or the ones that would be most urgent to service).

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
 Post subject: Re: 65c816 "Core"
PostPosted: Mon Oct 04, 2021 11:51 pm 
Offline

Joined: Thu Mar 18, 2021 8:11 am
Posts: 28
Well, I had to change out a few of the discrete logic chips because they were either non-existent or didn't have a through hole version. I'll do some timing calculations and if it works out, I'll post a new thread about what I'm making in the Hardware section I guess?


Top
 Profile  
Reply with quote  
 Post subject: Re: 65c816 "Core"
PostPosted: Tue Oct 05, 2021 9:47 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10800
Location: England
Sounds great!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 80 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: