1
\$\begingroup\$

I use AVR Studio for my compilation and c/c++ code (not arduino).So far I have used a Atmega 2560 development board provided by Nex robotix.

I have ISP programmers of the following sorts... AVRISP mkII USB Programmer and NEX AVR USB ISP STK500V2.

Now I need to do some programming on low end microcontrollers like ATmega 168 (28 pins). I just have the raw chip. Can I program it on breadboard,or must I buy a development board?

After programming the chip can I use it on breadboard with Vcc, GND and the pins I need for my application?

\$\endgroup\$
2
  • \$\begingroup\$ nex-robotics.com/… I have used this dev brd for atmega 2560 before,If it helps. \$\endgroup\$ Jul 30, 2013 at 0:51
  • \$\begingroup\$ As a side question, will the programmer mentioned as answers also do software debugging as well? \$\endgroup\$
    – Eric
    Jun 26, 2018 at 22:21

3 Answers 3

1
\$\begingroup\$

Yes you can do this no problem. I have a setup on my desk doing this right now. Follow this tutorial and it will explain it to you:

http://avrprojectsfiuady.blogspot.com/2011/07/programming-avr-with-avrisp-mkii.html

If you are running the new AVR Studio also watch this video to help get you setup:

http://www.youtube.com/watch?v=iTTZUpzAjKc

(You will need AVRDUDE installed as well).

\$\endgroup\$
1
\$\begingroup\$

Your AVR ISPmkII will program your chip just fine. Application Note AVR910 provides the details. The pinout of your ISP header is:

ISP pinout

Match those pins up to the pins of the AtMega168, and you should be programming the device straight away.

\$\endgroup\$
0
\$\begingroup\$

Yes you can program ATMega168 on a breadboard. It works just fine because I have done that in the past using ISP programmer. It is best to use a regulator for Vcc. I believe this chip works on 3.3V so LM2937 regulator would be good. I used AVR Dragon debugger which worked like a breeze.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ Thanks but what should be the pin connection ? I am a complete noob.What are the pins that are to be connected? Any suggestions or circuit diagram? \$\endgroup\$ Jul 30, 2013 at 1:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.