I wish to start learning how to surface mount an Atmega 328p, and create my own PCB (sorry for any silly questions). First off, is it possible to buy these chips pre-loaded with Arduino Bootloader? If not how does one go about programming such a smaller format chip? Also any guides on what to do / not to do would be very helpful (I’ve heard about compatibility issues with timers etc.). Looking at the PDF of the 328p uc, which pins are used to transfer code / debug, is it the SPI pins or I2C or something else?
I know this is ambitious to do, but any help you guys can provide will help my learning experience!
Links to Femtoduino board and Atmel 328p:
Oh and lastly, I am interested in dropping the clock speed of the CPU to 4 MHz in order to lower power consumption. How difficult would this be to do, while retaining correct timers such as Millis(); I did see a prescaling library that might be able to do this.
Let me know what you guys think!