Programming the ATMEL328 (DIP version) using the UNO w/ surface-mount IC...?

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello, I have a nice sketch on my UNO and I want to program it on a bare ATMEL328 (the DIP version) and run it independent of the board, with my own circuitry.

I see there are ways to program the separate 328 using an existing board - you can make connections from the UNO to the 328 on a breadboard. https://pnrstatus.vip/

However, it's my understanding that you need to remove the existing ATMEL from the board to do this - true? And since I have the surface mount IC, I cannot use this technique?

... So if I want to program the ATMEL itself, I need to buy the pocket AVR programmer? There's no other way? Yes it's not that expensive but if I could use existing equipment I'd be happier :) mobdro

Thanks! https://sarkariresult.onl/

Last Edited: Sun. Nov 3, 2019 - 01:48 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

it's my understanding that you need to remove the existing ATMEL from the board to do this - true?

 No.  You leave the AVR in the existing board for the "programming" step.

There's a hack where you can take out the AVR and use an Uno board as a USB/Serial converter, but that's usually unnecessary (and in most cases can be accomplished by tying the Uno RESET signal to GND, rather than removing the chip.  (the only thing that doesn't allow is the automatic reset during the Arduino serial bootloader "upload."  But you don't really need that if you have the programmer connections made.))
 

One of the better tutorials is here: http://www.gammon.com.au/breadboard

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

VoltarGomes wrote:
a bare ATMEL328

would need the bootloader installing?

 

EDIT: this is covered in the tutorial westfw linked.

 

Note that the name of the chip is "ATmega328"

 

https://www.microchip.com/wwwproducts/en/ATmega328

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Sat. Nov 2, 2019 - 11:20 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

westfw wrote:
One of the better tutorials is here: http://www.gammon.com.au/breadboard 

although it does show using a 3.3V FTDI cable when running the AVR at 5V !

 

surprise

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...