Vous êtes sur la page 1sur 5

malylubo

Smile. You are amazing :)

O mne Vzdelávanie Robotika Šport Hry Zdravie Jedlo Na cestách

Úsmev

AVR

Schema: Nano V3 Recent Posts

ubuntu (philosophy) – “human


kindness.”

Robot weightlifting workout

Spolupráca dvoch fakúlt: FEI STU


a FA STU

Garbage Robotics Project

Spolupráca Fakulty
elektrotechniky a informatiky s
Fakultou architektúry STU

Meta

Log in

Entries RSS

Comments RSS

WordPress.org
atmega328p NanoV3 NanoV3 atmega328p

1 PD0 TX1 Vin 30

2 PD1 RX0 GND 29

3 PC6 RST RST PC6 28

4 GND 5V 27

5 PD2 D2 A7 PD7 26

6 PD3 D3 A6 PD6 25

7 PD4 D4 A5 PC5 24

8 PD5 D5 A4 PC4 23

9 PD6 D6 A3 PC3 22

10 PD7 D7 A2 PC2 21

11 PB0 D8 A1 PC1 20

12 PB1 D9 A0 PC0 19

13 PB2 D10 REF 18

14 PB3 D11 3V3 17

15 PB4 D12 D13 PB5 16

ATmega328p manual

Interrupts – str.65
Timers – str.94

OC0A – PD6, Tim0,8b


OC0B – PD5, Tim0,8b
OC1A – PB1, Tim1,16b
OC1B – PB2, Tim1,16b
OC2A – PB3, Tim2,8b
OC2B – PD3, Tim0,8b

Ako programovaĢ AVR ATmega328p pomocou CMD:

(C-code “.c” + (avr-gcc compiler OR avr-g++ compiler) ->


binary “.elf” +   (avr-objcopy) -> intel “.hex” + (avrdude) -> to
flash AVR(bootloader))

avr-gcc -mmcu=atmega328p -Wall -Os -o button.elf


button.c
avr-objcopy -j .text -j .data -O ihex button.elf
button.hex

avrdude -F -v -p m328p -c stk500v1 -P \\.\COM3 -b


19200 -D -Uflash:w:”button.hex”:i

One thought on “AVR”

macs
11. July 2013 at 18:40
Permalink

Is D4 and D5 for SDA / SCL wrong? I think it


should be A4 and A5.

Reply 

Leave a Reply
Your email address will not be published. Required fields
are marked *

Name *

Email *

Website

Comment

You may use these HTML tags and


attributes: DKUHI WLWOH !DEEUWLWOH !

DFURQ\PWLWOH !E!EORFNTXRWHFLWH !FLWH!

FRGH!GHOGDWHWLPH !HP!L!TFLWH !V!

VWULNH!VWURQJ!

Post Comment
Copyright © 2015 malylubo. Powered by WordPress. Theme:
Spacious by ThemeGrill.

Vous aimerez peut-être aussi