Would it be possible to connect the ICSP pins of an Uno to the respctive MOSI, MISO, SCK and RESET pins on a standalone Atmel328P in TQFP32/MLF32 and upload the boot-loader ?
Seoncondly why is a DIP pacakge different from TQFP32 or MLF32 in terms of pins. The dip has 28 and TQFP has 32. I am hoping to replace the DIP with the SMD pakcage. Did i use the wrong package ?
Yes, although RESET on the target device must be connected to a regular digital pin. Read the instructions in the comments in the ICSP programmer example.
DIP has two rows of pins. TQFP has 4 rows, on all 4 sides. 7 pins per side would be an unusual package. So there's extra pins available on those SMD packages. The chip is identical inside the package. If you program your custom board as a Nano, then you get support for those extra pins.
anishkgt:
Would it be possible to connect the ICSP pins of an Uno to the respctive MOSI, MISO, SCK and RESET pins on a standalone Atmel328P in TQFP32/MLF32 and upload the boot-loader ?
No. The ICSP "Reset" pin is not the same as Pin 10 which is the pin the ArduinoISP sketch uses for SlaveSelect.
ISP Arduino
Target Arduino
ICSP1
ICSP1
ICSP2
ICSP2
ICSP3
ICSP3
ICSP4
ICSP4
Pin 10
ICSP5
ICSP6
ICSP6
In other words: ICSP pins 1, 2, 3, 4, and 6 connect directly and the target's ICSP5 (/RESET) connects to digital pin 10 on the ISP Arduino.
anishkgt:
Seoncondly why is a DIP pacakge different from TQFP32 or MLF32 in terms of pins. The dip has 28 and TQFP has 32. I am hoping to replace the DIP with the SMD pakcage. Did i use the wrong package ?
You can't unplug a DIP28 ATmega328P and plug in a TQFP32 and MLF32 ATmega328P. The pins are in very different positions, along four edges of a square and spaced closer together.
Thanks John. I just verified the pin out from the attached with an uno and they seem to match. I chose the TQFP only because of its bigger size, the QFN/MLF are smaller and the number of leads, 32 are same for both.