Os motores de busca de Datasheet de Componentes eletrônicos
  Portuguese  ▼
ALLDATASHEETPT.COM

X  

AN3288 Folha de dados(PDF) 10 Page - STMicroelectronics

Nome de Peças AN3288
Descrição Electrónicos  The purpose of this application note is to provide an accurate description
PDF  27 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrônico  STMICROELECTRONICS [STMicroelectronics]
Página de início  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3288 Folha de dados(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


Folha de dados Download

Go To PDF Page


Ligação URL



ALLDATASHEET é útil para você?  [ DONATE ] 

Sobre Alldatasheet   |   Publicidade   |   Contato conosco   |   Privacy Policy   |   Link para a ficha técnica    |   roca de Link   |   Lista de Fabricantes
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