Single 6522 for a few applications
Posted: Sun Oct 10, 2021 8:39 pm
[ Version2 of this board is now on a new topic located here: viewtopic.php?f=12&t=6868 ]
Hello everyone, my name is Chad, I'm very new here, this is my first big post (besides the Intro topic).
This will be my first computer. I'm designing a 65C02 uP + 62256 SRAM + 28C256 EEPROM+ 65C22 VIA computer, probably clocked around 1 MHz. My guidebook has been Garth's "potpourri" page:
https://www.wilsonminesco.com/6502primer/potpourri.html
With a configuration very similar to this one, I'm wanting to interface the 6522 with:
1) A 20+ button keyboard (16 plus some more for controls/options/etc)
2) A larger 128x64 LCD, 8-bit parallel input if at all possible for speed purposes.
3) A SPI interface for an SD card.
The keys could be put into whatever column-row configuration that is most efficient. 4x5 is easy but 2x10 is possible I think. I'm not picky about 20 keys exactly, but definitely 16 at absolute minimum.
I've been reading that PB's shift register won't work with the SPI interface (easily) and Garth's page recommends using PA to "big-bang".
I see also that the 128x64 parallel LCD's I'm looking at have 20 pins on them, though not all should be used. Here is something I'm looking at, there are a ton of these things, but this is just a basic idea to get us on the same page:
https://www.winstar.com.tw/products/gra ... aphic.html
So 8x Data pins, 2x Column Select pins, 1x Data/Instruction pin, 1x Enable pin, I think the rest do not need to be connected to the 6522.
Lets do a running total:
SPI -> 4 pins
LCD -> 12 pins
Keys -> 4 input pins, 5 output pins. Garth has a 16 key 4x4 configuration.
So, 4 + 12 + 4 = 20 pins, which is just at the max of the 6522.
An alternative is to write to the LCD using SPI or some other serial method, but I fear it not refreshing very well. I have zero experience with them, besides that my TI-83 has a quite terrible refresh rate. I'm wanting to be able to use it for small video games or demos, so the refresh rate is very important.
Recommendations about what should go where? SPI and Keys on PA, while LCD goes to PB? Would the shift register in PB be useful for serial LCD data transfer?
Lastly, I have never used a 6522, but by Garth's suggestion I'm trying to implement it in my design. It is an incredibly power IC but I don't know how to harness that all yet.
Thank you all for any suggestions!
Chad
Hello everyone, my name is Chad, I'm very new here, this is my first big post (besides the Intro topic).
This will be my first computer. I'm designing a 65C02 uP + 62256 SRAM + 28C256 EEPROM+ 65C22 VIA computer, probably clocked around 1 MHz. My guidebook has been Garth's "potpourri" page:
https://www.wilsonminesco.com/6502primer/potpourri.html
With a configuration very similar to this one, I'm wanting to interface the 6522 with:
1) A 20+ button keyboard (16 plus some more for controls/options/etc)
2) A larger 128x64 LCD, 8-bit parallel input if at all possible for speed purposes.
3) A SPI interface for an SD card.
The keys could be put into whatever column-row configuration that is most efficient. 4x5 is easy but 2x10 is possible I think. I'm not picky about 20 keys exactly, but definitely 16 at absolute minimum.
I've been reading that PB's shift register won't work with the SPI interface (easily) and Garth's page recommends using PA to "big-bang".
I see also that the 128x64 parallel LCD's I'm looking at have 20 pins on them, though not all should be used. Here is something I'm looking at, there are a ton of these things, but this is just a basic idea to get us on the same page:
https://www.winstar.com.tw/products/gra ... aphic.html
So 8x Data pins, 2x Column Select pins, 1x Data/Instruction pin, 1x Enable pin, I think the rest do not need to be connected to the 6522.
Lets do a running total:
SPI -> 4 pins
LCD -> 12 pins
Keys -> 4 input pins, 5 output pins. Garth has a 16 key 4x4 configuration.
So, 4 + 12 + 4 = 20 pins, which is just at the max of the 6522.
An alternative is to write to the LCD using SPI or some other serial method, but I fear it not refreshing very well. I have zero experience with them, besides that my TI-83 has a quite terrible refresh rate. I'm wanting to be able to use it for small video games or demos, so the refresh rate is very important.
Recommendations about what should go where? SPI and Keys on PA, while LCD goes to PB? Would the shift register in PB be useful for serial LCD data transfer?
Lastly, I have never used a 6522, but by Garth's suggestion I'm trying to implement it in my design. It is an incredibly power IC but I don't know how to harness that all yet.
Thank you all for any suggestions!
Chad