| 数据搜索系统,热门电子元器件搜索 |
|
STLED524 数据表(PDF) 66 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STLED524 数据表(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 |
|
链接网址 |
| 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 |