Second question first. NOT EVERY controller needs external crystal. In the past 5 years manufacturers started making controllers that don't need external crystals. However, older and today cheaper microcontrollers still use external crystals. 89C51RD2 is not exactly old, but it has been on the market for the last 10?
![]()
AT89C51 is an age old 8-bit microcontroller from the Atmel family. To dump or upload our code into Atmel IC we need a programmer, the. Oct 04, 2012 The tools you need to program a microcontroller are: a microcontroller, programmer, integraded development enviornment (compilter, text editor), basic circui.
15 years?, when it was developed the normal procedure was to use external crystals.First question now. The crystal that you buy will have specification in its datasheet of what value capacitors to use. Whoever designed that circuit found the crystal they liked, read the crystal datasheet, saw that the crystal needs 22 pF capacitors and put those capacitors into the schematic.This is actually interesting choice of microcontroller.
89C51 RD2 has bootloader so you don't need programmer device, you connect the 89C51RD2 directly to computer and send the hex file to the 89C51RD2. The problem is that you connect 89C51RD2 to the computer serial port.
It is problem because 89C51RD2 uses 5 volts, computer serial port uses -3 to -25 volts and +3 to +25 volts, so you use MAX232 chip to translate computer serial port voltages to the 89C51RD2 voltages. The great thing about RD2 chips is that you don't need programmer, they come from the factory with the bootloader, just buid/buy MAX232 circuit above to connect it to pc and use FlashMagic/EasyIAP/etc program to send the hex file to the 89C51RD2.Now the bad news. Philips P89C51RD2 was discontinued in 2012. The replacements are still available, just look for RD2 in the replacement model name and check that it comes loaded with bootloader.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |