| 전자부품 데이터시트 검색엔진 |
|
AN2841 데이터시트(PDF) 20 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2841 데이터시트(HTML) 20 Page - STMicroelectronics |
|
20 / 31 page ![]() Dimming application using an STM32 microcontroller AN2841 20/31 3.2.2 Reduced lookup table (non redundant) Only the data that changes the LED driver output state is generated. A LED can change the state only once per complete PWM cycle: from one to zero. If there are i number of LEDs, there are i new data items for the LED drivers. For example, if i = 32 LEDs when using an 8-bit PWM, you need a cycle with i × i = 32 × 32 = 1024 loops. The inside of the loop is the same for full lookup table generation as described in Section 3.2.1. The lookup table row is computed only in case you need to change the LED intensity pattern (specific value of a parallel output configuration). Table 3, Table 4 and Table 5 bring better understanding of the lookup table reduction. The C code of the reduced lookup table generation is shown in the example below. Table 2. Full lookup table Step Output LED 1 LED 2 LED 3 … … LED i 0 11 1 1 1 11 1 1 2 11 1 1 3 01 1 1 4 01 1 1 5 01 0 1 6 01 0 1 … 00 0 1 … 00 0 1 2n 00 0 1 |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| 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 |