Upload code to atmega328p

OP (Company: KUKE Electronics CO., Limited) #6648447
Rate this post
• ▲ useful
▼ not useful
Hi,
I want to design atmega328p (referenced data source: 
https://www.apogeeweb.net/circuitry/atmega328p-microcontroller-datasheet-pinout-circuit.html) 
on PCB...
One method to upload code is using Arduino Uno. If I disconnect the 
wires from arduino uno side but left them in atmega328p side, will be 
there any problem such as open circuit because of wires?
My idea is to solder the wires in PCB and when I need to upload code or 
monitor data I connect these wires to arduino uno.
Is there anyone have ideas of it?
Guest #6648489
Rate this post
• ▲ useful
▼ not useful
Lernend B. wrote:
> uno side but left them in atmega328p side, will be there any problem
> such as open circuit because of wires

No, but your ATmega328 needs to be preprogrammed with the Arduino 
bootloader, so either pulled off an arduino board or programmed with the 
bootloader code using some other method, like the native MISO, MOSI, 
SCLK, RESET Interface. And if you can program an ATmega328 using this 
method, why not use it for the real program and skip the Arduino 
completley.
Guest #6648537
Rate this post
• ▲ useful
▼ not useful
Open wires have an impact if you use the same I/O pins for other 
communication, e.g. a display with SPI interface. It depends on the 
length of wires and the amount of radio waves in the area.

For development phase on the desktop this is usually no problem, 
specially if the wires are as short as 30cm .

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.