6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Thu May 23, 2024 4:05 am

All times are UTC




Post new topic Reply to topic  [ 118 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
Author Message
PostPosted: Tue Sep 05, 2023 12:39 pm 
Offline
User avatar

Joined: Mon Mar 06, 2023 9:26 am
Posts: 88
Location: UK
Ok, here's my false-feed testing setup:

The RAM is on the breadboard with all 15 address lines shorted to ground. The control lines are being controlled by an arduino. To read a value, I set /CE low then /OE low, then check the data lines with a multimeter, then put all the control lines high again. To write a value, I connect a data pin to ground, set /CE then /WE low, delay 10ms, then set /WE and /CE high. When reading back, the data line I tried to write to is still high.

The supply voltage is 5.14v and all the control lines are going cleanly between 0 and 5.14v.

_________________
probably the youngest person on this forum


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 05, 2023 2:55 pm 
Offline

Joined: Fri Apr 15, 2016 1:03 am
Posts: 136
Are the other 4 address lines tied hi or lo?


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 05, 2023 6:20 pm 
Offline

Joined: Fri Mar 18, 2022 6:33 pm
Posts: 449
allisonlastname wrote:
The RAM is on the breadboard with all 15 address lines shorted to ground. The control lines are being controlled by an arduino. To read a value, I set /CE low then /OE low, then check the data lines with a multimeter, then put all the control lines high again. To write a value, I connect a data pin to ground, set /CE then /WE low, delay 10ms, then set /WE and /CE high. When reading back, the data line I tried to write to is still high.
That's frustrating! I notice on your schematic the RAM is just labeled "62256." I'm going to hazard a guess that it's an AS6C62256, since that's currently the only 32k*8 through-hole SRAM that Mouser has in stock. I remember a couple of threads where people had trouble with those specific chips:

viewtopic.php?f=4&t=4329
viewtopic.php?f=12&t=7371

It looks like the first thread veered off topic before a solution was found; but I think Adrian did eventually get his working, somewhere deep in that 11 page thread! I think he's still active here, so maybe if you sent him a PM he could give you the short version.

_________________
"The key is not to let the hardware sense any fear." - Radical Brad


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 05, 2023 7:52 pm 
Offline
User avatar

Joined: Mon Mar 06, 2023 9:26 am
Posts: 88
Location: UK
So I found the problem with the testing setup: I had a typo in my pin definitions and I was pulling /OE low when I thought I was pulling /WE low. The chip works, at least. However, the problem persists in the actual computer.

_________________
probably the youngest person on this forum


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 05, 2023 8:11 pm 
Offline
User avatar

Joined: Mon Mar 06, 2023 9:26 am
Posts: 88
Location: UK
The voltage is staying stable across the chip and all the control lines are at the right levels (a few tens of mV from 0 and Vcc)

_________________
probably the youngest person on this forum


Top
 Profile  
Reply with quote  
PostPosted: Tue Sep 05, 2023 9:41 pm 
Offline
User avatar

Joined: Mon Mar 06, 2023 9:26 am
Posts: 88
Location: UK
Good news! I got a 43256 off my dad and that works flawlessly. I wrote a quick program to memcheck zero page and that runs perfectly at full 1Mhz speed, so I feel justified in saying the Wren Prototype is functional and ready for usage.

The 62256 mystery can be left for future me. My current hypothesis is that it's not getting enough power, or something is causing the power supply to do weird things.

_________________
probably the youngest person on this forum


Top
 Profile  
Reply with quote  
PostPosted: Wed Sep 06, 2023 1:04 am 
Offline

Joined: Fri Dec 21, 2018 1:05 am
Posts: 1076
Location: Albuquerque NM USA
This is the third report of 62256 being problematic compared to other equivalent 32Kx8 part. I was curious enough to duplicate a problematic design and procure a batch of 62256 but didn't find the problem. Very curious indeed!
Bill


Top
 Profile  
Reply with quote  
PostPosted: Wed Sep 06, 2023 1:15 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8442
Location: Southern California
I use the 62256 and never had any problem at all, and everything always worked right on first try; but maybe it's because I have not used any from that manufacturer.

_________________
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: Fri Sep 15, 2023 4:57 pm 
Offline
User avatar

Joined: Mon Mar 06, 2023 9:26 am
Posts: 88
Location: UK
Update: SPI seems to be working correctly. My setup uses the VIA's shift register for data out and a 74hc595 for data in, with the parallel pins connected to VIA port B. I connected CB2 to the '595's input and it successfully echoed bytes back to itself.

I haven't set up any interrupt-driven code yet, but I'm fine with busywaiting for the time being. My next job is access routines for the MAX3100, and then a "proper" monitor program.

_________________
probably the youngest person on this forum


Top
 Profile  
Reply with quote  
PostPosted: Fri Sep 15, 2023 6:48 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8442
Location: Southern California
allisonlastname wrote:
My next job is access routines for the MAX3100

Take a look at viewtopic.php?p=90041#p90041 to start.

_________________
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: Thu Sep 21, 2023 9:15 am 
Offline
User avatar

Joined: Sun Jun 30, 2013 10:26 pm
Posts: 1930
Location: Sacramento, CA, USA
GARTHWILSON wrote:
I use the 62256 and never had any problem at all, and everything always worked right on first try; but maybe it's because I have not used any from that manufacturer.

Signetics? Oh, that's the 25120 ... sorry.

_________________
Got a kilobyte lying fallow in your 65xx's memory map? Sprinkle some VTL02C on it and see how it grows on you!

Mike B. (about me) (learning how to github)


Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 21, 2023 9:50 am 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8442
Location: Southern California
barrym95838 wrote:
GARTHWILSON wrote:
I use the 62256 and never had any problem at all, and everything always worked right on first try; but maybe it's because I have not used any from that manufacturer.

Signetics? Oh, that's the 25120 ... sorry.

Well, because of a boss I had in the late 1980's who was unreasonably obsessed with cutting costs, we in the engineering department joked that we could save a lot by eliminating the I/O from a computer design.  As a bonus, the customer would never discover any bugs.

Not too distantly related but more reasonable, I wouldn't mind having STA #, STX #, and STY # instructions for self-modifying code, where the operand space becomes the variable space, rather than an address pointing to the variable.

_________________
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: Thu Nov 16, 2023 11:55 pm 
Offline
User avatar

Joined: Mon Mar 06, 2023 9:26 am
Posts: 88
Location: UK
After a prolonged break due to starting university, I'm back and ready to computer.

My current goal is to give the computer a way to talk to the outside world. I was gonna use the MAX3100 for this, but it seems to have disappeared during the move. In lieu of it, I'm going to use an atmega88, which will also serve as a monitor and control thing. I'll probably have it log the bus state and then also pretend to be a simple memory mapped UART.

Just to check, the address lines are valid when phi2 comes up, and the data is latched when it goes down, right?

_________________
probably the youngest person on this forum


Top
 Profile  
Reply with quote  
PostPosted: Fri Nov 17, 2023 7:05 am 
Offline
User avatar

Joined: Mon Aug 30, 2021 11:52 am
Posts: 269
Location: South Africa
allisonlastname wrote:
Just to check, the address lines are valid when phi2 comes up, and the data is latched when it goes down, right?
Yup, that's exactly it:
Attachment:
6502Timings.png
6502Timings.png [ 33.34 KiB | Viewed 401706 times ]
Just a reminder that you control when PHI2 rises and falls (by selecting a clock frequency) so if your clock is too fast the address lines will not yet be valid when PHI2 rises. That only starts becoming a problem around 40MHz* so probably not a worry.

That also means you can start doing address decoding as soon as PHI2 falls and it should have settled by the time you use it (when PHI2 rises or later).

*Assuming a modern W65C02S6TQG-14 or similar


Top
 Profile  
Reply with quote  
PostPosted: Fri Nov 17, 2023 3:17 pm 
Offline
User avatar

Joined: Thu Dec 11, 2008 1:28 pm
Posts: 10802
Location: England
I think I'd say that the address lines are generally, usually, probably, valid at the time phi2 rises. In fact they are usually valid some time before, as the diagram indicates, and that's often useful. For example a write enable is often derived from phi2, so that writes are not directed to the wrong chip or the wrong address. In that case, phi2 is used because it's convenient - it probably won't be optimal.

(I'm not sure if I'm merely being pedantic, or if in fact confusion about Phi2's rising edge might lead to some mistake, or to further confusion down the line.)

The best timing diagrams, I think, have little arrows to show causality - not just that this thing happens after this other thing, which might otherwise be coincidence, but that it is caused by it.


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

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: