Datenblatt-Suchmaschine für elektronische Bauteile
  German  ▼
ALLDATASHEETDE.COM

X  

AN2841 Datenblatt(PDF) 22 Page - STMicroelectronics

Teilenummer AN2841
Bauteilbeschribung  This application note deals with the general principles of LED dimming
PDF  31 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Hersteller  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2841 Datenblatt(HTML) 22 Page - STMicroelectronics

Back Button AN2841 Datasheet HTML 18Page - STMicroelectronics AN2841 Datasheet HTML 19Page - STMicroelectronics AN2841 Datasheet HTML 20Page - STMicroelectronics AN2841 Datasheet HTML 21Page - STMicroelectronics AN2841 Datasheet HTML 22Page - STMicroelectronics AN2841 Datasheet HTML 23Page - STMicroelectronics AN2841 Datasheet HTML 24Page - STMicroelectronics AN2841 Datasheet HTML 25Page - STMicroelectronics AN2841 Datasheet HTML 26Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 22 / 31 page
background image
Dimming application using an STM32 microcontroller
AN2841
22/31
3.3
Timing: set up of the main dimming timer
3.3.1
The main system timer, SysTick setting
The approach with interrupt + DMA + interrupt is considered the most effective.
The microcontroller can reach the maximum frame rate based on the minimum time
required for the all the necessary operations. A time reserve of 6% was used:
tDMAen re-enabling the DMA (~ 1.25 µs)
toneSPI time necessary for transfer of the data over SPI (~ LEDs × 55 ns)
tLEgen LE generation and new data pointer generation (~ 1 µs)
The total time needed for correct processing is the sum of the times above:
Equation 2
TotalTime = tDMAen + toneSPI × LEDs + tLEgen
= 1.25 µs + 55 ns × LEDs + 1 µs
= 2.25 µs + 55 ns × LEDs
The number of LEDs must be rounded up to nearest number commensurable by the length
of an SPI buffer. The SPI buffer length is 8 either or 16 bits in most cases.
Table 4.
LEDmap - reordered requested LED brightness configuration
Output
LED 1
LED 3
LED 2
LED x
LED i
Duty cycle (brightness)
2 / 2n
4 / 2n
6 / 2n
× / 2n
100%
Step of change (time of
change)
2
4
6
100%
Table row
12
3
i
Table 5.
Reduced lookup table
Row
Level
Output
LED 1
LED 2
LED 3
LED i
00
11
1
1
1
1
12
11
1
1
1
1
24
01
1
1
1
1
36
01
0
1
1
1
……
00
0
1
1
1
……
00
0
0
1
1
m(1)
1.
"m" is less or equal to number of LEDs = i
x + 1
00
0
0
0
1



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 28 29 30 31


Datenblatt Download

Go To PDF Page


Link URL



War ALLDATASHEET hilfreich?  [ DONATE ] 

Über Alldatasheet   |   Werbung   |   Kontakt   |   Privatsphäre und Datenschutz   |   Link zum Datenblatt    |   Linktausch   |   Hersteller
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