6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Sat Nov 23, 2024 8:12 am

All times are UTC




Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Sat Jun 23, 2018 6:32 am 
Offline

Joined: Thu May 24, 2018 4:48 am
Posts: 12
My understanding of Chris's design is that the 32k SRAM is divided up so half is for the OS, and then the other half is for the ACIA, VIA and the remainder for use as potential I/O space in a future revision. I'm completely new to all this so my grasp of how it all ties together is almost zero, so take everything I say with a grain of salt!

Looking at the topic for NichH93's issue, it sounds very similar as he was also able to run LIST as well but hit a wall when trying use RUN or text strings. Might be worth picking up another 65C02 to test that option out as my first ACIA didn't work as well, but I chalk that up to it being a used eBay item.


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 23, 2018 6:55 am 
Offline
User avatar

Joined: Wed Mar 01, 2017 8:54 pm
Posts: 660
Location: North-Germany
Have you tried to enter a smaller memory count when Basic starts, say 8000 or 4000. Perhaps this will work.


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 23, 2018 6:56 am 
Offline

Joined: Sat Jul 28, 2012 11:41 am
Posts: 442
Location: Wiesbaden, Germany
Then there is another problem as the RAM Test in EhBASIC may trash your IO.
Code:
Ram_base      = $0300   ; start of user RAM (set as needed, should be page aligned)
Ram_top      = $8000   ; end of user RAM+1 (set as needed, should be page aligned)
should be changed to
Code:
Ram_base      = $0300   ; start of user RAM (set as needed, should be page aligned)
Ram_top      = $4000   ; end of user RAM+1 (set as needed, should be page aligned)
However this should not be causing the problems you are seeing.

_________________
6502 sources on GitHub: https://github.com/Klaus2m5


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 23, 2018 7:23 am 
Offline

Joined: Thu May 24, 2018 4:48 am
Posts: 12
Quote:
Have you tried to enter a smaller memory count when Basic starts, say 8000 or 4000. Perhaps this will work.

Just attempted 8000 and 4000 and both would either result in "Memory Size ?" coming up again or system lockup.


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 23, 2018 12:09 pm 
Offline

Joined: Sat Jul 28, 2012 11:41 am
Posts: 442
Location: Wiesbaden, Germany
The "Memory size ?" prompt will be repeated if EhBASIC thinks the number you entered is too small (below RAM_base) or too large (more than 64k). However it uses already quite a lot of its routines including floating point to determine this. Have you verified that the EPROM was correctly programmed?

_________________
6502 sources on GitHub: https://github.com/Klaus2m5


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 23, 2018 12:30 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
Klaus2m5 wrote:
Shouldn't this be a 32k RAM?
creoguy wrote:
My understanding of Chris's design is that the 32k SRAM is divided up so half is for the OS, and then the other half is for the ACIA, VIA and the remainder for use as potential I/O space in a future revision.
The RAM is a 32K chip, but half of the capacity is deliberately unused. That's to simplify the glue logic, I assume.

Basically, the /OE input of the RAM is used as an extra /CS input, and it's driven from address line A14. Of course placing /OE high doesn't really de-select the chip, but it prevents a read from taking control of the data bus -- and that's sufficient. The chip becomes a Write Only Memory anytime A14 is high. That includes $4000-7FFF, which is where I/O appears.


ETA: the same "/OE as an additional /CE" trick is used in Garth's very basic whole-computer schematic. In fact all the glue for memory/I-O is pretty much identical, except Garths' "whole computer in one diagram" design has no ACIA, just a VIA.

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 23, 2018 6:15 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
creoguy wrote:
I did use a 1mHz can oscillator connected to pin 37 of the 65c02.
Hm, the specs for the oscillator seen in the photo fail to confirm it meets the specified input requirement on a WDC CPU. The oscillator only guarantees 2.4V as a logic high, but the PHI2 input supposedly needs at least VDD-0.4V, or 4.6V. (The VIA and ACIA might supposedly require 4.6V, too -- I didn't check.)

There's a very easy experimental remedy. Just add a pullup resistor (470 ohm? 1K?) from the osc output to +5V. I'll be a little surprised if this clock-voltage thing turns out to be the answer we're looking for. But if it works then you can either leave the pullup in place (although it wastes power) or swap in a more appropriate oscillator. Edit: I notice BDD asked about the oscillator earlier.

Edit 2: creoguy, did we confirm that the Phi2 inputs on the VIA and ACIA also connect to the oscillator (not the CPU PHI2O output on pin 39)?

-- Jeff

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
PostPosted: Sat Jun 23, 2018 7:23 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8544
Location: Southern California
Dr Jefyll wrote:
ETA: the same "/OE as an additional /CE" trick is used in Garth's very basic whole-computer schematic. In fact all the glue for memory/I-O is pretty much identical, except Garths' "whole computer in one diagram" design has no ACIA, just a VIA.

The diagram only shows one VIA and no AICAs; but see Note 9 below it. The design allows up to ten I/O ICs with the existing glue logic, and in fact my workbench computer has three VIAs and three ACIAs with this scheme.

I was not able to find a schematic on the OP's linked github pages, to compare. The closest I could find was a text file that apparently KiCAD (sp?) uses to form or interpret a picture, an actual schematic diagram. Maybe there is a picture there somewhere; but this is the top reason I hate github. I never can find what I'm looking for!

_________________
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: Sat Jun 23, 2018 7:28 pm 
Offline
User avatar

Joined: Fri Dec 11, 2009 3:50 pm
Posts: 3367
Location: Ontario, Canada
GARTHWILSON wrote:
I was not able to find a schematic on the OP's linked github pages, to compare.
Hoglet very thoughtfully posted a PDF version here.

Quote:
this is the top reason I hate github. I never can find what I'm looking for!
I get that, too. It's gotten so I won't even try unless it's something pretty important.

Quote:
The design allows up to ten I/O ICs with the existing glue logic
Pretty slick -- especially considering the existing glue logic is next to none!

_________________
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html


Top
 Profile  
Reply with quote  
PostPosted: Sun Jun 24, 2018 3:33 am 
Offline

Joined: Thu May 24, 2018 4:48 am
Posts: 12
Quote:
oscillator seen in the photo fail to confirm it meets the specified input requirement on a WDC CPU

I added the pull-up resistor to the oscillator output and it made no difference.

Quote:
Phi2 inputs on the VIA and ACIA also connect to the oscillator (not the CPU PHI2O output on pin 39)

I moved the PHI2 inputs for VIA and ACIA to the oscillator output with no difference in the systems.

At this point, my plan is to wait for the new parts to come in next week to help rule out an IC issue. If the problem continues I'm going to test it out on a breadboard, not my first choice as it has the potential for its own issues, but at least I can easily test out some different glue logic configurations.

Thanks again for everyone's help! :D


Top
 Profile  
Reply with quote  
PostPosted: Sun Jun 24, 2018 4:01 pm 
Offline
User avatar

Joined: Fri Dec 12, 2008 10:40 pm
Posts: 1007
Location: Canada
creoguy wrote:
Here are the two data sheets. The note was just to head off any questions if I had wired up the AS6C62256 using the pinout of the CY62256N, which would cause all sorts of issues! :D


It shouldn't. /WE, /CE and /OE are in the right places, so are the address and data lines. That the address lines (or data lines for that matter) are labeled differently is immaterial for RAM.

BTW, what is this using as a clock generator? I don't see one on the schematic (but I see an oscillator in the picture)?

Never mind - I found your post on the oscillator.

_________________
Bill


Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 27, 2018 2:51 am 
Offline

Joined: Thu May 24, 2018 4:48 am
Posts: 12
When in doubt, a shotgun approach is always a valid option, even if it's not an elegant one! I got in the CY62256N SRAM chip today and swap it in for the AS6C62256, without changing any of the wiring, and things are now working as expected. That'll teach me to order parts for someone else's design without verifying I'm matching their BOM. The only thing I can think of is the 55ns vs. the 70ns access time was enough of a difference to cause an issue.

Thanks again for everyone's help! :D


Last edited by creoguy on Wed Jun 27, 2018 5:37 am, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 27, 2018 3:53 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8544
Location: Southern California
See this post and the ones following it, regarding speed ratings.

_________________
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: Wed Jun 27, 2018 6:11 am 
Offline

Joined: Thu May 24, 2018 4:48 am
Posts: 12
With some head scratching, I finally got my Cylon assembly code modified to run in EhBASIC! Now that I have a functioning board, let the fun begin!


Attachments:
IMG_7841.gif
IMG_7841.gif [ 11.75 MiB | Viewed 11683 times ]
Top
 Profile  
Reply with quote  
PostPosted: Wed Jun 27, 2018 7:14 am 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10986
Location: England
Congratulations!


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

All times are UTC


Who is online

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