![]() | ![]() | ![]() |
| | |||||||
| Notices |
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink (permalink)) |
| About the only inexpensive AVR programmer with debug is the AVR Dragon, I've got an AVR ATmega168 project put in my lap and although I have access to a JTAG ICE MK2 I would like to have access to one on the cheap. My 2 cents, I've managed to avoid using the AVR microcontrollers till now, and now that's I've been using the ATmega168 it's not so bad but I find the the tools confusing, ie High Voltage programming, JTAG, ICP, Debugging. Aside from the $350 JTAG ICE (it's not a true ICD it's a debugger, but then so is the Microchip Real ICD) Sadly a PIC would have been a better match for the project. (battery voltage detect & dual comparator with a programmable DAC) | |
| | |
| | (permalink (permalink)) | |
| Quote:
__________________ ========================= Futz's Microcontrollers & Robotics ========================= | ||
| | |
| | (permalink (permalink)) | ||
| Quote:
Quote:
__________________ ========================= Futz's Microcontrollers & Robotics ========================= | |||
| | |
| | (permalink (permalink)) |
| The Dragon is the only programmer I've ever owned/used, so nothing to compare with. For a complete beginner, it wasn't a huge hassle to figure out how to use. USB and $50, it's a good solid purchase. Yet to have a failure or glitch, been using it for over a year. Few things you should know... The Dragon comes stripped to a minimal, but usable out of the box. If you have cables and jumpers, which aren't included. No documentation included, you need to download AVR Studio from Atmel (free). I loaded the board, added some headers and a ZIF socket. Had to build my own cables and jumpers. There are a couple of threads about the Dragon here, one has a link to an online store with some nice jumpers, which from personal experience with tiny header pin sockets... is a good deal. There is something to do with a 32k limit, but I believe its only for the debug wire. I've only used HV and ISP, only 5 different devices, but hasn't failed or destroyed any chips. | |
| | |
| | (permalink (permalink)) |
| The debug mode on the PICs loads a small program in upper memory and reprograms the target chip with your code. I'm using the clients tools (Studio 4 & ED an editor) does the debug mode on AVR automatically load new code when the debug is run (ED does not appear to integrate with Studio so it runs the build on its own)? Is the Studio editor any good? Is BASCOM any good, is GCC any good? | |
| | |
| | (permalink (permalink)) | ||
| Quote:
EDIT: Yup, C30 and its entire toolchain is GCC. Nice free software from the Linux world. Quote:
__________________ ========================= Futz's Microcontrollers & Robotics ========================= Last edited by futz; 11th March 2008 at 04:13 AM. | |||
| | |
| | (permalink (permalink)) |
|
__________________ ========================= Futz's Microcontrollers & Robotics ========================= | |
| | |
| | (permalink (permalink)) |
| Hey Bill! If you're doing AVRs, be very very careful of how you set the fusebits (and don't touch lockbits unless you really need to). Read the datasheet and be SURE you know what you're doing before changing them. Change one wrong and often you might as well chuck the chip. There are ways to rewrite them, but sometimes it's just not worth it. Today I was playing with my Staver and foolishly played with fusebits without carefully considering what I was doing. I hadn't touched an AVR in a long time and kinda forgot how bad it can be if you do it wrong. Bingo! Instant unprogrammable Staver!
__________________ ========================= Futz's Microcontrollers & Robotics ========================= Last edited by futz; 10th March 2008 at 04:25 AM. | |
| | |
| | (permalink (permalink)) | |
| Quote:
I also remembered today why I never debugged an AVR before. It was because JTAG was expensive before the Dragon came along. AVRs debug with JTAG, not via the ISP cable. But you can program via the JTAG connection, so you still only need one cable connected.
__________________ ========================= Futz's Microcontrollers & Robotics ========================= Last edited by futz; 10th March 2008 at 04:38 AM. | ||
| | |
| | (permalink (permalink)) | |||
| Quote:
What I'll end up doing is pulling the DIP board and putting it in a breadboard, then wiring HV to there however I can. I considered desoldering the chip and putting a new one on, but that's just about impossible without the right tools. EDIT: Just ran across this over at avrfreaks Quote:
Quote:
__________________ ========================= Futz's Microcontrollers & Robotics ========================= Last edited by futz; 10th March 2008 at 06:21 AM. | ||||
| | |
| | (permalink (permalink)) |
| Just thought id drop in and show you this even tho you might have sen it or it might not be needed but bored: http://www.instructables.com/id/Help...-8-Bit-AVR-Pr/
__________________ My YouTube Videos! My Favorite Stores: dipmicro Electronics SparkFun Electronics Futurlec BG Micro | |
| | |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Latest |
| good PIC programmer? | gimmix | Micro Controllers | 21 | 1st April 2005 09:24 AM |
| PIC Programmer through COM and ICSP (JDM ??) | test1 | Micro Controllers | 6 | 12th October 2004 08:06 AM |
| Is this a good PIC programmer? | mattg2k4 | Micro Controllers | 14 | 1st June 2004 06:17 PM |
| any good websites for low level programming ideas??? | janenaive | General Electronics Chat | 1 | 15th February 2004 11:02 AM |
| learning emmbedded C programming | ashraf | Micro Controllers | 0 | 24th July 2003 05:15 AM |