Is that an ADB keyboard or one of the original Mac type keyboards?
Either way, that's a cool idea. The major obstacle is that there is a good chance that the programming for the microcontroller is stored in a bit of ROM which lives on the microcontroller itself. That's hard to access without special equipment.
Of course, if there are pins which can be biased to tell it to ignore the internal ROM and start execution at an external address, and if you're able to supply a Flash chip with your own code resident, why then, it would be easy enough to read out the contents of the on-board ROM.
The special I/O processors in the IIfx appear to have a similar pedigree. My guess is that the thing which makes them special Apple parts is that their code is stored on internal ROMs on the chips.
Most of these microcontrollers have a ROM version and a ROMless version. The former is for large scale production once your code is stable and saves you adding another chip or two to your device. But you need to order a huge minimum before the manufacturer will do a mask for the ROM portion of the chip. The second version is for development and smaller production runs or early in production when the code may change a lot.
Either way, that's a cool idea. The major obstacle is that there is a good chance that the programming for the microcontroller is stored in a bit of ROM which lives on the microcontroller itself. That's hard to access without special equipment.
Of course, if there are pins which can be biased to tell it to ignore the internal ROM and start execution at an external address, and if you're able to supply a Flash chip with your own code resident, why then, it would be easy enough to read out the contents of the on-board ROM.
The special I/O processors in the IIfx appear to have a similar pedigree. My guess is that the thing which makes them special Apple parts is that their code is stored on internal ROMs on the chips.
Most of these microcontrollers have a ROM version and a ROMless version. The former is for large scale production once your code is stable and saves you adding another chip or two to your device. But you need to order a huge minimum before the manufacturer will do a mask for the ROM portion of the chip. The second version is for development and smaller production runs or early in production when the code may change a lot.