??? 08/07/07 23:55 Read: times |
#142914 - How I programmed the 2051 Responding to: ???'s previous message |
Hi,
Double check information I gave sorry the bread board I found in garage from radio shack had continuity on gnd plane and power plane from pin 1 to pin 50. Sorry about misinformation. No problem, I was curious anyway :) I still like know how you programmed 89c2051 as I have temped on bread board and they always work. I used -- you guessed it -- a 89S51 and a custom-made program (following ATMEL's specs sheet). I was able to read the signature, erase, write and read data (see below) through the parallel port. You should write very small program to osillate only one pin or light one led to make should your chip ok. Using working program from similar chip is not very good test. The program I wrote should change the state of the four LEDs according to which buttons are pressed, but your idea is better because it's a self-running program. I think I'll do that. If you can give information exactly how you programmed chip. A 89c2051 can never be programmed in binary! Only intel hex format. I hope this helps with your problem. Believe it or not, it's a PHP script plus a small bit-mapping program in C running in the 89S51. I used WinBinder to generate a Windows program that reads a .hex (or .ihx) file and then uses the parallel port to send a string of 4-bit codes to port 3 in the 89S51 (see schematic). The 89S51 translates these codes to 7 bits on port 1. Five of these bits are in turn connected to the 89C2051 (P3), and the highest two are used to select the level of the RST pin. And it worked! Reread docs on 89c2051 programming. I know them almost by heart now ;) |