AVR's JTAG emulator is very easy to use and is highly recommended. It can download and perform software and hardware simulation on all mega series with JTAG interfaces.
When I first started using the AVR JTAG emulator, I was not very clear about how to use it. After reading the English and Chinese instructions for the AVR JTAG emulator, I still did not understand its specific use. After my own exploration, I finally understood how to use this emulator. In fact, the method of using this emulator is very simple, but the instructions are too complicated, which makes people more and more confused. However, using this emulator is indeed much more convenient. It can realize hardware simulation and software simulation, step program, and find program loopholes. It is a good auxiliary debugging tool.
The following is a relatively simple method of use that I have explored:
(1) The use environment of AVR JTAG is: AVR Studio 4.07 or above, 9-15DC power supply, PC and RS232 port.
(2) Install AVR Studio: When installing AVRStudio, put the CD provided with the machine into the CD-ROM, select the setup.Exe file in the avrstuio4.07 directory, and follow the steps prompted by the installation wizard.
(3) Before starting AVR Studio, connect JTAGICE between the host PC and the target board to ensure that AVR Studio can automatically detect the connection.
(4) To connect the emulator to the host computer, connect one end of the "serial communication cable" that comes with the emulator to the "serial communication port" of the emulator, and the other end to any serial port of the computer. Note: AVR Studio cannot share serial port resources with other programs. Before opening AVR Studio, close other programs that use the serial port (such as ModeM.IrDA).
(5) Connection between JTAGICE and the target board: At least 6 lines are required to connect to the target board to complete the simulation task. They are: TCK, TMS, TDO, TDI, Vref, GND, and there are two optional pins nSRST and Vsupply. Pin nTRST is not connected. The function of Vsupply is to power the JTAGICE from the target board (only for the interface part). The function of nSRST is to monitor the reset line of the target board. However, it is not necessary during the simulation process. If the application programs the JTD bit in MCUSR, the JTAG interface will be closed. In order to reprogram the target board using JTAGICE, the reset pin must be controlled.
AVR JTAG emulator connection summary: Connect the AVR JTAG to the PC serial port and power it with a 9-15VDC DC power supply. Connect the AVR JTAG download line according to (5). This completes the overall connection of the emulator. At the same time, the target board should also be powered on.
(7) When the JTAGICE is connected, you can turn on the power: Perform the power-on operation in the following order to ensure normal communication between the JTAGICE, the PC and the target board.
Reference address:How to use the JTAG interface of AVR microcontroller
When I first started using the AVR JTAG emulator, I was not very clear about how to use it. After reading the English and Chinese instructions for the AVR JTAG emulator, I still did not understand its specific use. After my own exploration, I finally understood how to use this emulator. In fact, the method of using this emulator is very simple, but the instructions are too complicated, which makes people more and more confused. However, using this emulator is indeed much more convenient. It can realize hardware simulation and software simulation, step program, and find program loopholes. It is a good auxiliary debugging tool.
The following is a relatively simple method of use that I have explored:
(1) The use environment of AVR JTAG is: AVR Studio 4.07 or above, 9-15DC power supply, PC and RS232 port.
(2) Install AVR Studio: When installing AVRStudio, put the CD provided with the machine into the CD-ROM, select the setup.Exe file in the avrstuio4.07 directory, and follow the steps prompted by the installation wizard.
(3) Before starting AVR Studio, connect JTAGICE between the host PC and the target board to ensure that AVR Studio can automatically detect the connection.
(4) To connect the emulator to the host computer, connect one end of the "serial communication cable" that comes with the emulator to the "serial communication port" of the emulator, and the other end to any serial port of the computer. Note: AVR Studio cannot share serial port resources with other programs. Before opening AVR Studio, close other programs that use the serial port (such as ModeM.IrDA).
(5) Connection between JTAGICE and the target board: At least 6 lines are required to connect to the target board to complete the simulation task. They are: TCK, TMS, TDO, TDI, Vref, GND, and there are two optional pins nSRST and Vsupply. Pin nTRST is not connected. The function of Vsupply is to power the JTAGICE from the target board (only for the interface part). The function of nSRST is to monitor the reset line of the target board. However, it is not necessary during the simulation process. If the application programs the JTD bit in MCUSR, the JTAG interface will be closed. In order to reprogram the target board using JTAGICE, the reset pin must be controlled.
AVR JTAG emulator connection summary: Connect the AVR JTAG to the PC serial port and power it with a 9-15VDC DC power supply. Connect the AVR JTAG download line according to (5). This completes the overall connection of the emulator. At the same time, the target board should also be powered on.
(7) When the JTAGICE is connected, you can turn on the power: Perform the power-on operation in the following order to ensure normal communication between the JTAGICE, the PC and the target board.
Previous article:AVR Driver for ADS7816
Next article:Several USART interface functions of AVR
- Popular Resources
- Popular amplifiers
Recommended Content
Latest Microcontroller Articles
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- 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
MoreDaily News
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- From probes to power supplies, Tektronix is leading the way in comprehensive innovation in power electronics testing
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
Guess you like
- No GD32? Replace STM32 with domestic MM32
- 【CC1352P Review】Summary
- Single TL431 constant current improved circuit
- Wifi6 video explanation
- Looking for: 3.7V lithium battery charging, boost, power, switch, SOP8 chip
- FPGA_100 Days Tour_ROM-based Arbitrary Waveform Generator
- Merry Christmas Eve
- MicroPython upgraded to v1.11
- RF coaxial connector
- [June 10 | Live] Calmly cope with test challenges and help achieve millimeter wave innovation