công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN3288 bảng dữ liệu(PDF) 10 Page - STMicroelectronics

tên linh kiện AN3288
Giải thích chi tiết về linh kiện  The purpose of this application note is to provide an accurate description
PDF  27 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3288 bảng dữ liệu(HTML) 10 Page - STMicroelectronics

Back Button AN3288 Datasheet HTML 6Page - STMicroelectronics AN3288 Datasheet HTML 7Page - STMicroelectronics AN3288 Datasheet HTML 8Page - STMicroelectronics AN3288 Datasheet HTML 9Page - STMicroelectronics AN3288 Datasheet HTML 10Page - STMicroelectronics AN3288 Datasheet HTML 11Page - STMicroelectronics AN3288 Datasheet HTML 12Page - STMicroelectronics AN3288 Datasheet HTML 13Page - STMicroelectronics AN3288 Datasheet HTML 14Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 27 page
background image
Firmware design
AN3288
10/27
Doc ID 18011 Rev 2
3
Firmware design
Once the system architecture is defined, firmware implementation is fundamental because
the MCU controls the several devices and manages the resource optimization; the MCU
sets the system clock and enables the SPI peripheral for the data transferring with the
accelerometer. The choice of a state machine has allowed the three main process steps
(acquisition, elaboration, and actuation) to be put into three states, making the algorithm
more flexible and easy to manage.
The algorithm designed for controlling the system and the data elaboration and light
actuation during braking is described in the following paragraphs.
3.1
State machine
The state machine organizes the operations which take place in this application. It has been
designed as event-driven systems based on three main states called ACQUIRE,
PROCESS, and ACTUATE. At any given time, the application exists in one of these three
states.
The block diagram of the designed state machine is shown in Figure 8.
Figure 8.
State machine block diagram
After the system initialization, the algorithm uses polling within a loop to determine when to
read data. In the first state (ACQUIRE), the data acquisition is performed by the MCU which
continuously receives data from the accelerometer and puts them in a buffer. In the
PROCESS state, first the MCU elaborates data, filtering them from high frequency noise
caused by mechanical vibrations (see Section 3.2), and then compares the filtered values
with a thresholds equation system to determinate the effort of the braking.
Finally, in the ACTUATE state, the MCU performs the light actuation. As anticipated, the
system is event-driven but the MCU executes the third state only if the deceleration value is
higher than the activation level; this is a useful solution in order to avoid accidental actuation
due to harsh road conditions.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com