??? 02/09/07 13:50 Read: times |
#132363 - . Responding to: ???'s previous message |
You may be putting the cart before the horse, here. I forgot to mention the addition of a couple of pull-up resistors. I'm not sure how you'll accomplish this. I'd suggest you consider a simpler way, of which there are several. If there is a way without having to directly program a chip, remove it from the programmer and insert it into the system, let me know. You'd better have a really large board, and many hundreds, perhaps even thousands, of gates and flipflops available. No, I have only one. Then somehow, I need to arrange logic gates to produce proper data output from any address input. Just whose address lines did you have in mind? My code will mainly determine that, but because of the interrupt vectors and other factors, I will definitely use address 0 through 2. My code is less than 64 bytes in length, but it won't be all bunched together, because the interrupt vectors are fixed at certain locations. Now converting the byte codes to a simplified requires boolean algebra knowledge. I can do it by hand, but I would rather see that software can do it instead. To a simplified what? I want the hardware simplified! I don't want to use 100 inverters and "and" gates if I don't have to. If creating an optimal circuit takes two months or more, would you consider that time wasted? No. Actually, I would learn from it, so that if I do anything like this in the future, It would take about 1 week instead of 2 months. I'm afraid you may be mistaken there. A circuit to hard-wire 1 KB of code can require many hundreds or even thousands of gates and flipflops. My code for the programmer is less than 64 bytes right now, and I doubt it will reach 1KB. Now ... let me ask a few simple questions ... Have you ever programmed any sort of microcontroller before? Yes and my last board before the new enhancements was successful. For that one to work, I had to use a separate ROM programmer (a pain in the butt!) Have you ever written a program in assembly language ... ANY assembly language? Yes, and I made my own 8051 assembler too. Have you ever designed a simple system? Yes Do you know what top-down design methodology is? Somewhat Do you know what "system requirements" means? Yes. It is the hardware and/or software necessary to make the system run. Have you familiarized yourself with the instruction set of the 8051? Definitely, yes. Thats how I managed to make my code less than 64 bytes. Have you familiarized yourself with the hardware of the 8051? Yes, or I wouldn't have a working circuit. You do know, that there is almost no similarity between programming a PC and programming a microcontroller, don't you? As for making machine codes for both, both systems are different. |