Section _ Understanding and building a programmer and programming micros

Review  of the programmer (via JTAG) and (on-chip debugging) of AVR microcontrollers

 Researcher  and author: Dr.   (   Afshin Rashid)


shift-reg_oj7.gif

AVR microcontrollers  have a JTAG interface that complies with IEEE 1.1149 and can be programmed as NVM, meaning that  data is not lost when the power is removed. The use of fuses and lock bits is mostly used for on-chip debugging and testing purposes.

The AVR-JTAG programmer or interface has a JTAG interface and supports all AVR microcontrollers with RISC structure.  One of the equipment required to work with microcontrollers is a programmer. There are many types of programmers on the market  that can be used and the best programmer is the one that can meet your needs.  Old programmers need a printer port to connect to the computer, the disadvantages of which are the size of the cable and the most important problem  is the lack of a printer port in many new computers on the market. Also, the lack of a printer port  has been the biggest problem for users who have laptops for working with microcontrollers. In modern technology, any device can be connected to the computer using USB ports, and microcontroller programmers  no longer need a printer port by using this technology, and you can  connect the programmer to any computer that has a USB port.

unnamed_obyx.gif

In fact,   a programmer (JTAg interface) suitable for AVR microcontrollers, in addition to using USB technology to connect to a computer, has other features and functions that can meet a wide range of your needs. The ability to test LCD, program defective microcontrollers, a wide range of programmable microcontrollers, compatibility with various operating systems, etc. are some of the special features of a programmer suitable for AVR microcontrollers. 



jtag-example_vlup.gif


To work with microcontrollers, you need a device that can transfer your written program into the microcontroller.  For this, you need to use a programmer. One of the most widely used programmers is for  AVR microcontrollers  . One of  the most important advantages of this programmer is its support for all AVR microcontrollers.

images_fnf.jpg

The features that a suitable programmer for AVR microcontrollers should have include: 

Power supply via USB port, no need for external power supply

- Clock pulse generator to recover micros whose fuse bits have been changed incorrectly.

- Supports all AVR family microcontrollers

- Perform all required operations (read, write, erase, set fuse bits, etc.) 

- Ability to access the internal EEprom of the microcontroller

- Compatibility with all compilers

- Use a ZIF socket for programming to prevent damage to the chip.


The software provided by ATMEL is called (Studio AVR). This software is available for free on the ATMEL website.  This software is actually an assembler for Atmel AVR products and is completely visual.  It can communicate with various microcontroller programming devices and download codes to the microcontroller. It has the ability to translate codes into C and Assembly languages.

 Researcher  and author: Dr.   (   Afshin Rashid)

Specialized PhD in Nano-Microelectronics