Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
89 Manual

89 Manual

Ratings: (0)|Views: 107 |Likes:
Published by Đương Võ Minh

More info:

Published by: Đương Võ Minh on Oct 30, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/20/2013

pdf

text

original

 
H KIT 8051
BKIT HARDWARE CLUB
www.bkit4u.com1
M
Gi......................................................................................4hình lình C trong vi .............................................................................5Bài 1 : à Flash Magic..........................................................6...........................................................................................................6................................................................................................111.3 Cình cho Flash Magic......................................................................................16i 2 : Truy xu.............................................................................................222.1 Ttrên Keil C...........................................................................................222.2 Viình .....................................................................................322.2.1 K............................................................................................322.2.2 Viình.............................................................................................332.2.3 Nình.............................................................................................342.2.4 Các lình.................................................................35Bài 3 : .......................................................................383.1 K..................................................................................................383.2 Vig trình....................................................................................................393.2.1 Hàm init_main()...............................................................................................393.2.2 Hàm main()......................................................................................................393.3 Msình quan tr...............................................................................41i 4 : Ng........................................................................................................424.1 Khai báo ng.................................................................................................424.2 Viình....................................................................................................434.2.1 Hàm init_timer1()............................................................................................434.2.2 Hàm start_timer1()...........................................................................................434.2.3 Hàm timer1_isr()..............................................................................................434.2.4 Hàm
 
delay_ms(unsigned int duration).............................................................444.2.5 Hàm stop_timer1()...........................................................................................44Bài 5 : Dùng ng...................................................455.1 K...................................................................................................455.2 Viình....................................................................................................45Bài 6 : Ch.......................................................................................476.1 Nguyên ch.............................................................................................476.2 K...................................................................................................486.3 Viình....................................................................................................496.3.1 Hàm initKey()..................................................................................................496.3.2 Hàm getKey()..................................................................................................49Bài 7 : ........................................................................517.1 Nguyên quét led 7 ......................................................................................517.2 K...................................................................................................527.3 Viình....................................................................................................527.3.1 Hàm init_led7()................................................................................................527.3.2 Hàm clear_led7().............................................................................................537.3.3 Hàm set_position(unsigned int pos)................................................................537.3.4 Hàm get_position()..........................................................................................53
 
H KIT 8051
BKIT HARDWARE CLUB
www.bkit4u.com27.3.5 Hàm put_Number(unsigned int num)..............................................................547.3.6 Hàm put_string(char strNum[]).......................................................................547.3.7 Hàm scan_led7.................................................................................................54Bài 8 : .....................................................................................568.1 Nguyên ...........................................................................568.2 K...................................................................................................568.3 Viình....................................................................................................568.3.1 Hàm init_led_matrix().....................................................................................578.3.2 Hàm scan_led_matrix()....................................................................................578.3.3 Hàm update_display_led_matrix()..................................................................57Bài 9 : Chên Ma tr................................................................................599.1 Nguyên lý chên ma tr......................................................................599.2 K...................................................................................................609.3 Viình....................................................................................................609.3.1 Hàm set_message(char strMsg[])....................................................................609.3.2 Hàm main()......................................................................................................61i 10 : Ngài.....................................................................................................6210.1 Nguyên ài..........................................................................6210.2 Ki ph.................................................................................................6210.3 Viình..................................................................................................6210.3.1 Hàm init_ext_int0()........................................................................................6210.3.2 Hàm init_ext_int1()........................................................................................6210.3.3 Hàm ext0_isr()...............................................................................................6310.3.4 Hàm ext1_isr()...............................................................................................63Bài 11 : .......................................................................................6411.1 Nguyên ..............................................................................6411.2 K.................................................................................................6511.3 Viình..................................................................................................65i 12 : Giao ti............................................................................................6712.1 Nguyên lý giao ti...................................................................................6712.2 Giao ti..............................................................................6812.3 Viình..................................................................................................69hi....................................................6912.3.2 Dùng Timer1 t...........................................................................71 ình truyên 8051..................................................7112.4 Ki................................................................................7412.5 Xây dình trên PC............................................................................7412.5.1 Load các cên ComboBox................................................7812.5.2 K..........................................................................7912.5.3 G.....................................................................................................8012.5.4 Nh...................................................................................................81Bài 13 : Giao tiàn pm..........................................................................8513.1 Nguyên lý giao ti.......................................................................................8513.2 K.................................................................................................8613.3 Viình..................................................................................................87Bài 14 : .................................................................................88
 
H KIT 8051
BKIT HARDWARE CLUB
www.bkit4u.com314.1 Khái ni...................................................................................................8814.2 Lình PWM trên 89V51..................................................................................89Bài 15 : Giao ti...............................................................................9015.1 Ch...............................................................................9015.2 Kàn nh LCD..........................................................................................9115.3 c vùng nh.........................................................................................9115.3.1 Display Data Ram (DDRAM).......................................................................9115.3.2 Character Generator Ram (CGRAM)............................................................9115.3.3 B............................................................................................9215.4 Các l.....................................................................................9315.5 K.............................................................................9415.6 Kh.......................................................................................................9515.7 K.................................................................................................9715.8 Viình..................................................................................................98..............................................................................................9815.8.2 Kh.............................................................................9815.8.3 Xoá màn hình.................................................................................................9915.8.4 Thi....................................................................................9915.8.5 In kí tàn hình.....................................................................................100i 16 : Giao tiDS1307..............................................................................101..................................................................................10116.2 Nguyên lý ho...........................................................................................10116.3 Các tín hià Output...............................................................................102..................................................................................10316.5 Thông tin thà l..................................................................................103............................................................10416.7 Bus d............................................................................................10416.8 Giao thà RTC DS1307.........................................................................10516.8.1 K........................................................................................10516.8.2 Start và Stop truy.........................................................................10516.8.3 Truy...................................................................................10716.8.4 Giao ti..................................................................................108

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->