Features ¶
- ํ์ด ํผํฌ๋จผ์ค , ๋ก์ฐ ์ ๋ ฅ - ๊ทธ๋๋ดค์ 8 BIT
- 130 Powerful Instruction - RISC MPU
- 32 X 8 ๋ฒ์ฉ ๋ ์ง์คํฐ
- 8 MHz ํด๋ญ - ์~ ์ด๋ผ ๋น ๋ฅด๋ค!
- On-chip 2 cycle Multiplier
- 130 Powerful Instruction - RISC MPU
- ๋นํ๋ฐ์ฑ ํ๋ก๊ทธ๋จ ๊ณผ ๋ฐ์ดํ ๋ฉ๋ชจ๋ฆฌ
- ์์ฒด ํ๋ก๊ทธ๋๋ฐ ๊ฐ๋ฅํ ํ๋์ฌ ๋ฉ๋ชจ๋ฆฌ
- 16 KB ์ Boot Block ( 256 - 2K Bytes )
- 512 Bytes EEPROM
- 1024 Bytes SRAM
- 16 KB ์ Boot Block ( 256 - 2K Bytes )
- ์ฃผ๋ณ ์ฅ์น ๊ธฐ๋ฅ
- 2 ๊ฐ์ 8-bit Timer/Counters
- 1 ๊ฐ์ 16-bit Timer/Counters
- Real Time Clock
- Tree PWM Channels
- Programmable Serial UART
- Analog Comparator
- Master / Slave SPI Serial Interface
- Byte - oriented 2-wire Serial Interface
- 2 ๊ฐ์ 8-bit Timer/Counters
์ด MPU ์ ์ฉ๋ ¶
- MP3 ํ๋ ์ด์ด
- ์๋ฒ ๋๋ ์์คํ
- ๋ง์ดํฌ๋ก ๋ก๋ด
- ์ฐ์
์ฉ ์๋ฒ ๋๋ ์์คํ
ํ๋ก๊ทธ๋๋ฐ์ ํ์ํ ์ ํธ๋ฆฌํฐ ¶
- AVR - GCC
- AVR - Studio
- Pony Prog
์จ๋น ์ฌ์ด๋์์ ๊ตฌํ ATmega 163 L ๋ณด๋์ ๊ดํ Testing ¶
- ๋จผ์ ์จ๋น ์ฌ์ด๋์์ ATmega 163L E board ๋ฅผ ๊ตฌํ๋ค. - ps ๋ ํ๋งค ์ฌ์์ด ์๋๋ค.. ๋ ์ข์ ๊ฒ์ด ์์ผ๋ฉด ..๊ทธ๊ฑธ..
- ISR ๋ชจ๋๊ณผ ํจ๊ป Board์ ์ฅ์ฐฉํ๋ค.
- ์ฉ์ฐ ๊ฐ์ 9 pin ์ง๋ฆฌ Serial Port ์ญ๊ณผ 5.5volt ์ด๋ฅํฐ์ ๋ผ์ธ ๊ฒ์ ์ค๋นํ๋ค.
- ๊ทธ๋ฆฌ๊ณ ๋ฉ๋์ง์ฉ ์ธ๋์ ์ค๋ฉ์ ์ค๋นํ ๋ฉ๋ ์์.
- 9 pin ์์ TX๋ 2๋ฒ RX 3๋ฒ ์ ์ง๋ 5๋ฒ์ ์ฐ๊ฒฐ ์ํจ๋ค.
- 5.5 Volt ์ด๋ฅํฐ๋ ์์ชฝ์ด + ๊ทน ๋ฐ๊นฅ์ชฝ์ด -๊ทน์ด๋ผ๋ ์ ์ ์ ์..
- ์ด๋ ๊ฒ ๊น์ง ์ฐ๊ฒฐํ๊ณ ์ปดํจํฐ์ ์๋ฆฌ์ผ ์ผ์ด๋ธ์ COM1 ์ ์ฐ๊ฒฐ.
- ISR ๋ชจ๋์ COM2์ ์ฐ๊ฒฐํ๊ณ
- ์ ์ ์ด๋ํฐ๋ฅผ ์ฐ๊ฒฐํ๋ฉด LED๊ฐ ์ผ์ง๋ฉฐ TEST๋ฅผ ์ํ ์ค๋น๋ ๋๋๋ค.
- ์ดํ ์๋กฌ ๋ฐ์ดํ๋งจ์์ ๋ชจ๋์ ์ํ ์ฐ๊ฒฐ๋ก SETTINGํ๊ณ baud rate๋ฅผ 19300(ใ
ใ
) ๋ก ์ค์ ํ reset ๋ฒํผ์ ๋๋ฅด๋ฉด
WAVY SOUND XXXXXX TEST -๋ ์์ ๋ช ๋ น์ด๊ฐ ๋ฌ๋ค. ๊ทธ๋ผ ํ๋์จ์ด TEST ์๋ฃ
- ๊ทธ๋ผ ์ํํธ์จ์ด ํ
์คํ
์ ์จ๋ณผ๊น?
AVR GCC Programming ¶
- AVR-GCC๋ AVR์์ Cross Compile์ ์ํด ๋ง๋ ๊ณต์ง ์ปดํ์ผ๋ฌ
- ๋ฐฉ๋ฒ
- ์ค์น ๋ฐฉ๋ฒ
c:\> ์์ avrgcc ํด๋๋ก ์ฎ๊ธฐ๊ณ
c:\avrgcc>์์ install์ ์คํ ์ํจ ํ ๋ฐํํ๋ฉด์ avr-gcc ๋ฐฐ์นํ์ผ์ ์ด์ฉํด ๋์ค์ฐฝ์ ์ด์ด์ ์ด๋ค.
- Makefile ์ฌ์ฉ๋ฒ
- ์ค์น ๋ฐฉ๋ฒ
~cpp
# Simple Makefile
# Volker Oth (c) 1999
include $(AVR)/include/make1
########### change this lines according to your project ##################
HEADER = ../Include
MYLIBDIR =
GCCLIB = $(AVR)/lib/gcc-lib/avr/2.97/avr3
NEWLIB = $(AVR)/lib
#INCDIR means .h file search path
INCDIR = . -I$(HEADER)
#----------------------------------------------
#put the name of the target mcu here (at90s8515, at90s8535, attiny22, atmega603 etc.)
MCU = atmega163
#put the name of the target file here (without extension)
TRG = test
#put your C sourcefiles here
SRC = $(TRG).c \
$ utils.c \
$ global.c \
$ uart.c
#put additional assembler source file here
ASRC =
#additional libraries and object files to link
LIB = $(LIBDIR)/libc.a $(GCCLIB)/libgcc.a $(NEWLIB)/libbfd.a $(NEWLIB)/libiberty.a
#additional includes to compile
INC =
#INCDIR means .h file search path
INCDIR = . -I$(HEADER)
#compiler flags
CPFLAGS = -g -O3 -Wall -Wstrict-prototypes -Wa,-ahlms=$(<:.c=.lst)
#linker flags
LDFLAGS = -Wl,-Map=$(TRG).map,--cref
########### you should not need to change the following line #############
include $(AVR)/include/make2
###### dependecies, add any dependencies you need here ###################
all : $(TRG).siz
$(TRG).o : \
$ config.h \
$(TRG).c
$(TRG).siz : $(TRG).elf
avr-size --format=sysv $(TRG).elf > $(TRG).siz
avr-size --format=sysv $(TRG).elf
wr : $(TRG).rom
uisp --STK200 --erase
uisp --STK200 --upload $(TRG).rom
erase :
uisp --STK200 --erase
- avr_gcc ์ฌ์ฉ๋ฒ
- AVG-GCC AVR-GCC... ใ
ใ
์คํ๋ค.
- AVG-GCC AVR-GCC... ใ
ใ
์คํ๋ค.
์ฐ์ฐ.. ์ ์ง์ ๋ด๊ป ์ ์์ฌ๋ผ๊ฐ๋.. rom ๊น์ง ๋ง๋ค์๋๋ฐ..--; - ๋ก
device missing or unknown device ๋ผ๊ณ ๋์จ๋ค. ponyprog ์์ ์ฅ์น๋ฅผ ๊ผญ 163 L ๋ก ํด์ผํ๋? 163 ๋ฐ์ ์๋๋ฐ..
device missing or unknown device ๋ผ๊ณ ๋์จ๋ค. ponyprog ์์ ์ฅ์น๋ฅผ ๊ผญ 163 L ๋ก ํด์ผํ๋? 163 ๋ฐ์ ์๋๋ฐ..









