??? 02/11/07 16:36 Read: times |
#132526 - I have guts ;-) Responding to: ???'s previous message |
BINGO!
But it is not extremely complicated, because the entire code for programming the rom is about 32 bytes. Here may be my code that I will hardwire so far. I might decide to change some things. My code is as follows: jmp main main: mov TCON,5h mov dptr,0 mov IE,85h sjmp $ In the "INT0" interrupt: mov A,P1 movx @dptr,A inc dptr iret In the "INT1" interrupt: mov dptr,0 iret This code is not in reference to any specific assembler. Basically, when INT0 falls low, the data from port 1 is written to the current address (dptr), and dptr is incremented. When INT1 falls low, the address is set back to 0. Now, it just might get alot more complicated if I decide to make the LCD display characters in the hardcode. Andy, I will agree that it IS more complicated than the methods you and others are used to, but let me tell you, that it IS very possible that I could end up with a very reliable system. Think of this: If a logic gate from the hardcode is burnt, one must only<.u> replace the logic gate IC. No reprogramming is necessary. If a ROM is burnt, one must replace it and reprogram it. |