I have tried page-mode writing and the results were substantially worse. The datasheet for this microcontroller isn't clear on the timings. Is there a way I can change my code such that the timing more adheres to the AT89S52 chip because in the state it is in, I can only program the first 256 bytes of the chip. The microcontroller is attached to a 20Mhz crystal. Software program and logic: The program downloaded into internal FLASH of AT89C52 is the soul of the project. The hardware I use is my own circuit I built in which the following connections are made through buffers from PC parallel port to microcontroller: Pin 1 (strobe) to SCKĮach line on the microcontroller is taken high by a 10K external pull-up resistor.ĮA/VPP line on the microcontroller is set to high to allow programming. Also, the file I have inputted into the program as a parameter was found and stored in x051 char array. The chip I used is AT89S52 which accepts at least 4KB code. I was successfully able to program the first 256 bytes and was able to verify each one (even though there were hiccups at times), however, the 257th byte can't be verified. I attempted to store 1.7 KB of code in the chip. I'm trying to figure out why my chip can't be programmed completely. Simply connect this programmer to the USB port and program microcontrollers in a secure and very fast way.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |