|   |
![]() |
||||||||
Home
|
What do you do when you have to read the internal ROM contents of a 8048 or 8049 processor and you don't own a programmer for those devices?
You simply build this 8049 spy of course!
This 8049 Spy is not a stand alone project.
It is designed as an I/O expansion to my 6802 Nano Computer.
So if you're interested in this 8049 Spy, you should start building the 6802 Nano Computer first.
Operation of the 8049 Spy is not difficult.
Simply insert the 8048 or 8049 processor you want to read, apply the 12V power supply and the contents of the ROM will be transferred through the serial link to your PC.
The file is transferred in Intel Hex format, and the communication is set to 9600 baud, 8 data bits, no parity, 1 stop bit.
The voltage regulator is needed here, because you also need a 12V supply to connect to the EA line of the 8049, which places it in programming mode.
The inverter circuit is used to invert the RESET signal coming from the 6802 Nano Computer. This is necessary to keep the RESET to the 8049 activated until the program decides to release it. The crystal oscillator is nothing more than a simple crystal and two capacitors to ground. To the left of the diagram you see the I/O connections to the 6802 Nano Computer.
Finally the SEND output is the serial output of the 8049 Spy.
This signal is at TTL level (in fact open collector with passive pull-up), and therefore needs some translation before it can be connected to the RS-232 port of a PC.
I simply used an SB-Bus driver to take care of this signal translation.
Reading a byte from ROM on an 8048 is only a matter of taking its EA line high up to 12V, keep RESET low and apply a 12 bit address.
Then you must release the RESET (making it high), and the ROM byte will be presented on the DB port of the processor.
This byte is then packed in an Intel HEX file record and sent through a serial connection to the PC.
In order to do that we need the routines SNDBYTE (which translates a byte into two ASCII characters) and SCHOUT (which sends one ASCII character at a rate of 9600 baud).
I have included both the source listing and the assembled file in the download package. If you want to make changes to the program you'll also have to download and install the SB-Assembler.
|