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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/14/04 13:45
Read: times


 
Msg Score: +1
 +1 Informative
#79310 - RE: Help me
Responding to: ???'s previous message
Riya said:
How can the hexcode downloaded to External RAM be transferd to In-built Flash memory of AT89C51?


If at all, then only by a self built circuit. But this is not at all a standard procedure!

Why?
AT89C51 can only be programmed in parallel mode, means where all address lines and data lines are applied. And unfortunately some of these lines, which are used for normal operation are not identical with those, that are used with programming mode: A8-11 is connected to P2.0-3 and D0-7 is connected to P0. That's identical. But A0-7 is connected to P1, which is different! Also, P3.6, P3.7 formerly /WR and /RD lines, and P2.6, P2.7 formerly A14 and A15 lines are now used differently.

So, you would need an extreme amount of additional circuitry to provide this line switching and, not to forget, additional control logic to prevent bus contention, means to prevent the situation, that more than one output driver accesses the same line and eventually fabricates a destroying short circuit!

Well, this methode would be so uncomfortable, that it's never used, at least to my knowledge.

A much better way to program the code memory is either to use a standard parallel programmer, or to use AT89S51, which supports serial programming: You can download the code from PC into flash code memory of AT89S51 via a cable link. Have a look at Atmel's website. Look for datasheet of AT89S51.

By the way: AT89C51 is still available, but 'not recommended for new designs' by the manufacturer! This means, that the AT89C51 will suddenly be no longer available one fine day. This can be next year, next month, but even tomorrow! Then you will have to re-design your board anyway. So, it's better to switch to the AT89S51 (or to another brand, of course) right now.

Kai

List of 18 messages in thread
TopicAuthorDate
Help me            01/01/70 00:00      
   RE: Write more sensetive topic next time            01/01/70 00:00      
      RE: Programming the 89C51            01/01/70 00:00      
         RE: Programming the 89C51            01/01/70 00:00      
         RE: Programming the 89C51            01/01/70 00:00      
   RE: Help me            01/01/70 00:00      
   RE: Help me            01/01/70 00:00      
   RE: Help me            01/01/70 00:00      
      RE: Help me            01/01/70 00:00      
      ISP for the 89C51            01/01/70 00:00      
   How to program the flash of AT89c51 ?            01/01/70 00:00      
      RE: How to program the flash of AT89c51            01/01/70 00:00      
   RE: Help me            01/01/70 00:00      
      RE: Help me confusing            01/01/70 00:00      
      Good effort            01/01/70 00:00      
         RE: Good effort            01/01/70 00:00      
      RE: Help me            01/01/70 00:00      
   RE: Help me            01/01/70 00:00      

Back to Subject List