LAB3: Learning the Development Environment

13 253 0
LAB3: Learning the Development Environment

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Tinh chỉnh thiết kế ở lab 2 bằng cách: Tích hợp thêm một số tính năng mới: Phím điều khiển Giao tiếp với máy tính Startup Task Timer Interrupt and Time Base A Dynamic Scheduler Flow Rate Measurement OLED Display Local Keypad Local Serial Communications

REPORT LAB3: Learning the Development Environment The Next Step Nhóm : Trần Xuân Việt 11DT2 Nguyễn Trường Thi 11DT2 Đoàn Ngọc Yên Vui 11DT2 Nguyễn Đặng Nhật 11DT2 Mục đích lab: • Tinh chỉnh thiết kế lab cách: – Tích hợp thêm số tính mới: + Phím điều khiển + Giao tiếp với máy tính Khái quát yêu cầu chung: • • • • • • • Startup Task Timer Interrupt and Time Base A Dynamic Scheduler Flow Rate Measurement OLED Display Local Keypad Local Serial Communications XÂY DỰNG SƠ ĐỒ USE CASE CHO HỆ THỐNG XÂY DỰNG FUNCTION DECOMPOSITION XÂY DỰNG CLASS DIAGRAM FUNCTION PROTOTYPES • • • • • • • void Measure (void* taskDataPtr); void Compute (void* taskDataPtr); void Status (void* taskDataPtr); void KeypadConsole (void* taskDataPtr); void LocalComs (void* taskDataPtr); void OLEDdisplay (void* taskDataPtr); void WarningAlarm (void* taskDataPtr); TCB struct struct MyStruct { void (*myTask)(void*); void *taskDataPtr; struct MyStruct *next; struct MyStruct *prev; }; OLED display function void OLEDdisplay (void* dt) { display* temp=dt; RIT128x96x4StringDraw("Temperature: ",0,40,15); print_integer(*(temp->tempCorrectedPtr),78,40,15); RIT128x96x4StringDraw("Flow Rate:",0,55,15); print_integer(*(temp->flrCorrectedPtr),66,55,15); RIT128x96x4StringDraw("CarbonLevel:",0,70,15); print_integer(*(temp->carbonLevelCorrectedPtr),78,70,15); RIT128x96x4StringDraw("SalinityLevel:",0,85,15); print_integer(*(temp->salinityLevelCorrectedPtr),90,85,15); RIT128x96x4StringDraw("Battery: ",0,0,15); print_integer(*(temp->batteryStatePtr),50,0,15); } CẢI TIẾN CỦA HỆ THỐNG • Timer Interrupt and Time Base: Thay software delay hardware timer interrupt • Local Serial Communication: liệu hiển thị OLED hình máy tính thông qua cổng serial vi xử lý • Keypad: sử dụng thêm phím keypad kit phím keyboard máy tính để điều khiển hoạt động hệ thống Demo Lab The normal range for the measurements is specified as follows: Temperature: 20 F to 30 F Flow Rate: 120 liters per second CarbonLevel: 380 ppm SalinityLevel: 30 ppt Battery: Greater than 20% charge remaining THANKS FOR YOUR LISTENNING [...]... OLED hoặc màn hình máy tính thông qua cổng serial của vi xử lý • Keypad: sử dụng thêm các phím keypad trên kit và các phím keyboard của máy tính để điều khiển hoạt động của hệ thống Demo Lab 2 The normal range for the measurements is specified as follows: Temperature: 20 F to 30 F Flow Rate: 120 liters per second CarbonLevel: 380 ppm SalinityLevel: 30 ppt Battery: Greater than 20% charge remaining THANKS ... thêm phím keypad kit phím keyboard máy tính để điều khiển hoạt động hệ thống Demo Lab The normal range for the measurements is specified as follows: Temperature: 20 F to 30 F Flow Rate: 120 liters

Ngày đăng: 24/12/2015, 00:25

Từ khóa liên quan

Mục lục

  • Slide 1

  • Slide 2

  • Slide 3

  • Slide 4

  • Slide 5

  • Slide 6

  • Slide 7

  • Slide 8

  • Slide 9

  • Slide 10

  • Slide 11

  • Slide 12

  • Slide 13

Tài liệu cùng người dùng

Tài liệu liên quan