Skip to content

Programming Microcontroller with Arduino Uno R3 board by bare metal method

Notifications You must be signed in to change notification settings

dotai315/ATmega328P-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

ATmega328P Example

Available on Arduino Uno R3 with remove Bootloader
It will be helpful if you have some knowledge when you learn arduino
This github follow source from: https://www.nongnu.org/avr-libc/user-manual/index.html

Hardware Require

Arduino Uno R3 or ATmega328p:

USBASP(Linux) or USBISP(Windows):

USBASP

USBISP

Other: some electronics component such as resistor, capacitor and button

Note: You should buy USBASP from this store if you do not want to install driver: https://www.thegioiic.com/products/mach-nap-usbasp-usbisp-51-avr

Software Require

Follow this link: https://www.nongnu.org/avr-libc/user-manual/install_tools.html

Note:

- On Windows, you can use Microchip Studio: https://onlinedocs.microchip.com/pr/GUID-54E8AE06-C4C4-430C-B316-1C19714D122B-en-US-2/index.html?GUID-8F63ECC8-08B9-4CCD-85EF-88D30AC06499

- Install ProISP to upload code: http://dammedientu.vn/huong-dan-cach-nap-chuong-trinh-cho-atmega8-16-32-voi-mach-nap-usbisp-bid13-html/

How to use

Step 1: Connect your device with your pc

Step 2: Remove the bootloader if you use Arduino Uno R3

With avrdude and usbasp

avrdude -p m328p -c usbasp -e
erase 

With proisp

press ERASE button on proisp program

Step 3: Get my example

git clone https://github.com/dotai315/ATmega328P-Example.git

Step 4: First Example

On Linux

cd 'Get Started'/blink
make
make flash

On Windows

with Terminal: access the directory Get Started/blink, open terminal in here.
make
make flash
with Microchip Studio: create project and get my code to your project, then build and using proisp to upload hex file for microcontroller

About

Programming Microcontroller with Arduino Uno R3 board by bare metal method

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published