It begins! (Wren Prototype build log)
- allisonlastname
- Posts: 88
- Joined: 06 Mar 2023
- Location: UK
- Contact:
Re: It begins! (Wren Prototype build log)
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.
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
-
leepivonka
- Posts: 168
- Joined: 15 Apr 2016
Re: It begins! (Wren Prototype build log)
Are the other 4 address lines tied hi or lo?
Re: It begins! (Wren Prototype build log)
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.
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
- allisonlastname
- Posts: 88
- Joined: 06 Mar 2023
- Location: UK
- Contact:
Re: It begins! (Wren Prototype build log)
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
- allisonlastname
- Posts: 88
- Joined: 06 Mar 2023
- Location: UK
- Contact:
Re: It begins! (Wren Prototype build log)
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
- allisonlastname
- Posts: 88
- Joined: 06 Mar 2023
- Location: UK
- Contact:
Re: It begins! (Wren Prototype build log)
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.
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
Re: It begins! (Wren Prototype build log)
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
Bill
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: It begins! (Wren Prototype build log)
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?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
- allisonlastname
- Posts: 88
- Joined: 06 Mar 2023
- Location: UK
- Contact:
Re: It begins! (Wren Prototype build log)
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.
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
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: It begins! (Wren Prototype build log)
allisonlastname wrote:
My next job is access routines for the MAX3100
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?
- barrym95838
- Posts: 2056
- Joined: 30 Jun 2013
- Location: Sacramento, CA, USA
Re: It begins! (Wren Prototype build log)
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.
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)
Mike B. (about me) (learning how to github)
- GARTHWILSON
- Forum Moderator
- Posts: 8773
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: It begins! (Wren Prototype build log)
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.
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?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
- allisonlastname
- Posts: 88
- Joined: 06 Mar 2023
- Location: UK
- Contact:
Re: It begins! (Wren Prototype build log)
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?
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
Re: It begins! (Wren Prototype build log)
allisonlastname wrote:
Just to check, the address lines are valid when phi2 comes up, and the data is latched when it goes down, right?
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
Re: It begins! (Wren Prototype build log)
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.
(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.