??? 02/11/07 21:27 Modified: 02/11/07 21:30 Read: times |
#132558 - Try to go back to reality, Mike ... Responding to: ???'s previous message |
Mike Stegmaier said:
Ok, several posts above. It is also below as well.
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 6 bits is the total number of address bits I need. As I have mentioned before, I want to make a ROM using logic gates, that way, it is already hardcoded, and I don't have to reprogram it. The actual data codes are 8 bits in length. One 8051 command requires all 8 bytes fed to the data line. So basically, I'm taking the 6 address lines (A0 to A5) as logic inputs, and each data bit represents a output. so if I were to convert my code for the first bit that the computer generated into an algebraic expression, it would be something like this: Bit 0: FD'C'BA + FE'D'BA + FED'C'A' + F'EDC'A' + F'ECBA So lets take this equation. What is the easiest way to simplify this so that I use the fewest number of logic gates? No, this is not homework. I'm doing this for myself. What, exactly, has that code to do with the binary code you cited? " 000010,000000,101011,000010,000000,110110,000010,000000, 000000,000000,000000,000000,000000,000000,000000,000000, 000000,000000,000000,000010,000000,111011,000010,000000, 000000,000000,000000,000000,000000,000000,000000,000000, 000000,000000,000000,000000,000000,000000,000000,000000, 000000,000000,000000,110101,001000,000101,010000,000000, 000000,110101,101000,000101,000000,111110,100101,010000, 110000,100011,110010,010000,000000,000000,110010 " Those truncated binaries aren't in any sense the code resulting from assembly of the mnemonics you cite, or, for that matter, any other set of code for the 8-bit 805x. Whta has this 6-bit drivel to do with 805x instructions? Nowhere is there a hex 78 88 05 which is the first instruction you list in main. I doubt you'll be able to persuade your 8-bit MCU to run on only 6 bits of an 8-bit instruction set. "Bit 0: FD'C'BA + FE'D'BA + FED'C'A' + F'EDC'A' + F'ECBA So lets take this equation ..." That isn't even an equation. All you're listing is a string of alpha characters. What could that possibly mean? RE |