Search found 13 matches

by Synthron
Thu Dec 16, 2021 9:28 am
Forum: Newbies
Topic: RTI behaving strangely
Replies: 11
Views: 1367

Re: RTI behaving strangely

The WR\ to the memory needs to be separate from the signal to the VIA. Make sure you're observing that. The VIA needs the RS and R/W lines to be valid and stable before the rise of phase 2. I have never seen a VIA come defective when new, even though we used them for 13 years in one of our products ...
by Synthron
Thu Dec 16, 2021 6:36 am
Forum: Newbies
Topic: RTI behaving strangely
Replies: 11
Views: 1367

Re: RTI behaving strangely

BigDumbDinosaur wrote:
From your other topic:

Quote:
0000 - 3FFF = Banked RAM

Why? Banking that range means the stack, among other things. I'll let you figure out the implications.
I know that it is unusual and can be complicated, I had my reasons for that and still have to implement these reasons ;)
by Synthron
Wed Dec 15, 2021 9:41 pm
Forum: Newbies
Topic: RTI behaving strangely
Replies: 11
Views: 1367

Re: RTI behaving strangely

will have a look at that later,

for now I switched the WDC 65C22S for a Rockwell R65C22P and added a pullup-resistor at the /IRQ-Pin, now it works flawlessly, even at higher clockrate

and thanks Wilson for the primer, should've read it more thorough before designing the pcb ^^
by Synthron
Wed Dec 15, 2021 9:26 pm
Forum: Newbies
Topic: RTI behaving strangely
Replies: 11
Views: 1367

Re: RTI behaving strangely

ok, found something out... after back-checking with the 6502-primer here I noticed that /WE should be qualified by Phi2, so that on Phi2=low no write operation would be possible...
I hacked together a small logic circuit out of 2 NAND gates which are first inverting R/W from the 6502 and then ...
by Synthron
Wed Dec 15, 2021 8:58 pm
Forum: Newbies
Topic: RTI behaving strangely
Replies: 11
Views: 1367

Re: RTI behaving strangely

GARTHWILSON wrote:
Since $1A is one of the address bytes and the $80 is lost, it kind of sounds like your ISR is not balancing the stack.
then again, why did the manual approach work?
by Synthron
Wed Dec 15, 2021 8:33 pm
Forum: Newbies
Topic: RTI behaving strangely
Replies: 11
Views: 1367

Re: RTI behaving strangely

on my own SBC I posted a while back (didn't have much time since then but now I'm tackling it again), see http://forum.6502.org/viewtopic.php?f=12&t=6513

I also tried to do something different. basically I tried to RTI to a specific address with the following:


lda #$80
pha
lda #$20
pha
php
rti ...
by Synthron
Wed Dec 15, 2021 7:57 pm
Forum: Newbies
Topic: RTI behaving strangely
Replies: 11
Views: 1367

RTI behaving strangely

Hey everyone,

I'm currently at a loss.... I try to test and play with interrupts, which btw work as intended, but the RTI instruction is behaving strange...

As soon as I try to RTI, the processor is reading the wrong return address and just randomly jumps anywhere... I logged it and at Interrupt ...
by Synthron
Sun Mar 28, 2021 8:45 pm
Forum: Newbies
Topic: My new self-made 65C02 computer
Replies: 14
Views: 2347

Re: My new self-made 65C02 computer

I am every curious about your memory layout and banking, as I am exploring similar issues. I've considered (very briefly) the consequences of swapping bottom RAM including the stack, and decided it's best to avoid doing so, if at all possible.
well, I decided to just try it... in worst-case, I'll ...
by Synthron
Thu Mar 25, 2021 8:09 am
Forum: Newbies
Topic: My new self-made 65C02 computer
Replies: 14
Views: 2347

Re: My new self-made 65C02 computer

This looks really cool! Hoping I can get mine to this point one day. Where do you get that eeprom holder and does it allow you to program it without removing it from the board?

sorry for the late response...

these sockets are called ZIF (Zero Insertion Force) and are there to easily be able to ...
by Synthron
Thu Mar 04, 2021 6:45 pm
Forum: Hardware
Topic: Don't Do What I Just Did
Replies: 22
Views: 2748

Re: Don't Do What I Just Did

working in an electronics company I have seen things only god knows what happened there....

one client specified a schematic and the exact BOM, we made the PCBs accordingly to the BOM and schematic, ordered a prototype and found out they specified smaller parts than they were intended to use. I'm ...
by Synthron
Thu Mar 04, 2021 6:13 pm
Forum: Newbies
Topic: My new self-made 65C02 computer
Replies: 14
Views: 2347

Re: My new self-made 65C02 computer

@jfoucher
as I said, I had these chips lying around and finally wanted to do something with them. I did a lot of dumpster diving once and found these in nearly pristine condition...
I know I already have more IOs than I ever need, but I like to think a bit easier here... PIA ist just output for me ...
by Synthron
Thu Mar 04, 2021 3:36 pm
Forum: Newbies
Topic: My new self-made 65C02 computer
Replies: 14
Views: 2347

Re: My new self-made 65C02 computer

So far I'm just writing libraries and test-codes. PIA library and VIA library (mostly just initializations, timers will come soon) are working as well as a library for the 2x16 character lcd in 4bit mode. I have a connector for a 4x40 char LCD as well, but this is essentially 2 seperate displays in ...
by Synthron
Thu Mar 04, 2021 10:55 am
Forum: Newbies
Topic: My new self-made 65C02 computer
Replies: 14
Views: 2347

My new self-made 65C02 computer

Hey everyone!

I'm currently designing/testing my own 65C02 computer (inspired by Ben Eater) and thought I might post it here.
I wanted something versatile and fun to play with while learning assembly language and the 6502 seemed a good choice becuase of its already big community.

I put a lot of ...