6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu Nov 21, 2024 10:41 pm

All times are UTC




Post new topic Reply to topic  [ 76 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6  Next
Author Message
PostPosted: Mon May 16, 2022 10:05 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10985
Location: England
Does your system now work, Terrance?


Top
 Profile  
Reply with quote  
PostPosted: Mon May 16, 2022 2:10 pm 
Offline

Joined: Sat Feb 19, 2022 10:14 pm
Posts: 147
BigEd wrote:
Does your system now work, Terrance?

Yes. Thanks.

And it worked from the start with the second set of code from my original post. This post wasn't about trying to get my hardware to work, I'd already managed that. I was trying to understand if the logic I used was doing what I thought it was.

Adrien showed in the first reply that it wasn't the same and that RAM_CS was active when writing to ROM. That's good to know, but not an issue in my system. I was happy to leave it there, but luckily others continued to comment. I've learned a lot more in the process. Everyone has helped expand my knowledge.


Top
 Profile  
Reply with quote  
PostPosted: Mon May 16, 2022 3:02 pm 
Offline

Joined: Sat Feb 19, 2022 10:14 pm
Posts: 147
BigDumbDinosaur wrote:
If you have to monkey with minimization settings just to get the design to fit you are on the ragged edge with the GAL.

Good to know.

BigDumbDinosaur wrote:
You are wasting GAL resources on unnecessary functions. There is no need whatsoever to use the GAL to handle a couple of IRQs.

Yes, but if they are there for the taking, why not use them?

BigDumbDinosaur wrote:
Another consideration is the GAL’s outputs when high will be at TTL levels, not CMOS. That is not high enough to make it unambiguous to the 816 that IRQ is quiescent. Can you say “spurious interrupts?”

Yeah, I had noticed the PLD was only outputting 4V high. I'm not super happy about it. I'll keep an eye on it, but at this point I'm liking the flexibility I gained quite a bit.

BigDumbDinosaur wrote:
Using the GAL to generate an out-of-phase clock is not a good idea. As I said in an earlier post, CLKB will be skewed relative to Ø2 by as much as the GAL's tPD. Additionally, CLKB’s high phase will be at TTL levels, not CMOS. I suggest you use a flop in your clock generator to produce Ø1 and Ø2 to get rid of the skew, as well as produce a CMOS level high phase.

Yes, I got some flip/flops to test this idea. Haven't got to it yet though. But using it will likely impact the features I can include in my design. Originally, I was using a 65C02 with a single chip address decoder and two VIAs, two ACIAs, a 3-input AND for the IRQs, and two other chips for USB serial and keyboard interface. This fit nicely on a 100x100 mm PCB. Moving to the 65816, I add at least two chips for the bank address latch and data bus buffer, and likely a larger SRAM. But I had no space on the PCB, see attached image. Something has to give. Right now I don't know what it will be.

BigDumbDinosaur wrote:
You are stubbornly :D insisting on using negative logic in your output equations. That is costing you in PTs and is likely part of the reason why you are having to use QM minimization to get the design to fit.

I wouldn't say I'm stubbornly insisting on using negative logic, but I do admit struggling with the alternative. But I'm always up for a challenge. I compiled a positive logic version of my code and according to the WINCUPL DOC file it uses the exact same number of product term as the negative logic. I suppose there is more to it than that. If not then perhaps WINCUPL has been able to optimize my code in some way. I've attached the PLD (as txt files) and DOC files for anyone that's interested.

As for the use of minimization, does its use result in some inferior result? If not, I'm back where I was, why not use what's available, realizing of course, as you point out, that I'm on the ragged edge.


Attachments:
pos_logic.txt [942 Bytes]
Downloaded 86 times
neg_logic.txt [931 Bytes]
Downloaded 92 times
pos_logic.doc [9.21 KiB]
Downloaded 79 times
neg_logic.doc [9.21 KiB]
Downloaded 88 times
File comment: 65C02 SBC
6502_sbc-1-768x755.png
6502_sbc-1-768x755.png [ 226.93 KiB | Viewed 25421 times ]
Top
 Profile  
Reply with quote  
PostPosted: Mon May 16, 2022 4:00 pm 
Offline

Joined: Fri Dec 21, 2018 1:05 am
Posts: 1117
Location: Albuquerque NM USA
I’m late to the discussion. I’ll pleased to hear that GAL can drive output to 4V, that’s definitely CMOS level.

CPLD can certainly reduce your board size to 100mmX100mm, so can PLCC packages for 65816, 6551, and 6522.
Bill


Top
 Profile  
Reply with quote  
PostPosted: Mon May 16, 2022 4:23 pm 
Offline

Joined: Sat Feb 19, 2022 10:14 pm
Posts: 147
plasmo wrote:
CPLD can certainly reduce your board size to 100mmX100mm, so can PLCC packages for 65816, 6551, and 6522.

A good idea that I've eyed before but since I'm already a poster child for BigEd's So many ways for projects to go wrong post, I think I might save this one for another build.


Top
 Profile  
Reply with quote  
PostPosted: Mon May 16, 2022 6:04 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8504
Location: Midwestern USA
tmr4 wrote:
Yes, I got some flip/flops to test this idea. Haven't got to it yet though. But using it will likely impact the features I can include in my design...

What plasmo said. The PLCC version of the 65C816 uses about 60 percent of the space used by the DIP version. Furthermore, the PLCC version has two VCC and three Gnd connections, features that will improve system stability and freedom from ground bounce.

All WDC devices are available in PLCC. If you use PLCC you’ll gain some breathing space on your PCB. Also, you might want to take a look at SOIC packages for other discrete parts. SOIC can be manually soldered and takes about half the space of the same part in DIP. That 100 × 100 PCB has a lot more room than you think. You can cram quite a bit of hardware into 15+ square inches. Ask Garth about it. :D

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Mon May 16, 2022 6:32 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8504
Location: Midwestern USA
plasmo wrote:
I’ll pleased to hear that GAL can drive output to 4V, that’s definitely CMOS level.

However, you can't rely on that behavior because it is technically out-of-spec for the 22V10.

The guaranteed VOH for Microchip’s SPLD products is 2.4 volts with IOH at 4 mils. The theoretical maximum for VOH is 3.4 volts, but that is only achievable with very light loading. While a CMOS device draws virtually no input current when quiescent, that is not the case as its input changes state. Plus the GAL has to charge parasitic capacitance on a low-to-high transition, which constitutes additional loading. Therefore, a conservative designer would assume VOH will only meet the manufacturer’s minimum.

Of course, in a hobby unit in which property, life and limb won’t be in peril if something goes kaput there is no harm in operating outside of published specs—other than accidentally letting out the magic smoke. :D

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Mon May 16, 2022 6:35 pm 
Offline

Joined: Sat Feb 19, 2022 10:14 pm
Posts: 147
BigDumbDinosaur wrote:
What plasmo said. The PLCC version of the 65C816 uses about 60 percent of the space used by the DIP version...

Ok, maybe I'll bite. BigEd can print up a "Failure to Proceed" poster with my picture on it.

I'll have some research to do though. I bought a PLCC socket sometime ago just for the fun of it, but I don't see how I could possibly solder it to a PCB.


Top
 Profile  
Reply with quote  
PostPosted: Mon May 16, 2022 6:57 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10985
Location: England
Hee hee. It would be a less wonderful world, I think, if there were only one acceptable design. So I advise considering carefully what the tradeoffs are, and what your own priorities are.

It can be particularly difficult to navigate exactly what datasheets say, and what they don't say, and to figure out how strictly to take them: knowing, as we do, that we're probably not operating with worst-case parts in worst-case conditions with high stakes. As BDD notes, our employment, or people's lives, generally do not depend on our hobby constructions. The tradeoffs are mainly about the risk of difficult debugging or unreliable operation. (If unreliable means it crashes within seconds, that's probably a problem. But if it crashes every few weeks of runtime, well, in many cases we might never notice.)


Last edited by BigEd on Mon May 16, 2022 7:21 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Mon May 16, 2022 7:00 pm 
Offline

Joined: Sat Feb 19, 2022 10:14 pm
Posts: 147
BigDumbDinosaur wrote:
Of course, in a hobby unit in which property, life and limb won’t be in peril if something goes kaput there is no harm in operating outside of published specs—other than accidentally letting out the magic smoke. :D

Yeah, I guess you can say I'm building to typical vs minimums. I've been blasted by some elsewhere for a design that's not technically to spec, but I'm not doing product design here or creating how-to videos. This is more about the journey for me. I want to know the technical considerations, but I'm ok with typical or actual specs, if the chips work for what I'm doing.

I know a lot of folks here are doing serious development, but for me, when (if ever) I'm done I'll likely move on to something entirely different and never pick the thing up again. After all, the smart display and PS/2 controller I'm using are in many ways significantly more powerful than either the 65C02 or 65C816. And there are much better hobby alternatives if all I cared about was processing power or getting things done.


Top
 Profile  
Reply with quote  
PostPosted: Mon May 16, 2022 8:36 pm 
Offline

Joined: Sat Feb 19, 2022 10:14 pm
Posts: 147
BigEd wrote:
Hee hee. It would be a less wonderful world, I think, if there were only one acceptable design. So I advise considering carefully what the tradeoffs are, and what your own priorities are.

