Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/13/11 08:09
Read: times


 
#184709 - I think you're confusing two different parts.
Responding to: ???'s previous message
Per Westermark said:
But note that the original EPROM chips did not support electrical erase. And applying UV light meant bulk erase.

The P8052 didn't have any EPROM. There was a P8652 that was OTP, but, being in the plastic package, it couldn't be erased in any sense.

So the use of a single external EPROM would not allow the lower part of that EPROM to contain a loader handling any serial port and then have that loader receive more program to burn into upper parts of the EPROM - especially since the EPROM would not run the processor while being programmed.

Yes, I have to agree, since that's what I previously said.

Even most flash chips have the limitation that they can't serve out code while having other flash sectors being erased/reprogrammed.

Internal flash or otherwise reprogrammable program store is not a factor here. External flash is probably not a good choice either, as it requires intelligence to program it. EPROM is dumber, hence easier to program, particularly with small parts. FRAM is easier yet, the memories can be quite large. Though they're not as large, BBRAM's are pretty easy, too. The fact is, we don't know what hardware the O/P has at his disposal. He could have equipment available in a lab at school, or with a friend, or whatever.

So the simplest solution would be to have two memory chips. One EPROM or flash chip with a boot loader. But how (?) would that program get a boot loader when there are no stand-alone programmer available to program it?

I agree. That's why I mentioned the BBRAM or FRAM. Those require no programmer. If the nEA line were then tied low, the chip would attempt to use only external program store, enabled by nPSEN, and, with proper hardware design, (not rocket science, as it requires only that nRD, nWR, and nPS be negative NOR'd to produce a negative-going strobe at the occurrence of any one of the three, by which the external memory data buffer, if there is one, is enabled, and the external memory as well.) What this all amounts to is degrading the operating mode of his MCU to that of a P8032, which uses only external memory. If, then, he has the means to program an external EPROM or even just to write to an FRAM, which is all that's necessary and NOT rocket science, he could locate the bootloader there, serially load the code he wants to use in the FRAM, and then move it to the appropriate region in memory so that, next time he boots the MCU, the code he bootloaded will be located properly. FRAM's are available in large size, BTW. I've used 512 kB sized ones with wire-wrap adapters, to provide a big enough nonvolatile memory. By creative use of external logic, i.e. a few gates and jumpers, he could manipulate the high-order addresses to make the bootloader appear in the correct place for bootloading, yet move it out of the way to run his newly-loaded program. Clearly there are many options. No matter what he does, though, he'll not be able to erase or reprogram this particular part.

The second memory could be a RAM or a flash, and could get the contents by the boot loader program.

But no - there would not be anything simple about the above. So we would be back to my original post.

When you don't know how to do something, you always find it difficult. Once you know how, it's easy. That's especially true with digital hardware.

The cheapest way to handle this would be to beg RAMTRON for a sample of one of those FRAM's and an adapter for the TSOP-II to a more convenient footprint. Then, with a parallel port on his PC, he can build a device with which to write to it. Even easier, he could use an EPROM, the easiest of which is a 2716, of which there are still a few around. A programmer for one of those would consist of a few counters (3 4-bit counters, perhaps) and a one-shot to time the maximal 50 ms time requirement for it. Then the parallel port can, byte-by-byte, be used to program the EPROM from the parallel port, using one input bit to monitor the post-write timeout provided by the one-shot. The whole thing would cost less than $10, even at today's inflated prices.

Yes - a programmer can be written. Yes, the processor can be used. But it would cost. It would take time. And it would probably not work because it would require too many individual steps to be correct. And someone who starts from scratch would not have the equipment and experience to figure out all the broken steps until the design finally started to work.

You're right, it's not for the faint of heart, nor is it a task for a total newbie, as he indicates he is, but it's not a budget buster.

A fraction of that time and a fraction of the cost, could be used to buy a development board with a modern processor with a RS-232 or USB interface where a PC program could send a new program. And with a modern processor that would have internal, hardware, support for debugging of the downloaded program.

Well, that's probably true. If he's bent on using THIS PARTICULAR DEVICE, he's got a hard row to hoe. If, however, he has a the intelligence to manage the task in the first place, he'll quickly see that he needs, at least, to obtain a serially programmable MCU, costing less than $2 or so on eBay
http://www.ebay.com/itm/IC-AT...3cbbe50d2b
for example, and be done with it. It's not certain that he even requires an evaluation board, provided he has done the research to enable him to buile the programming circuit, usually consisting of little more than a MAX-3232A and a serial connector.

Going the new route, would mean lots of time available to learn new skills on a working platform.
Going the old route would give lots of experiences that may not be wanted at this time. Like 100 different things that can go wrong ending a project in failure.

That's what I'd use in this sort of situation.

And what situation would that be? You starting from scratch, without any existing software? No existing hardware but a dumb processor and one or more UV-erasable EPROM chips but without any UV eraser? No tools to fill that EPROM with contents? No tools to drive raw processor pins to use as a building block for a programmer? No tool capable of receiving RS-232 data from a PC to send into latches to then (together with pulsing of address counters) program the EPROM?

That's the situation that confronted those of us who wanted to use the 805x's back in the early '80's. There were tools, of course, but they were VERY costly and cumbersome, There were no IBM PC's yet ... at least not evolved enough to be of use, and the tools Intel provided cost more than a new Benz. We had to read the datasheets, write our own software, and build our own hardware. Fortunately, the datasheets included programmer schematics for the EPROM-based parts. We hadn't learned about microprocessors or microcontrollers in college because they didn't exist back in the '60's. We had to do exactly what this fellow, the original poster, has before him. I'm of the opinion that we must credit him with at least as much intelligence as I had back then. Perhaps not as much as you possess, as you always seem to know better, but a reasonable amount. As a result, I have to believe he's at least clever enough to do what I did back when it was totally necessary. Back then, there was no 8052.COM.

Anyone who gets to this forum with the question the OP had, would be in a position where it doesn't matter what "can" be done. The important thing is that with lacking tools and lacking experience, lots of things that can be done just shouldn't be attempted. Becaus the cost would be too high. Because the failure probability would be too high. Just because other - very cheap - alternatives would allow much more learning in way shorter time.

If you have a $300 old car, it isn't meaningful to invest $3000 to try to get it to run a bit better.

If you have the skills and a truly unique wreck, it might be meaningful to invest $30,000 instead. Just because you will be able to create a museum-class vehicle in mint condition.

This is not a thread where an experienced developer is trying to recreate an important historical artifact, but someone who have a "wreck" on his hands and isn't realizing that the cost it would take to make it usable is higher than the cost of buying a new SDK complete with documentation.


You're not the first to suggest that this is a fool's errand for one who's totally inexperienced. However, aside from my own belief that the O/P needs to consider his goal before deciding what to do, he should also consider that he can build the same circuit with a modern, serially reprogrammable, device, for which PC-based serial loaders are available from the chip manufacturer, that could be built with the old Intel part, he may actually prefer to suffer the consequences of starting from scratch. Until he tells us what he wants and why he wants it, we can only guess.

I believe he should be encouraged to do what he wants, and not be dissuaded because there's an easier way. People have walked up the half-dome in Yosemite national Park. Others have climbed the face. It's just a personal choice.

As for your car analogy, I routinely run across situations where someone has an old car worth less than $300, and wishes to spend two years and $30k on it to restore it to "original" condition. Sometimes that's because it is of the same vintage as they are, and in others it's because it was the first car they learned to drive. I've seen TV programs on which they spend $100k on a car worth $50 to restore it, even though the restored value is on the order of $10k. I've seen TV programs on which they take a new, $50k vehicle, modify it at an expense of $200k, to make it into a vehicle worth no more than $10k. I can't make any sense of it. Can you?

RE




List of 76 messages in thread
TopicAuthorDate
How to write programs to internal memory with RS232???            01/01/70 00:00      
   What processor            01/01/70 00:00      
      And the winner is...            01/01/70 00:00      
         fuggetabutit            01/01/70 00:00      
            Hmmmmmm            01/01/70 00:00      
               sure there is            01/01/70 00:00      
               Costly failure            01/01/70 00:00      
                  Well, the UV thing confuses me...            01/01/70 00:00      
                     well, then ....            01/01/70 00:00      
                     OTP or mask-programmed            01/01/70 00:00      
                     Isn't that a clue?            01/01/70 00:00      
                  Wrong! It won't work with THIS part!            01/01/70 00:00      
                     8032            01/01/70 00:00      
                        Actually ...            01/01/70 00:00      
                           What situation would that be?            01/01/70 00:00      
                              I think you're confusing two different parts.            01/01/70 00:00      
                           There's the thing!            01/01/70 00:00      
                              It all depends on what you mean by experienced.            01/01/70 00:00      
                                 RE: It all depends on what you mean by, "experienced"            01/01/70 00:00      
                                    "Level" is such a relative term            01/01/70 00:00      
                              That's the reason            01/01/70 00:00      
                        8032?            01/01/70 00:00      
                           Yes - but is it worth it?            01/01/70 00:00      
                           It's a long, circuitous path ...            01/01/70 00:00      
                     I have an external UV EPROM            01/01/70 00:00      
                        If you don't know that, ...            01/01/70 00:00      
         Unless you have specific interest in vintage electronics ...            01/01/70 00:00      
            So...I've made a decision..sorta            01/01/70 00:00      
               One step at a time            01/01/70 00:00      
                  Any specific one though?            01/01/70 00:00      
                     This one?            01/01/70 00:00      
         Not this one!            01/01/70 00:00      
            Hmmm, a goal?            01/01/70 00:00      
               Wrong road!            01/01/70 00:00      
                  Regarding knowledge of electronics.            01/01/70 00:00      
                     RE: "fourth grade"            01/01/70 00:00      
                        RE:RE:Fourth grade            01/01/70 00:00      
               if the "self taught home-school class" refer to the archaric            01/01/70 00:00      
                  When throwing out bathwater, take care to retain baby...            01/01/70 00:00      
                     out of sheer nostalgia            01/01/70 00:00      
                     It might, in fact, be a good thing to go back farther            01/01/70 00:00      
                        Interesting            01/01/70 00:00      
                           You need to know much more about two things ...            01/01/70 00:00      
                  About other processors            01/01/70 00:00      
                     The prices were on the page!            01/01/70 00:00      
                     SiLabs Boards            01/01/70 00:00      
                     Integrated            01/01/70 00:00      
                     here            01/01/70 00:00      
                        Code flash not always able to replace EEPROM            01/01/70 00:00      
                           agreed            01/01/70 00:00      
                              Yes            01/01/70 00:00      
                              Yes            01/01/70 00:00      
               Maybe a heretic idea...            01/01/70 00:00      
                  There's a problem with these ...            01/01/70 00:00      
                     Not for the intended purpose....            01/01/70 00:00      
                        Single source            01/01/70 00:00      
                           Just another chance.....            01/01/70 00:00      
                        If you read his entire post ...            01/01/70 00:00      
                           I have six other microprocessors that i found yesterday            01/01/70 00:00      
                              Well, this is not the PIC forum ...            01/01/70 00:00      
                                 I was just saying...            01/01/70 00:00      
                              'found'stuff            01/01/70 00:00      
                                 I have to agree, conditionally            01/01/70 00:00      
                           learning about microcontrollers            01/01/70 00:00      
                              Arduino is a very good choice if not going 8051 route            01/01/70 00:00      
                              Careful, now ...            01/01/70 00:00      
                     spend some $$$ on an already-assembled product            01/01/70 00:00      
                        in for a penny, in for a pound ...            01/01/70 00:00      
                           Still easier to learn to program before bringing up first hw            01/01/70 00:00      
                              I'm not so sure ... maybe we'll just have to disagree            01/01/70 00:00      
               If you're really serious about this ...            01/01/70 00:00      
                  tools and such            01/01/70 00:00      
                     Well ... maybe your Dad can fill you in on some details            01/01/70 00:00      
         re: 8052            01/01/70 00:00      
            Switched            01/01/70 00:00      
            no offense, but that's incorrect.            01/01/70 00:00      

Back to Subject List