Abusing the IEC Port
Abusing the IEC Port
Whilst thinking about using something like pi1541 to emulate a 1581 IEC device, I started thinking about the IEC port itself, and wondering, well, I betcha it could be reprogrammed to do something it wasn't designed to do. In other words, a different protocol. That's kinda what those quick-loaders did back in the 80s -- custom programs loaded into RAM on the 1541 and the C64 for parallel or fast-serial load/save.
Abusing the IEC Port
You can... but why? The User port is also connected to a VIA, and it's got more pins available. Everything the IEC port can do is also possible on the User port... but without the restrictions of only one data pin.
Abusing the IEC Port
Certainly. You could do an SPI interface and plug in a RPi0 supported by a Kernel vector handler on device 9. Make ATN into /SEL, DATA into MOSI and /SRQIN into MISO. As long as you refrain from using tho other IEC device numbers, you should be fine.
-
- Posts: 193
- Joined: Wed Apr 29, 2020 6:46 pm
Abusing the IEC Port
Just so you know the IEC lines have diodes and buffers on them, so while you could use them other as intended you are also limited in how the pins can be used. As a whole SPI and a few others are certainly possible. Not a lot of point in it though as there is nothing to be gained by doing so.
Sent from my iPhone using Tapatalk
Sent from my iPhone using Tapatalk
Abusing the IEC Port
8 hours ago, Lorin Millsap said:
Just so you know the IEC lines have diodes and buffers on them, so while you could use them other as intended you are also limited in how the pins can be used. As a whole SPI and a few others are certainly possible. Not a lot of point in it though as there is nothing to be gained by doing so.
Sent from my iPhone using Tapatalk
The gain would be if you are using the User Port for something else and don't want to spend extra on expansion cards. If you don't have any IEC devices, it's a free port, and implementing the IEC protocol on the connecting device to make use of the free port is overkill if the connection is not going to be bussed.
-
- Posts: 193
- Joined: Wed Apr 29, 2020 6:46 pm
Abusing the IEC Port
The gain would be if you are using the User Port for something else and don't want to spend extra on expansion cards. If you don't have any IEC devices, it's a free port, and implementing the IEC protocol on the connecting device to make use of the free port is overkill if the connection is not going to be bussed.
Just make sure that will work electrically. Basically those lines are meant to be pulled into certain states which may not be compatible with what you want to use it for.
Sent from my iPhone using Tapatalk
Abusing the IEC Port
1 minute ago, Lorin Millsap said:
Just make sure that will work electrically. Basically those lines are meant to be pulled into certain states which may not be compatible with what you want to use it for.
Well, I would assume that people would RTFM before they start breadboarding, but yes, if someone breadboards the circuit once the boards ship and the circuit doesn't work, they should RTFM at that point.