jtag
play

JTAG Joint Test Action Group Standard Test Access Port - PowerPoint PPT Presentation

P ROGRAMMING AVR ON B READ B OARD Jatinder Singh Chhabra(200601120) Digvijay Singh (200601128) P ROGRAMMING AVR ON B READBOARD Programmer Circuit Circuit which is used to program a micro controller There are various techniques in


  1. P ROGRAMMING AVR ON B READ B OARD Jatinder Singh Chhabra(200601120) Digvijay Singh (200601128)

  2. P ROGRAMMING AVR ON B READBOARD  Programmer Circuit  Circuit which is used to program a micro controller  There are various techniques in practice and all of them have their own advantages and disadvantages

  3. I NDEX  LVP – Low Voltage Programming  HVSP – High Voltage System Programming  JTAG – Joint Test Action Group

  4. L OW V OLTAGE P ROGRAMMING  Also called - In System Programming  Program micro-controller on chip along with all peripheral devices  Via SPI at working voltage of 2.7-6 V  Needs VCC, GND, RESET and 3pin for SPI

  5. L OW V OLTAGE P ROGRAMMING  Advantages:  Less chance of accidental damage  No need for separate power supply  Dis-advantages:  If fuse bits like reset when disabled than LVP cannot be done

  6. L OW V OLTAGE P ROGRAMMING  Note:  Accidentally fuse bits changed and than high voltage programming is needed

  7. JTAG  Joint Test Action Group  Standard Test Access Port  Boundary-Scan Architecture  method for testing interconnection (wire lines) on printed circuit boards  Used as an IC debug or probing port  JTAGEN Fuse needs to be enabled

  8. JTAG  Break and step in functions for extensive on-chip debugging

  9. H IGH V OLTAGE P ROGRAMMING  12V is applied to the RESET pin  All AVR devices can be programmed  The device is taken out of the system

  10. H IGH V OLTAGE P ROGRAMMING  Advantages  Work even if fuse bits are set  Some devices can only be programmed using HVSP  Disadvantages  Need two different power supplies  12V can damage if there is current leakage  Need to remove all peripheral devices

  11. C OMPUTER I NTERFACE  USB  Serial Port(RS232)  Parallel Port

  12. S ERIAL  Can be connected to SPI or USART  High Voltage circuit is complex and shown only for completeness

  13. S ERIAL L OW V OLTAGE P ROGRAMMING C IRCUIT http://electrons.psychogenic.com/modules/arms/art/5/AVRInSystemProgrammer.php

  14. S ERIAL L OW V OLTAGE P ROGRAMMING C IRCUIT

  15. http://www.scienceprog.com/avr-serial-and-parallel-high-voltage-programmer/

  16. DAPA  Programming done through SPI  Parallel port is easily available on most of Systems  Pros and cons  Very simple circuit and cheap implementation  Keep parallel port cable short because clock is also transmitted(SPI)  Command to check if circuit is ready  # uisp -dprog=dapa  Output : - Atmel AVR ATmega32 is found.  100 Ω resisters are used to protect uC from voltage spikes

  17. DAPA C IRCUIT http://www.captain.at/electronics/atmel-programmer/

  18. USB P ROGRAMMER  Latest Generation of Programming Circuits.  Support for Universal Serial Bus (USB).  Programming done through SPI interface.

  19. USB P ROGRAMMER http://www.ladyada.net/make/usbtinyisp/parts.html

  20. USART  Programming possible with Boot loader  Fuse bits cannot be changed  Useful for program upgrades

  21. USART P ROGRAMMERS  Some Programmers come bundled with microcontrollers which have bootloader installed on them.  Their Programming circuit could be made extremely simple.  Example is a microcontroller with USART bootloader preinstalled can be programmed with 4 wires Vcc, gnd, Tx, Rx.  Negative point here will be that bundling software on pc will also have to be constructed as default programming softwares like avrdude or uisp may not understand the underlying protocol.

  22. S OFTWARE  With all the above circuit one requires a software on computer.  Linux  Uisp  avr-gcc  Windows  Avr-studio  ponyprog

  23. N OTE  Accidental changing fuse bits  Need to take care fuse bits get changed by mistake  Voltage Spike protection  High Baud rate need Crystal oscillators  Do not push an IC forcefully into the breadboard

  24. R EFERENCES  http://www.lancos.com/prog.html  http://electrons.psychogenic.com/modules/arms/art/ 5/AVRInSystemProgrammer.php  http://www.scienceprog.com/avr-serial-and-parallel- high-voltage-programmer/  http://support.atmel.no/bin/customer?=&action=vie wKbEntry&id=343  http://www.captain.at/electronics/atmel- programmer/

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend