Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

USB programmer for AVR and AT89S microcontrollers, compatible with AVR910. Encyclopedia of radio electronics and electrical engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Microcontrollers

Comments on the article Comments on the article

This device supports word and page writing used in programming the AVR family of MCUs, and byte writing for the AT89S53 and AT89S8252 MCUs of the AT89S family. Thus, with the help of the programmer, it is possible to program all current MKs of the AVR family and MK AT89S53 and AT89S8252 of the AT89S family with the support of these MKs from the control software installed on the computer.

The programmer is based on the Objective Development driver and is fully compatible with the original ATMEL AVR910 programmer. I recommend repeating it exactly according to the scheme shown in the figure. Removing "unnecessary", at first glance, details can either lead to incorrect functioning of the programmer, or to failure of the computer's USB port.

USB programmer for AVR and AT89S microcontrollers, compatible with AVR910. USB programmer

The X1 connector is connected with a standard cable to one of the USB port sockets available in the computer. The FU1 fuse is used to protect the power lines of this port from accidental short circuits in the programmer circuits. Diodes VD1 and VD2 - conventional rectifiers with a direct voltage drop of 0,6 ... 0,7 V - are designed to lower the power supply of the DD1 microcontroller to 3,6 V. According to the documentation, it can operate at this supply voltage with a clock frequency of up to 14 MHz or more. Connector X2 is connected to the ISP connector of the programmable device or to the panel of the programmable microcircuit, the power supply to which must be supplied separately.

Rectangular pulses with a frequency of 3 MHz are output to pin 2 of connector X1 to "revive" the MK, which had the configuration bits (fuses) responsible for clocking erroneously programmed. This signal is generated constantly and does not depend on the operating mode of the programmer. LEDs HL1 and HL2 signal the current actions of the programmer - respectively, about reading information from the memory of the programmable microcontroller and about writing to it. The HL3 LED is on when the programmer is powered. Resistors R11-R15 are designed to match the signal levels of MK DD1 with those in external circuits. Jumper S1 during the initial programming of MK DD1 is set to the "Mod." (the opposite of its position in the diagram).

By connecting an external programmer to the X2 connector, the control program is loaded into the MK. After that, the jumper should be returned to the "Normal" position shown in the diagram. For the normal operation of the downloaded program, it is necessary that the SPIEN, CKOPT, SUT1 and BODEN configuration bits be programmed (set to 0) in the DD0 MCU, and the rest left set to 1. Usually, in ATmega8 MCUs received directly from the manufacturer, the SPIEN bit is already programmed. By setting jumper S2, it is possible to lower the clock frequency of the SPI MK DD1 interface to approximately 20 kHz. This is necessary for programming AVR-family MCUs clocked from an internal 128 kHz oscillator. With the S2 jumper removed, the SPI interface operates at about 187,5 kHz. This allows the MCU to be programmed at a minimum clock speed of 570 kHz (ATtiny and ATmega families), 750 kHz (AT90S families) and 7,5 MHz (AT89S families).

You can remove and install jumper S2 "on the go", because each time you access the SPI interface, the MK DD1 program checks for its presence. It is not recommended to do this only when the process of writing / reading the programmable MK is running, which can lead to distortion of the information being written or read. MK programming using the AVRProg v.1.4 utility from the AVR Studio package takes 10 ... 30 s along with verification, depending on the amount of memory and clock frequency. The programmer has been successfully tested with ChipBlasterAVR v.1.07 Evaluation, CodeVisionAVR, AVROSP programs. AT89S53, AT89S8252, AT90S2313, AT90S8515, ATtiny13, ATtiny26, ATtiny45, ATtiny2313, ATmega48, ATmega8, ATmega8515, ATmega8535, ATmega16, ATmega32, ATmega64, ATmega128, ATmega90, ATmega128, ATmega910, ATmegaXNUMX, ATmegaXNUMX, ATmegaXNUMX microcontrollers were programmed. The AVRDUDE program turned out to be incompatible with this programmer, it does not work all the commands of the AVRXNUMX protocol correctly.

When you first connect a manufactured programmer with a correctly programmed MK DD1 to a computer, the operating system will find a new device - AVR910 USB Programmer. It should be noted that this will not happen if the nominal frequency of the ZQ1 resonator in the programmer differs from 12 MHz. This is due to the peculiarities of the operation of USB and the MK DD1 program. You must refuse the system's offer to automatically find the driver and specify the path to the prottoss.avr910.usb.inf file. The warning that the driver is not digitally signed should be ignored.

I had problems when, after installing the programmer in the system, the AVRProg v. 1.4 was unable to locate it. It turned out that the operating system chose the COM9 virtual port for the programmer, and the AVRProg program can only work with COM 1-COM4 ports. You can change the port number using the "Device Manager" of Windows, following the path "AVR910 USB Programmer->Properties->Port Settings->Advanced->Number->COM Port". Installing the programmer in Windows 2000 does not differ, in principle, from that described above for Windows XP, but there is one peculiarity: delays in the usbser.sys driver of this OS distort the commands generated by the computer to the programmer and the responses sent by the programmer to them. What's the matter, I have not yet found out, but I found a reliable way to fix the problem. It is enough to replace the ..\winnt\system2000\drivers\ and ..\winnt\ system32\dllcashe\ file usbser.sys in the Windows 32 system folders with the same name from Windows XP. Naturally, it will have to be replaced by booting under another OS (for example, from a boot disk).

As a rule, a correctly assembled programmer with a correctly programmed MK DD1 does not need to be adjusted. The only remark: the RESET input of the programmable MK can be connected to the power plus with a resistor with a nominal value of at least 10 kOhm. This is due to the reduced supply voltage of MK DD1 and the presence of limiting resistors in the control signal circuits.

If the programmer does not work, first of all, you should make sure that there are no installation errors, breaks or short circuits on its board. Then measure the voltage between the power pins of MK DD1 (7 and 8). It should be in the range of 3,5 ... 3,8 V. Next, check if the MK clock generator is working. This can be done using an oscilloscope by connecting it to pin 10 DD1. If there is no oscilloscope, connect an ordinary LED between pin 10 and common wire through a 330 ... 510 Ohm limiting resistor (cathode to common wire). If the generator is running, the LED will glow dimly. It remains to check whether the program loaded into MK DD1 has started. One of the signs of its operation is the presence of 1 MHz pulses on pin 3 of connector X2. This can be done using an oscilloscope or an LED using the method described above. When closing the leads of the ZQ1 quartz resonator with tweezers, a dimly lit LED should randomly either increase brightness or go out altogether.

Program for microcontroller firmware

Author: A. Ryzhkov, Novokuznetsk; Publication: cxem.net

See other articles Section Microcontrollers.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Machine for thinning flowers in gardens 02.05.2024

In modern agriculture, technological progress is developing aimed at increasing the efficiency of plant care processes. The innovative Florix flower thinning machine was presented in Italy, designed to optimize the harvesting stage. This tool is equipped with mobile arms, allowing it to be easily adapted to the needs of the garden. The operator can adjust the speed of the thin wires by controlling them from the tractor cab using a joystick. This approach significantly increases the efficiency of the flower thinning process, providing the possibility of individual adjustment to the specific conditions of the garden, as well as the variety and type of fruit grown in it. After testing the Florix machine for two years on various types of fruit, the results were very encouraging. Farmers such as Filiberto Montanari, who has used a Florix machine for several years, have reported a significant reduction in the time and labor required to thin flowers. ... >>

Advanced Infrared Microscope 02.05.2024

Microscopes play an important role in scientific research, allowing scientists to delve into structures and processes invisible to the eye. However, various microscopy methods have their limitations, and among them was the limitation of resolution when using the infrared range. But the latest achievements of Japanese researchers from the University of Tokyo open up new prospects for studying the microworld. Scientists from the University of Tokyo have unveiled a new microscope that will revolutionize the capabilities of infrared microscopy. This advanced instrument allows you to see the internal structures of living bacteria with amazing clarity on the nanometer scale. Typically, mid-infrared microscopes are limited by low resolution, but the latest development from Japanese researchers overcomes these limitations. According to scientists, the developed microscope allows creating images with a resolution of up to 120 nanometers, which is 30 times higher than the resolution of traditional microscopes. ... >>

Air trap for insects 01.05.2024

Agriculture is one of the key sectors of the economy, and pest control is an integral part of this process. A team of scientists from the Indian Council of Agricultural Research-Central Potato Research Institute (ICAR-CPRI), Shimla, has come up with an innovative solution to this problem - a wind-powered insect air trap. This device addresses the shortcomings of traditional pest control methods by providing real-time insect population data. The trap is powered entirely by wind energy, making it an environmentally friendly solution that requires no power. Its unique design allows monitoring of both harmful and beneficial insects, providing a complete overview of the population in any agricultural area. “By assessing target pests at the right time, we can take necessary measures to control both pests and diseases,” says Kapil ... >>

Random news from the Archive

Weave networks from nanotubes 13.08.2003

Physicist Ji Liu from Duke University (USA) has found a way to produce unusually long carbon nanotubes - up to four millimeters.

They are usually made by reacting hydrogen with carbon monoxide (carbon monoxide) on the surface of a catalyst that is slowly heated from room temperature to 900 degrees Celsius. It turns out a tangled mass of nanotubes up to 20 micrometers long.

Liu suggested blowing the reacting gases over an already heated catalyst. The result was long tubes, stretched parallel in the direction of the flow of gases, like grass under the wind. Then the experimenter cooled the plate with the catalyst and tubes, turned it 90 degrees, put it back into the oven and let the gases go. The result was a second layer of nanotubules running perpendicular to the first one. A network has formed. Based on it, the researchers propose to create subminiature electronic circuits.

Other interesting news:

▪ Budget Smartphone Coolpad Cool 20s

▪ Electricity from sea lettuce

▪ Access to smart home systems from the car

▪ US Army polyethylene helmet

▪ Cold for fast heating

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Data transfer. Article selection

▪ article Pavlov Nikolay Filippovich. Famous aphorisms

▪ article Why do swifts build nests under a canopy? Detailed answer

▪ article Polar and northern plants. Travel Tips

▪ article Digital voltmeter on the C520 chip. Encyclopedia of radio electronics and electrical engineering

▪ article Miracle jug. Focus secret

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024