PS/2 Direction for the Commander X16
PS/2 Direction for the Commander X16
My guess is that the community is not interested in the keyboard solution per se. We just want it to become functional so that we can get on with what really interests us, eventually owning and using a X16.
I agree that the team should choose a proven design that is easy to implement.
@Wavicle, do you see any problem supporting both keyboard and mouse with the ATTINY + I2C solution?
PS/2 Direction for the Commander X16
On 1/6/2022 at 11:29 AM, Stefan said:
My guess is that the community is not interested in the keyboard solution per se. We just want it to become functional so that we can get on with what really interests us, eventually owning and using a X16.
Yes, no doubt about that. And the group has enough energy to talk about technical details.
PS/2 Direction for the Commander X16
On 1/6/2022 at 9:29 AM, Stefan said:
My guess is that the community is not interested in the keyboard solution per se. We just want it to become functional so that we can get on with what really interests us, eventually owning and using a X16.
I agree that the team should choose a proven design that is easy to implement.
@Wavicle, do you see any problem supporting both keyboard and mouse with the ATTINY + I2C solution?
Yeah, I think most of us want it to "just work" and are less concerned with the specifics. More to the point, microcontroller devices are hardly new, and the first examples date back to 1971 with the i4004 microcontroller.
PS/2 Direction for the Commander X16
On 1/6/2022 at 10:46 AM, rje said:
Yes, no doubt about that. And the group has enough energy to talk about technical details.
Fair enough. With the fact that we have at least another year to wait for hardware (thanks, COVID), there's not much else to talk about. ?
PS/2 Direction for the Commander X16
On 1/6/2022 at 1:46 PM, TomXP411 said:
Fair enough. With the fact that we have at least another year to wait for hardware (thanks, COVID), there's not much else to talk about. ?
LOL, well that's absolutely true. People gravitate towards what they like to do, and there's a wide spectrum of stuff here.
-
- Posts: 305
- Joined: Tue Sep 22, 2020 6:43 pm
PS/2 Direction for the Commander X16
On 1/6/2022 at 5:29 PM, Stefan said:
Why not an ESP32 ; then you have Wifi, i2c and a well tested PS/2 interface all in for a few quid. Then move the sound samples out of VERA (which doesn't have the memory) into an ESP32 (which does) and use that to generate audio (and you might as well put the standard waveforms there as well). Some sort of standard API so you could replace it if necessary.
The i2c interface can be used for expansion as well.
PS/2 Direction for the Commander X16
On 1/6/2022 at 8:59 AM, rje said:
At work, we periodically have to assess whether what we're doing is worth the effort we're putting into it.
I understand that sometimes, business is driving the work, and there's nothing we can do about it.
But it never hurts to let business know the issues and how much trouble they will cause.
I hear that USB is more expensive than PS/2, which is cheap. But... I'm starting to wonder if PS/2 is not really cheap, but rather pushes time and expense and complexity back to the board.
Fail fast is a good engineering principle. It takes a bit of discipline to let go of the urge to follow a sunk a cost. We do this where I work also; I've watched features that I was very fond and poured weeks into get dropped. A bitter pill, yes, but I understood the business justification. I'm less good at it with my own hobby projects because I do not have firm dates I'm managing work for; I suspect it's something similar here. The first X16 video is coming up on 3 years old, I think?
I think the problem may be that it was originally envisioned that the 6502 keyboard handler would be interrupt driven and for some reason that plan was abandoned. I don't know why and I'm not a 6522/VIA expert (not even a novice for that matter). It looks to me from the datasheet that there is no easy way to configure a negative edge sensitive interrupt trigger on a single IO wire. There are some peripheral interrupt/handshake pins that appear to be for this purpose (CA1, CA2, CB1, and CB2) and maybe things could be improved by moving the PS/2 clock to one of those pins and having the whole thing interrupt driven, but we'd still need something that would allow the 6502 to pull the clock low manually to inhibit traffic (I think that would just mean adding a transistor). I don't know how interrupt cause is detected and routed to the appropriate handler routine so I'm not sure what the overhead of such an interrupt would be since we'd be expecting several of them to come in over a few milliseconds.
I doubt going to a USB solution would make things less complex. The keyboard and mouse on the X8 are USB and have a simple controller implemented in the FPGA. In the X16 case, it would be one more thing offloaded to VERA.
I think moving the PS/2 keyboard handling to a microcontroller is the right thing to do in this case.
PS/2 Direction for the Commander X16
On 1/6/2022 at 9:29 AM, Stefan said:
My guess is that the community is not interested in the keyboard solution per se. We just want it to become functional so that we can get on with what really interests us, eventually owning and using a X16.
I agree that the team should choose a proven design that is easy to implement.
@Wavicle, do you see any problem supporting both keyboard and mouse with the ATTINY + I2C solution?
I have no idea what the report rate of the mouse is, but my gut tells me that handling two serial interfaces with a peak clock of 20kHz should not be a problem even if both interfaces were saturated. The I2C clock runs substantially faster, but is mostly handled in hardware so missing a bit there is not a concern. It seems pretty solid.
PS/2 Direction for the Commander X16
On 1/6/2022 at 11:58 AM, paulscottrobson said:
Why not an ESP32 ; then you have Wifi, i2c and a well tested PS/2 interface all in for a few quid. Then move the sound samples out of VERA (which doesn't have the memory) into an ESP32 (which does) and use that to generate audio (and you might as well put the standard waveforms there as well). Some sort of standard API so you could replace it if necessary.
The i2c interface can be used for expansion as well.
I think the biggest reason is aesthetic: the ESP32 looks nothing like an 80's era computer component. I have no idea if additional FCC testing beyond what the ESP32 already has would be needed. I think everyone would love the ability to transfer files to the X16 via WiFi (I prototyped such a card-based solution over the summer on a breadboard 6502; can't recall if I posted it here or not).
-
- Posts: 305
- Joined: Tue Sep 22, 2020 6:43 pm
PS/2 Direction for the Commander X16
On 1/6/2022 at 8:15 PM, Wavicle said:
I think the biggest reason is aesthetic: the ESP32 looks nothing like an 80's era computer component. I have no idea if additional FCC testing beyond what the ESP32 already has would be needed. I think everyone would love the ability to transfer files to the X16 via WiFi (I prototyped such a card-based solution over the summer on a breadboard 6502; can't recall if I posted it here or not).
Well .... this board seems to have more microcontrollers than Digikey these days.