PCBFirst, you have to make a PCB board. You can make it by yourself using files attached at the end or you can buy ready to use JTAG PCB. Solder everything, external power supply socket is optional, use it only if you plan to connect JTAG to the external power source. ComponentsIt’s good practice to place ATMega16 and MAX232 into socket. Be sure that there aren’t any shortcuts and elements have proper values. Bill of materials
Soldering order1. M1 and M2 External powerJTAG can be powered from 2 sources: 1. Target board (that is debugged) via JTAG socket The first solution is most popular. External power is used only if your target board can not provide enough power for additional elements of JTAG board. For most users X2 socket is optional, you do not need to solder it. There’s a simple protection against improper power supply polarization – D1 diode. MAX232IC2 has to be MAX232A (with A at the end), that way small popular 0.1µF capacitors can be used. You can use standard MAX232 (more popular, cheaper and easy available), but remember to use 1.0µF capacitors (instead of 0.1µF). Programming ATmega16To perform this step you need an external programmer. Use programmer of your choice, any ISP or parallel programmer is suitable. Be sure the programmer software allows you to set fuse bits and program flash memory. If you have only ISP programmer, you can use any development board with ISP socket to program microcontroller. Replace original ATmega16 with the chip to be used in JTAG interface and program it in the usual way. After programming remove the chip. FlashDownload attached aquaticus_jtag_m16.hex file. This is a standard HEX file accepted by all programmers. It contains bootloader and original Atmel firmware. Put your ATmega16 into programmer and flash the chip using this file. Verify it and that’s all. Now it is time to program fuse bits. Fuse bitsThe most important fuses are:
The other settings does not really matter, but below you have description and values for all fuse bits.
NOTE: Do not set any lock bits. Now you can remove ATmega16 chip from programmer and put it into socket on JTAG PCB. Fuse screen shotsHere are the screen shots of the popular programs:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

