Unable to run a program
Re: Unable to run a program
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.
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.
Re: Unable to run a program
Have you tried to enter a smaller memory count when Basic starts, say 8000 or 4000. Perhaps this will work.
Re: Unable to run a program
Then there is another problem as the RAM Test in EhBASIC may trash your IO.should be changed toHowever this should not be causing the problems you are seeing.
Code: Select all
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)Code: Select all
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)6502 sources on GitHub: https://github.com/Klaus2m5
Re: Unable to run a program
Quote:
Have you tried to enter a smaller memory count when Basic starts, say 8000 or 4000. Perhaps this will work.
Re: Unable to run a program
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
Re: Unable to run a program
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.
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
https://laughtonelectronics.com/Arcana/ ... mmary.html
Re: Unable to run a program
creoguy wrote:
I did use a 1mHz can oscillator connected to pin 37 of the 65c02.
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
https://laughtonelectronics.com/Arcana/ ... mmary.html
- GARTHWILSON
- Forum Moderator
- Posts: 8774
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Unable to run a program
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.
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?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: Unable to run a program
GARTHWILSON wrote:
I was not able to find a schematic on the OP's linked github pages, to compare.
Quote:
this is the top reason I hate github. I never can find what I'm looking for!
Quote:
The design allows up to ten I/O ICs with the existing glue logic
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
https://laughtonelectronics.com/Arcana/ ... mmary.html
Re: Unable to run a program
Quote:
oscillator seen in the photo fail to confirm it meets the specified input requirement on a WDC CPU
Quote:
Phi2 inputs on the VIA and ACIA also connect to the oscillator (not the CPU PHI2O output on pin 39)
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!
Re: Unable to run a program
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! 
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
Re: Unable to run a program
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!
Thanks again for everyone's help!
Last edited by creoguy on Wed Jun 27, 2018 5:37 am, edited 1 time in total.
- GARTHWILSON
- Forum Moderator
- Posts: 8774
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Unable to run a program
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?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: Unable to run a program
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!
Re: Unable to run a program
Congratulations!