Use a 244 chip plus a few resistors and capacitors. This AVR download line is supported in BASCOM-AVR, ICCAVR, CVAVR and the free Pony Head download software. It is safe and reliable. This AVR download line is used in the ATMEL laboratory of the Department of Electronics of East China Normal University.
Thanks to choicesun for providing the most simplified design diagram. This circuit diagram has been tested under SLisp1.32 and PonyProg2000, and the download is smooth.
######################################################################################
######################################################################################
######################################################################################
Homemade AVR MCU ISP Download Cable The function of the MCU programmer is to burn the debugged program into the memory of the MCU. The cost of the AVR MCU ISP download cable introduced in this article is only about 10 yuan, which is very suitable for beginners to make. The program of the AVR MCU can be downloaded and written using the serial in-circuit programming (ISP) method, which means that the program can be burned and modified directly on the circuit board. The required device is an ISP download cable. The ISP download cable introduced in this article uses the parallel port of the computer to program the MCU. It not only supports AVR MCU, but also supports the programming of AT89S series MCU in 51 MCU.
1. Download line circuit The circuit of the download line is shown in Figure 1. This download line is the STK200/300 type download line. 74HC244 is an 8-buffer circuit used for buffer isolation between the computer parallel port and the single-chip microcomputer.
The LPT in Figure 1 is connected to the parallel port of the computer and serves as an interface for the download software on the computer to communicate with the microcontroller.
Pins ④ and ⑤ of LPT are used to control the output of two groups of buffers. When the output is low level, the controlled buffer can transmit data normally; when the output is high level, the output end of the controlled buffer is in high impedance state.
Pin ⑦ of LPT outputs programming commands and data to the MOSI terminal of the microcontroller (MOSI here means computer output and microcontroller input);
Pin ⑥ of LPT outputs the serial programming clock signal to the SCK terminal of the microcontroller;
The ⑨ pin of LPT outputs the reset signal to the RST terminal;
The ⑧ pin of LPT outputs the programming status signal to the LED terminal. LED is a light-emitting diode on the target board and can be used. The information read by the microcontroller is output to the ⑩ pin of LPT via the MISO terminal (MISO here means microcontroller output and computer input). The power supply of 74HC244 is provided by the 5V power supply on the microcontroller target board through the diode VD1.
The download cable uses a 10-core wire and a standard 10-pin IDC connector. The top view of one end of the cable facing the connector is shown in Figure 2. Taking the AVR microcontroller ATmega8 as an example, the interface circuit when programming the microcontroller is shown in Figure 3. This is the minimum system of the Atmega8 microcontroller. Since the internal RC oscillator is used as the clock source, there is no external crystal oscillator circuit in the circuit. Therefore, it cannot be set to use an external crystal oscillator when setting the fuse bit.
2. How to use the software The software used with the download cable includes PonyProg2000, ISPlay, etc. This article takes PonyProg2000 as an example to introduce how to use the software, and also takes ATmega8 programming as an example.
1. Set up the ISP download communication interface Open the software PonyProg2000, click the "Set" button on the toolbar, select the radio button "Parallel" in the pop-up "Interface Board Settings" window, select "AvrISP I/O" in the drop-down list, click the "Test" button to check whether the interface settings are correct, and click the "Confirm" button to complete the settings.
2. Select the device Select “AVR micro” in the first drop-down list on the toolbar and select “ATmega8” in the second drop-down list.
3. Download operation Click the "Open" button in the tool, and the "Open Device Content File" dialog box pops up. Select "*.hex" in the "File Type" drop-down list. After finding the target file, click the "Open" button on the dialog box, and the target file will be loaded into the computer buffer. Click the "Write Device" button on the toolbar, and the "Yes or No" dialog box pops up. Click "Yes" to complete the program burning. The relevant operation interface is shown in Figure 4. If the device to be written has been written with a program before, click the "Erase" button on the toolbar to erase it before rewriting the program.
Previous article:AVR BOOTLOADER Technology Detailed Explanation
Next article:Max7219 controls 8-segment digital tube SPI interface
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Book now to get a gift: 2019 Keysight Electronic Measurement Basics Online Lecture Series
- Thank you + my parents
- Embedded Systems: Composition, Principles and Design Programming
- Compile and run the SRTC capacitive touch experiment on the IMX6ULL development board
- Design of Micro Printer Controller Based on VHDL
- [AutoChips AC7801x motor demo board review] + key peripheral test - serial port
- Tool for esp8266 esp32 bin file merger
- Single-channel sonar receiver simulation experiment
- What software can be used to read and write programs to the GD32F105VCT6 chip?
- Multi-cell lithium battery charging management solution-TPS54201