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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/07/07 13:44
Read: times


 
#132210 - answers....
Responding to: ???'s previous message
Richard Erlacher said:

He doesn't want to buy other chips.

In terms of microprocessor, eeprom and ram, I don't want to buy more.



He wants to make THESE chips work.

yes.



It's his hobby project. It's his budget. It's his kitchen.

Yes.


The reason it will be difficult to make it work is that he's not considered timing constraints, and that he's operating his MCU outside specified limits, and that he's trying to make a PCB for the first time, and that he's got no test equipment by means of which he can determine what's wrong when the circuit doesn't behave as he expects. I suspect he also hasn't yet heard of metastability.

OK, so if the way I was trying to use the clock was supposed to be unstable, then I'm thinking of hardcoding "jmp $".


He probably is aware of the reset/FLASH-corruption issues that pop up from time to time.

If a microcontroller only depends on internal flash, and the flash screws up, the microcontroller is dead, and useless.


He has on hand an MCU that's essentially an 80C31. He has an EEPROM which, among other things, he wants to program in-circuit.

BINGO!


He's never said whether he has the means to program the EEPROM on its own, perhaps to see whether his MCU circuit works.


In a previous project, I made a programmer for the same EEPROM, tested it in another 8051 board I made and everything worked perfectly (LCD displayed what I wanted, etc). That board didn't have the ability for me to program it using the parallel port.


If I were going to advise him, I'd tell him to delay the EEPROM programming effort, and start by programming an SRAM from the PC's parallel port.

I don't have problems with the parts themselves.


The key is that he wants to do it himself...

Yes


, and in his way.

Mostly. However, I am open to a few suggestions like the poster that mentioned using "JMP $".


If he wanted to buy a solution, he'd have done that already.

I don't order online, solutions cost high, and the time it takes to arrive just might be considerably long. and who know what kind of support you get?


Goodness knows, those DIY-at-home PCB kits cost more than a decent kit of premade PC board and parts for an MCU circuit.

I don't have a kit.


What's more, if those FLASH-based IAP/ISP-capable parts were all they're advertised to be, we'd never be discussing reset circuit problems, or IAP/ISP problems. Let's try to help him do what HE wants, rather than what WE want.

Thank you.

The only way I can do it with a constantly running microcontroller is to add a bunch of buffers and 3 or 4 latches to support each command from the port. The 8051 requires between 1 and 4 bytes for each instruction, and a latch can hold it.

So far, it seems that the most optimal code that I am using is this:

NOP
JNB P1.4,$
NOP
JB P1.4,$
----4-byte code from parallel port----
JMP 0

I'm avoiding the RESET line, because the reset must be held down long enough for a TRUE reset.

When I use the code above, it seems for the first 8 bytes, it was so easy making a decoder. All I needed was one 2-input AND gate, and one 2-input OR gate.

As soon as the last instruction was introduced, then I had to add a whole bunch of gates.

Looks like I have some logic decoding to do.

If I don't use latches, to hold the bytes, then I need to incorporate more complex code. I don't want to get too carried away with the code, or I will have problems making a "hardware ROM" for it.

List of 45 messages in thread
TopicAuthorDate
CMOS?            01/01/70 00:00      
   74HC and 74HCT IS CMOS!            01/01/70 00:00      
      yes            01/01/70 00:00      
         a datasheet and a calculator            01/01/70 00:00      
   Why do you want to "process the PSEN signal" I kno            01/01/70 00:00      
      You need to stick your nose in the books, Mike            01/01/70 00:00      
         umm.            01/01/70 00:00      
            WHAT are you doing with the PSEN ?            01/01/70 00:00      
               programmer + system            01/01/70 00:00      
                  80C51BH doesn't have EPROM            01/01/70 00:00      
                     He's using it as an 80C31            01/01/70 00:00      
                     im meant            01/01/70 00:00      
                  Ambiguous            01/01/70 00:00      
                     LPT            01/01/70 00:00      
                        Is it T0 and T1, or T1 and T2?            01/01/70 00:00      
                           T0 and T1 and, for a '52 T2            01/01/70 00:00      
            What do you mean \"ummm\"            01/01/70 00:00      
               welcome to "Trying"            01/01/70 00:00      
                  nobody thinks you're stupid, however ...            01/01/70 00:00      
                     answer.            01/01/70 00:00      
                        why screw with the clock?            01/01/70 00:00      
                           stop trying to make deals!            01/01/70 00:00      
                              not necessarily            01/01/70 00:00      
                                 ok            01/01/70 00:00      
                                    sorry, I goofed            01/01/70 00:00      
                              Because...            01/01/70 00:00      
                                 Yes, but will it work? It's ATMEL ... (yechhh!)            01/01/70 00:00      
                                 Just to play it safe            01/01/70 00:00      
                                    or try the Maxim/DALLAS parts ...            01/01/70 00:00      
                                       BINGO            01/01/70 00:00      
                                       Not a good first chip            01/01/70 00:00      
                                          What's his primary purpose            01/01/70 00:00      
                                       Mike - FREE CHIP            01/01/70 00:00      
                        An easier way?            01/01/70 00:00      
                           if he is to get another chip, then            01/01/70 00:00      
                              Harder than it needs to be            01/01/70 00:00      
                                 Let him do what he wants! He'll learn something.            01/01/70 00:00      
                                    a small correction            01/01/70 00:00      
                                       Well, I wouldn't know ... I don't use ATMEL            01/01/70 00:00      
                                    answers....            01/01/70 00:00      
                                       TOTALLY and ABSOLUTELY incorrect. if "the flash            01/01/70 00:00      
                                          .            01/01/70 00:00      
                                             Mike ,,, there are other problems ...            01/01/70 00:00      
                        There may be some surprises ...            01/01/70 00:00      
               two Timers            01/01/70 00:00      

Back to Subject List