My first post here in 6502.org (just joined). I've just built a little SBC (project name Pluto
Now I want to connect a R6551 so I can have serial communication and I want that to be interrupt driven. The R6551 IRQ line is, if I understand correctly, open drain, i.e. you connect a resistor to +5V and the IRQ pin on the 6551 and then to the 6502. The WDC65C22S does not work like that and I don't know how to connect these three so they play nicely together. The datasheet of the WDC65C22S mention a diode between +5V (or GND?) and the IRQ line and then to the CPU? It's a bit confusing to me.
Is it supposed to look like this:
Code: Select all
+5V ---diode--|----->IRQ (65C22S)
|----->IRQ (65C02)
+5V ---3kOhm--|----->IRQ (6551)
v
GND
Code: Select all
+5V --3kOhm-|-diode--->IRQ (65C22S)
|--------->IRQ (65C02)
|--------->IRQ (6551)
v
GND
Please, someone, shed some light over this.
Regards,
Johan