Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
P. 1
Giao trinh vdk AVR.doc

# Giao trinh vdk AVR.doc

Ratings: (0)|Views: 15,944 |Likes:

### Availability:

See more
See less

08/16/2013

pdf

text

original

GIÁO TRÌNH VI
Đ
I
U KHI
N AVR

1 www.dks.edu.vn

GIÁO TRÌNH VI
Đ
I
U KHI
N AVR

2 www.dks.edu.vnM
c L
cBÀI 1 : GI
I THI
U V
VI
Đ
I
U KHI
N AVR..................................................51. Gi
ớ
i thi
u v
vi
đ
i
u khi
n.............................................................................52. Gi
ớ
i thi
u v
vi
đ
i
u khi
n AVR...................................................................73. L
p trình cho AVR.......................................................................................10BÀI 2 : GIAO TI
P VÀO RA I/O........................................................................171. Gi
ớ
i thi
u giao ti
ế
p vào ra I/O.....................................................................172. Cách c
u hình ch
c n
ă
ng IO........................................................................183. d
minh h
a.............................................................................................19BÀI 3 : GIAO TI
P V
I LED 7 THANH............................................................241. C
ơ
b
n v
led 7 thanh...................................................................................242. Nguyên l
p trình cho led 7 thanh..............................................................263. d
minh h
a.............................................................................................27BÀI 4 : GIAO TI
P V
I BÀN PHÍM..................................................................311. C
ơ
b
n v
phím b
m....................................................................................312. Ch
ươ
ng trình ví d
.......................................................................................323. K
ĩ
thu
t ch
ng rung bàn phím......................................................................34BÀI 5 : B
CHUY
N
ĐỔ
ớ
i thi
u v
u hình ADC trong Code Vision cho Atmega32..............................383. d
minh h
a.............................................................................................39BÀI 6 : GIAO TI
P LCD......................................................................................411. Gi
ớ
i thi
u v
LCD 16x2...............................................................................412. Cách c
u hình cho LCD trong Code Vision cho Atmega32........................473. d
..........................................................................................................49BÀI 7 : GIAO TI
P V
I LED MA TR
N...........................................................511. C
ơ
b
n v
led ma tr
n...................................................................................512. T
o font cho led ma tr
n..............................................................................53

GIÁO TRÌNH VI
Đ
I
U KHI
N AVR

3 www.dks.edu.vn3. d
minh h
a.............................................................................................54BÀI 8: GIAO TI
P MÁY TÍNH...........................................................................551. C
ơ
b
n v
giao ti
ế
p RS232...........................................................................552. Cách c
u hình module UART trong Code Vision.......................................573. d
.............................................................................................................58BÀI 9 : GIAO TI
P I
2
C.........................................................................................661. Gi
ớ
i thi
u chung v
I2C...............................................................................662. Module I
2
C trong Atmega32........................................................................743. d
.............................................................................................................76BÀI 10 :
ĐỘ
NG C
Ơ
B
ƯỚ
C..................................................................................801. C
ơ
b
n v

độ
ng c
ơ
b
ướ
c...............................................................................802. Các m
ch
đ
i
u khi
n
độ
ng c
ơ
b
ướ
c.............................................................823. d
.............................................................................................................85BÀI 11 : GIAO TI
P V
I C
NG LPT................................................................871. C
ơ
b
n v
c
ng LPT.....................................................................................872. d
minh h
a.............................................................................................90BÀI 12 : GIAO TI
P V
I MA TR
N PHÍM......................................................921. C
ơ
b
n v
ma tr
n phím...............................................................................922. d
minh h
a.............................................................................................94BÀI 13 : TIMER....................................................................................................961. Gi
ớ
i thi
u v
timer.......................................................................................962. d
minh h
a...........................................................................................100BÀI 14 : NG
T...................................................................................................1011. Gi
ớ
i thi
u v
ng
t.......................................................................................1012. Các b
ướ
c c
u hình cho ng
t ho
t
độ
ng......................................................1043. d
........................................................................................................105BÀI 15 :
Đ
I
U KHI
N
ĐỘ
NG C
Ơ
M
T CHI
U.............................................1071. Gi
ớ
i thi
u v

độ
ng c
ơ
m
t chi
u................................................................107