Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN4157 Datasheet(PDF) 10 Page - STMicroelectronics

Part # AN4157
Description  STM32F3DISCOVERY peripheral firmware examples
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4157 Datasheet(HTML) 10 Page - STMicroelectronics

Back Button AN4157 Datasheet HTML 6Page - STMicroelectronics AN4157 Datasheet HTML 7Page - STMicroelectronics AN4157 Datasheet HTML 8Page - STMicroelectronics AN4157 Datasheet HTML 9Page - STMicroelectronics AN4157 Datasheet HTML 10Page - STMicroelectronics AN4157 Datasheet HTML 11Page - STMicroelectronics AN4157 Datasheet HTML 12Page - STMicroelectronics AN4157 Datasheet HTML 13Page - STMicroelectronics AN4157 Datasheet HTML 14Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 10 / 24 page
background image
Peripheral firmware examples description
AN4157
10/24
Doc ID 023629 Rev 1
3.8
FPU example
3.8.1
Purpose
This example provides information on FPU instructions.
3.8.2
Description
This example shows the benefits of using the STM32F3 FPU. It computes simple
mathematical and standard operations with floating point input numbers.
●
The time spent for the calculation of these operations wheen FPU is enabled is about
30 µs while it is about 50 µs when FPU is disabled. The gain is consequently of 40% .
●
In term of code size, using the IAR toolchain, the gain is about 15%:
–
FPU enabled: 4264 bytes of Flash memory
–
FPU disabled: 4920 bytes of Flash memory
3.9
GPIO toggle example
3.9.1
Purpose
This example shows how to use the GPIO port bit set/reset registers (BSRR and BRR) for
I/O toggling.
3.9.2
Description
In this example:
●
GPIOE clock is enabled.
●
GPIOE pins 14 and 15 are configured.
●
In a while loop, the ODR14 and ODR15 bits are set in the GPIOE output data register
(ODR) by setting the corresponding bits in the port bit set/reset register (BSRR). Then
the ODR14 and ODR15 bits are reset in the GPIOC output data register (ODR) by
setting the corresponding bits in the port bit reset register (BRR).
●
A delay is inserted between setting and resetting the GPIOE ODR14 and ODR15 bits.
When the program is executed, the two LEDs, LED7 and LED10, are turned ON then OFF in
an infinite loop. The duration between the ON and OFF states corresponds to the inserted
delay.
Note:
Connect the oscilloscope to the pins PE14 and PE15.



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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