YOMEDIA
ADSENSE
Báo cáo thí nghiệm-Bài1: Các bộ thí nghiệm vi xử lý
83
lượt xem 6
download
lượt xem 6
download
Download
Vui lòng tải xuống để xem tài liệu đầy đủ
1. Các địa chỉ Port A, B, C và CR của 8255 Thanh ghi điều khiển U5 PORT A ( U5) PORT B ( U5) PORT C ( U5 ) Thanh ghi điều khiển U9 PORT A ( U9) PORT B ( U9) PORT C ( U9 )
AMBIENT/
Chủ đề:
Bình luận(0) Đăng nhập để gửi bình luận!
Nội dung Text: Báo cáo thí nghiệm-Bài1: Các bộ thí nghiệm vi xử lý
- Phòng thí nghiệm Vi xử lý Báo cáo thí nghiệm BÀI 01 : KHẢO SÁT THIẾT BỊ CHÍNH μPTS-31 Điểm đánh giá CBGD nhận xét và ký tên Chuẩn bị Báo cáo Kiểm tra Kết quả Lý thuyết kết quả TN PHẦN I : PHẦN CÂU HỎI CHUẨN BỊ Ở NHÀ 1. Các địa chỉ Port A, B, C và CR của 8255 Thanh ghi điều khiển Thanh ghi điều khiển U9 U5 PORT A ( U5) PORT A ( U9) PORT B ( U5) PORT B ( U9) PORT C ( U5 ) PORT C ( U9 ) 2. Địa chỉ của hệ thống thí nghiệm đối với máy tính từ :.....................h tới ........................h Địa chỉ các đường : CS1 : Từ..............h tới ...............h. CS2 : Từ..............h tới ...............h. CS3 : Từ..............h tới ...............h. 3. Cho biết các công tắc nhấn SW, các Relay, Loa và Led nối với bit thứ mấy của Port nào của 8255 và địa chỉ của chúng là bao nhiêu? Nối với Địa chỉ Led Relay 1 Relay 2 Relay 3 Speaker SW1 SW2 SW3 SW4 Trang 1
- Phòng thí nghiệm Vi xử lý Báo cáo thí nghiệm 4. Cho biết chức năng từng Bit trong thanh ghi điều khiển của 8255A (trong mode I/O): D0 D1 D2 D3 D4 D5 D6 D7 Điền các giá trị cần thiết vào từ điều khiển để : PORT A : ...................... (sử dụng trong mode I/O) PORT B : ....................... PORT Ccao: .................... PORT CThấp : .................. Từ điều khiển : Giá trị cần thiết để xuất ra thanh ghi điều khiển là :..........................h 5. Cho biết chức năng từng bit trong thanh ghi điều khiển của 8255A (trong mode BSR): D0 D1 D2 D3 D4 D5 D6 D7 PHẦN II : BÁO CÁO THÍ NGHIỆM 1. Trình bày chức năng của Card PCBUS -2: ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ .......................................................................……............................................................ ............................................................................................……....................................... Trang 2
- Phòng thí nghiệm Vi xử lý Báo cáo thí nghiệm .................................................................................................................…….................. ......................................................................................................................................… …....................................................................................................................................... .................…….................................................................................................................. ......................................……............................................................................................. ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................... 2. Giải thích hoạt động của mạch giải mã địa chỉ port trên card PCBUS-2: ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ 3. Cho biết ý nghĩa của dàn công tắc SW DIP-8: ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ Trang 3
- Phòng thí nghiệm Vi xử lý Báo cáo thí nghiệm ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ 4. Trình bày cách điều khiển các LED sáng hay tắt. Viết chương trình điều khiển nhấp nháy 10 lần 2 Led giữa: ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ....................................... Trang 4
- Phòng thí nghiệm Vi xử lý Báo cáo thí nghiệm 5. Viết chương trình điều khiển Led sáng dần từ trái sang phải: ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ....................................... 6. Trình bày cách phát âm thanh ra loa và viết chương trình điều khiển loa kêu liên tục cho đến khi nhấn một phím bất kỳ trên bàn phím thì kết thúc: ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ Trang 5
- Phòng thí nghiệm Vi xử lý Báo cáo thí nghiệm ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ........................................................................................................................................... 7. Viết chương trình điều khiển loa kêu 10 tiếng: ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ........................................................................................................................................... Trang 6
- Phòng thí nghiệm Vi xử lý Báo cáo thí nghiệm 8. Viết chương trình điều khiển đồng thời Led và loa sao cho mỗi lần Led sáng thì phát âm thanh ra loa: ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ........................................................................................................................................... 9. Viết chương trình điều khiển đồng thời Led và loa sao cho loa kêu một lần ứng với mỗi 2 trạng thái của Led: ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ Trang 7
- Phòng thí nghiệm Vi xử lý Báo cáo thí nghiệm ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ........................................................................................................................................... 10. Trình bày cách đóng /ngắt Relay và viết chương trình đóng và ngắt lần lượt các Relay 2,3, mỗi lần đóng hay ngắt thì phát âm thanh ra loa ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ Trang 8
- Phòng thí nghiệm Vi xử lý Báo cáo thí nghiệm ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ 11. Trình bày cách nhận giá trị trên các SW1,SW2,SW3,SW4: ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ Trang 9
- Phòng thí nghiệm Vi xử lý Báo cáo thí nghiệm ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ 12. Viết chương trình thực hiện các động tác sau : Nhấn SW1: led chạy liên tục từ trái sang phải, mỗi lần 1 led. Nhấn SW2: nhấp nháy liên tục 2 led giữa. Nhấn SW3: led chạy liên tục từ ngoài vào trong và từ trong ra ngoài. Nhấn SW4: dừng quá trình chạy. Nhấn phím ESC (bàn phím máy tính): kết thúc chương trình. ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ Trang 10
- Phòng thí nghiệm Vi xử lý Báo cáo thí nghiệm ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ 13. Viết chương trình thực hiện các động tác sau : - Nhấn SW1 : led sáng theo quy luật mã nhị phân tăng dần. - Nhấn SW2 : phát âm thanh ra loa. - Nhấn SW3 : đóng lần lượt các Relay 1, 2, 3 - Nhấn SW4 : ngắt tất cảc các Relay, tắt Led và thoát chương trình Trang 11
- Phòng thí nghiệm Vi xử lý Báo cáo thí nghiệm ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ Trang 12
- Phòng thí nghiệm Vi xử lý Báo cáo thí nghiệm ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ................................................................... ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ ............................................................................................................................................ Trang 13
ADSENSE
CÓ THỂ BẠN MUỐN DOWNLOAD
Thêm tài liệu vào bộ sưu tập có sẵn:
Báo xấu
LAVA
AANETWORK
TRỢ GIÚP
HỖ TRỢ KHÁCH HÀNG
Chịu trách nhiệm nội dung:
Nguyễn Công Hà - Giám đốc Công ty TNHH TÀI LIỆU TRỰC TUYẾN VI NA
LIÊN HỆ
Địa chỉ: P402, 54A Nơ Trang Long, Phường 14, Q.Bình Thạnh, TP.HCM
Hotline: 093 303 0098
Email: support@tailieu.vn