Chuyên đề II
Vi điều khiển và ứng dụng
Input Capture
Input capture
2
Bảng thanh ghi
3
Giải thích
4
Minh họa Input Capture
5
Ví dụ
6
Prescaler capture mode
7
External signal interrupt mode
the input capture module is configured for operation in
the external signal interrupt mode.
the configuration bits ICM<2:0>are set to 111.
the input pins ICx on rising edge generate an interrupt
request ICxIF.
The interrupt enable bit ICxIE is set
The interrupt priority level ICxIP<2:0>is defined
8
Ví dụ đọc dữ liệu từ bàn phím
9
Ví dụ khởi tạo
10
Finite state machine
11
Định nghĩa trạng thái
12
Xử lý finite state machine
13
Circular buffer
14
Circular buffer
15
Giải mã dữ liệu
16
Test dữ liệu
17