One thing about going to PLCCs is that my build edges even closer to being a W65C816SXB development board clone, which is kind of in the opposite direction of your comment. But such a shift does open the door to, why not surface mount everything else on the board and then, why not have the PCB fabricator populate everything as well. Maybe not a bad idea. I've done plenty of soldering in my life and don't really need to focus on that part of the experience.

BigEd wrote:
The tradeoffs are mainly about the risk of difficult debugging

While frustrating, I probably get the most enjoyment from tracking down such bugs. And while I'm pleased when things work on the first try, I kind of miss that I didn't have an opportunity to troubleshoot something.


Top
 Profile  
Reply with quote  
PostPosted: Mon May 16, 2022 8:45 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8504
Location: Midwestern USA
tmr4 wrote:
BigDumbDinosaur wrote:
What plasmo said. The PLCC version of the 65C816 uses about 60 percent of the space used by the DIP version...

Ok, maybe I'll bite. BigEd can print up a "Failure to Proceed" poster with my picture on it.

Or, maybe you’ll luck out and it will fly on the first try. If a goal is cost-containment then it’s patent using the smallest parts you can comfortably handle will result in a smaller PCB, which will cost less to make. I went the PLCC route for that reason, as well as the possibility of shorter circuit paths that tend to favor higher clock speeds.

Quote:
I bought a PLCC socket sometime ago just for the fun of it, but I don't see how I could possibly solder it to a PCB.

Huh? PLCC sockets, at least the kinds I've used, have their pins on a 0.100 × 0.100 grid. I can readily solder one, and I’m nearly blind in the left eye.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Mon May 16, 2022 9:26 pm 
Offline

Joined: Sat Feb 19, 2022 10:14 pm
Posts: 147
BigDumbDinosaur wrote:
If a goal is cost-containment then it’s patent using the smallest parts you can comfortably handle will result in a smaller PCB, which will cost less to make. I went the PLCC route for that reason, as well as the possibility of shorter circuit paths that tend to favor higher clock speeds.

My original goal was to build something similar to the attached image. Things morphed after I discovered that the keypad was too limiting. But I've always kept to a handheld design and thus small PCB.

BigDumbDinosaur wrote:
Huh? PLCC sockets, at least the kinds I've used, have their pins on a 0.100 × 0.100 grid. I can readily solder one, and I’m nearly blind in the left eye.

Ok, just googled, I suppose you're referring to a through hole socket. I didn't see those before. I bought a surface mount socket. Or are you saying that you solder those? If so, more power to you. I couldn't do it without melting the socket.


Attachments:
File comment: MOnSter 6502 handheld interface – by Monster6502.com
io1a.png
io1a.png [ 1.02 MiB | Viewed 25384 times ]
Top
 Profile  
Reply with quote  
PostPosted: Mon May 16, 2022 9:59 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8543
Location: Southern California
There are even wire-wrap PLCC sockets, although they're becoming awfully hard to find.
Attachment:
WW_PLCC_44.jpg
WW_PLCC_44.jpg [ 13.3 KiB | Viewed 25381 times ]

Attachment:
WW32PLCCsocket.jpg
WW32PLCCsocket.jpg [ 26.38 KiB | Viewed 25381 times ]

A display that's more compact, more capable (being dot-matrix), easier to interface (being synchronous-serial), but also more expensive than what's in your picture is the Broadcom/Avago line. See https://www.broadcom.com/products/leds- ... s-displays, and be sure to click on "Show More Results" at the bottom to keep loading more. They come in different LED colors and different numbers of characters, are top-to-bottom and end-to-end stackable (and the serial-out of one can feed the serial-in of the next one in the daisychain, and they fit in .300" DIP sockets.

Attachment:
AvagoDotMatrixLED.jpg
AvagoDotMatrixLED.jpg [ 45.55 KiB | Viewed 25381 times ]

_________________
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  
PostPosted: Tue May 17, 2022 1:09 am 
Offline

Joined: Sat Feb 19, 2022 10:14 pm
Posts: 147
GARTHWILSON wrote:
A display that's more compact, more capable ...

For my build, the segmented display went out with the keypad. After trying out several different character displays, I decided I wanted something much more capable. I went with a 4D Systems smart display (I attached an image with it towards the bottom of page 1). It's pricey and actually in many ways much more capable than the system I'm building. But the 65xx processors can spit out data faster than the display can process, so that's something.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 12 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: