1 Introduction
With the increasing application of single-chip microcomputers, in order to reduce the cost and difficulty of single-chip microcomputer system development, many single-chip microcomputer manufacturers have launched single-chip microcomputers that support ISP technology, including the AT89S series single-chip microcomputers produced by the mainstream manufacturer ATMEL. ISP (InSySTem Programming) is online system programming. This technology allows users to erase and write the final program code to the single-chip microcomputer on the circuit board, eliminating the need for emulators, programmers and other development tools required in the traditional development process, and enables users to upgrade the software of the single-chip microcomputer online.
ISP technology needs to be implemented through ISP download cable and corresponding program download software. At present, most of the download cables are parallel port download cables, but the parallel port has been gradually eliminated by the market. Many notebook computers and desktop computers now have cancelled the parallel port configuration. Therefore, the ISP download cable with USB interface has become the mainstream. This paper proposes a design scheme of ISP download cable based on USB interface, which has low cost, simple circuit, easy to make and convenient to use.
2 Design Solution Description
The design scheme is based on ATMEGA8 microcontroller, and the specific circuit schematic is shown in Figure 1.
Figure 1 ISP download line circuit schematic
The ATMEGA8 microcontroller is a low-power 8-bit CMOS microcontroller based on the enhanced AVR RISC structure. The pinout of the PDIP package is shown in Figure 2.
Figure 2 ATMEGA8 pin diagram
In Figure 1, the ATMEGA8 microcontroller performs software simulation of the USB serial port protocol. Combined with the computer driver and target program download software, it can connect to the computer's USB interface and erase and write code to the target device in ISP mode. The definition of the ISP port in the circuit diagram is shown in Figure 3.
3 Implementation of the design
3.1 Hardware welding
Purchase components as indicated in Figure 1 and complete the soldering of the ISP download line hardware circuit board. The component list is shown in Table 1.
Table 1 Components List
3.2 Writing firmware
After the download line circuit board is soldered, the USB serial port simulation protocol and the underlying program of the ISP download mode need to be written to the ATMEGA8 on the circuit board (i.e., write the firmware). Before writing the firmware, three preparations must be made: compile the underlying program into a target file (HEX format file), prepare a parallel port ISP download line, and install the MCU program download software (such as ISPLAY 1.5) on the computer. After the preparations are completed, you can write the firmware. The specific steps are as follows:
(1) Make hardware connections as shown in Figure 4.
Figure 4 Schematic diagram of hardware connection for writing firmware
It is worth noting that J1, J2, and J3 are all shorted at this time. J1 is a speed reduction jumper, which is slow when shorted, and it is required to be in slow speed when writing firmware; J2 is shorted to supply power to the original parallel port download line; J3 is the ATMEGA8 reset jumper, which is required to be in reset state when writing firmware.
(2) Run the MCU program download software on the computer to write the firmware.
The software interface is shown in Figure 5. It is worth noting that after writing the firmware, the fuses of ATMEGA8 should be configured, that is, the SUT0 and CKSEL0 options in Figure 5 should be configured.
After the firmware writing operation is completed, disconnect J1, J2, and J3. When using it for the first time, install the USB device driver on the computer according to the prompts and it can be used normally. If you need the relevant driver software package, please contact the author.
Figure 5 Schematic diagram of writing firmware software operation
4 Conclusion
The USB interface ISP download cable designed according to the above scheme can effectively program the ATS series microcontrollers. If the firmware is upgraded, it can also program the AVR series microcontrollers. In addition, due to the use of the USB interface, it is easy to use, low cost, stable performance, easy to implement, greatly reducing the hardware cost of the microcontroller system development, such as mass production, has a certain market value.
Previous article:Design and implementation of GPS vehicle terminal based on single chip microcomputer
Next article:Research on LED display screen control system based on AVR microcontroller
- Popular Resources
- Popular amplifiers
- Molex leverages SAP solutions to drive smart supply chain collaboration
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- CGD and Qorvo to jointly revolutionize motor control solutions
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Nidec Intelligent Motion is the first to launch an electric clutch ECU for two-wheeled vehicles
- Bosch and Tsinghua University renew cooperation agreement on artificial intelligence research to jointly promote the development of artificial intelligence in the industrial field
- GigaDevice unveils new MCU products, deeply unlocking industrial application scenarios with diversified products and solutions
- Advantech: Investing in Edge AI Innovation to Drive an Intelligent Future
- CGD and QORVO will revolutionize motor control solutions
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- 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
- EE mobile station development board introduction: STM32 Nucleo Pack FOC and 6 step motor control (ST 3-phase motor...
- When C6678 is set to EndPoint mode to communicate with PC, it shows link up when starting the computer, but the computer does not respond
- TI NIR SCAN NANO Consulting
- Why can the serial port receive 9600 but lose bytes at 115200?
- What is the chip with 4BMN silk screen? It has 5 pins.
- Can I ask the experts, can a sine wave be converted into a square wave only by using an adder?
- Next-generation DOCSIS 4.0 products, CATV amplifiers based on gallium nitride (GaN) technology
- ④. Drive five-wire four-phase stepper motor
- Bluetooth Protocol
- I encountered a problem when testing the CAN communication isolation chip a few days ago. I hope you can give me some advice.