| 数据搜索系统,热门电子元器件搜索 |
|
PCA9532 数据表(PDF) 14 Page - NXP Semiconductors |
|
|
|||||||||||||||||||||||||||||
PCA9532 数据表(HTML) 14 Page - NXP Semiconductors |
|
14 / 29 page ![]() PCA9532_4 © NXP B.V. 2009. All rights reserved. Product data sheet Rev. 04 — 17 March 2009 14 of 29 NXP Semiconductors PCA9532 16-bit I2C-bus LED dimmer 8.2 Programming example The following example will show how to set LED0 to LED3 on. It will then set LED4 and LED5 to blink at 1 Hz at a 50 % duty cycle. LED6 and LED7 will be set to be dimmed at 25 % of their maximum brightness (duty cycle = 25 %). LED8 to LED15 will be set to off. Fig 15. High value resistor in parallel with the LED Fig 16. Device supplied by a lower voltage 002aac189 LED VDD LEDn 100 k Ω VDD 002aac190 LED VDD LEDn 3.3 V 5 V Table 11. Programming PCA9532 Program sequence I2C-bus START S PCA9532 address with A0 to A2 = LOW C0h PSC0 subaddress + Auto-Increment 12h Set prescaler PSC0 to achieve a period of 1 second: PSC0 = 151 97h Set PWM0 duty cycle to 50 %: PWM0 = 128 80h Set prescaler PCS1 to dim at maximum frequency: PSC1 = 0 00h Set PWM1 output duty cycle to 25 %: PWM1 = 64 40h Set LED0 to LED3 on 55h Set LED4 and LED5 to PWM0, and LED6 or LED7 to PWM1 FAh Set LED8 to LED11 off 00h Set LED12 to LED15 off 00h STOP P Blink period 1 PSC0 1 + 152 ------------------------ == PWM 0 256 ----------------- 0.5 = Blink period max = PWM 1 256 ----------------- 0.25 = |
|
|
链接网址 |
| 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 |