Download Arduino Uno Pins To Atmega328 PNG. This is the best method to program some ftdi modules has reset pin also known as dtr pin, which needs to be connected with the reset pin of atmega328 (pin 1). For those of you who are using an atmega328 with the arduino bootloader code on your own circuit board here is the pinout details which shows the chip pin numbers and the associated arduino pins.

Arduino Uno Tutorial Pinout Diyi0t
Arduino Uno Tutorial Pinout Diyi0t from diyi0t.com
I was not setting up the registers correctly for fast pwm in mode 14 (atmega328p has 15 timer1 modes). In the arduino ide , pin number 5 means the fifth pin of the arduino board not the fifth pin of 328 microcontroller. For those of you who are using an atmega328 with the arduino bootloader code on your own circuit board here is the pinout details which shows the chip pin numbers and the associated arduino pins.

Programming arduino atmega328 chip using usb to serial converter.

Then how is it working? After a lot of experimentation and further reading, below is the correct setup for. I was not setting up the registers correctly for fast pwm in mode 14 (atmega328p has 15 timer1 modes). It is actually 11th pin of the and on internet it was written that pin 6 of atmega328 is digital pin 4 of arduino uno board.