| Zakładka z wyszukiwarką danych komponentów |
|
STLED524 Arkusz danych(PDF) 66 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STLED524 Arkusz danych(HTML) 66 Page - STMicroelectronics |
|
66 / 72 page ![]() Application information STLED524 66/72 DocID026217 Rev 1 6.2.3 Example 8 - how to enable PWM operation Pattern has already been loaded into pattern 1 memory. In this example, we display pattern 1 with 50% of brightness which is achieved by enabling PWM. First of all, we enable PWM operation and set PWM register to 128 by using data in Table 65. Byte 1 represents SPI command to write to the control register memory. Byte 2 is the address where the writing starts. Byte 3 contains data written to address 20h (display visual control register). Byte 4 contains data written to address 21h (PWM control register). As per example 6, we display pattern 1 by writing data to Table 66. 6.2.4 Example 8 - scroll operation In this example we scroll with 2 blank rows and a speed set to 5. Pattern 2 replaces pattern 1. Both patterns, 1 and 2, have already been loaded into pattern memory according to example 5. Scroll operation should start with pattern 1, so we display pattern 1 first by writing data to Table 67. Table 63. SPI data to display pattern 1 Byte index 1 2 3 4 Data 0x00 0x00 0x01 0x01 Table 64. SPI data to display pattern 2 Byte index 1 2 3 4 Data 0x00 0x00 0x01 0x02 Table 65. SPI data to enable PWM operation (PWM control register = 128) Byte index 1 2 3 4 Data 0x00 0x20 0x02 0x80 Table 66. SPI data to display in pattern 1 Byte index 1 2 3 4 Data 0x00 0x00 0x01 0x01 |
|
Link URL |
| Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Link do karty katalogowej | Linki | Lista producentów 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 |