??? 02/23/07 13:55 Read: times |
#133543 - I have made my decision Responding to: ???'s previous message |
At first I thought about using boolean logic so that I can minimize the hardware required to create my ROM. But then again, I think I will have alot more hardware.
I have decided to go with decoders, NAND gates, and AND gates. here is my recent code: main: jb P3.2,main mov A,P1 movx @DPTR,A inc dptr nwait: jnb P3.2,nwait ljmp main This one will take some 4-input nand gates, and some 8-input nand gates, and maybe a couple 2-input AND gates. I will use these instead of diodes as someone mentioned, because there are fewer holes to drill and it is more compact. and I have one question. With my code above, would DPTR be always set to zero if the 8051 (any 8051) is actually reset (where the RESET pin is high for > 24 clock cycles)? I am depending on DPTR to be zero at the start, but I do not want to add "mov DPTR,0", or I might need more logic gates. |