English
Language : 

BU21170MUV Datasheet, PDF (12/33 Pages) Rohm – Capacitive Switch Controller IC
BU21170MUV
【0xE0-0xEB : Configuration of PWM】
Name:
PWM_CFG
Address: 0xE0 – 0xEB
Description:
Each of the 4 PWM timers (PWM-0/1/2/3) has 5 parameters.
When the register for PWM operation (0xFC) is changed from 0 to 1, these setting will be enabled.
I. RIS_PWM*:Rising Time Adjustment range : 0x0 ≤ RIS_PWM ≤ 0xF
Rising Time = About 317msec x RIS_PWM* (0 ≤ Rising Time ≤ 4755 [msec])
II. FAL_PWM*:Falling Time Adjustment range : 0x0 ≤ FAL_PWM ≤ 0xF
Falling Time = About 317msec x FAL_PWM* (0 ≤ Falling Time ≤4755 [msec])
III. ON_PWM*:Lights-On Time. Adjustment range : 0x1 ≤ RIS_PWM ≤ 0xF.
Lights-On Time = About 300msec x ON_PWM* (300 ≤ Lights-On Time ≤ 4500 [msec])
If the setting value is 0x0, the PWM timer continues to lighting. In the case of continuous lighting, the
way how to turn off the light is to change the value of the register for PWM operation (0xFC) from 1 to
0.
IV. OFF_PWM*:Lights-Off Time. Adjustment range : 0x0 ≤ OFF_PWM ≤ 0xF
Lights-Off Time = About 300msec x OFF_PWM* (0 ≤ Lights-Off Time ≤ 4500 [msec])
V. REP_PWM*:Repeat Count.
In the case that the setting value is 0x0 or 0x1, non repeat.
In the case that the setting value is 0xF, unlimited repeat.
In the case that the setting value is from 0x2 to 0xE, repeat as many times as the setting value.
When the PWM function is finished, the bit PWM which is included in ‘Interrupt factor’ register (0x10)
will be set to 1 and the level of the port INT will be High-Level. The bit PWM which is included in
‘Interrupt factor’ register is cleared by the writing 0 to the bit PWM which is included in ‘Interrupt clear’
register. And FAL_PWM is applied in the falling time.
Figure 7. PWM waveform
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
0xE0
FAL_PWM0[3:0]
RIS_PWM0[3:0]
0xE1
OFF_PWM0[3:0]
ON_PWM0[3:0]
0xE2
-
-
-
-
REP_PWM0[3:0]
0xE3
FAL_PWM1[3:0]
RIS_PWM1[3:0]
0xE4
OFF_PWM1[3:0]
ON_PWM1[3:0]
0xE5
REP_PWM1[3:0]
0xE6
FAL_PWM2[3:0]
RIS_PWM2[3:0]
0xE7
OFF_PWM2[3:0]
ON_PWM2[3:0]
0xE8
REP_PWM2[3:0]
0xE9
FAL_PWM3[3:0]
RIS_PWM3[3:0]
0xEA
OFF_PWM3[3:0]
ON_PWM3[3:0]
0xEB
REP_PWM3[3:0]
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial val.
0
0
0
0
0
0
0
0
[ 0xEC : Mask Interrupt of PWM continuous flashing]
Name:
MASK_PWM_FINISH
Address: 0xEC
Description: This register is the mask function for the interrupt of the end of the each LED PWM drive.
1 : Masked 0 : Unmasked (default)
Bit7
Bit6
Bit5 Bit4
Bit3
Bit2
Bit1
Bit0
0xEC
-
-
-
- MSK_PWM3 MSK_PWM2 MSK_PWM1 MSK_PWM0
R/W
-
-
-
-
R/W
R/W
R/W
R/W
Initial val.
0
0
0
0
0
0
0
0
www.rohm.com
© 2013 ROHM Co., Ltd. All rights reserved.
TSZ22111・15・001
12/29
TSZ02201-0L5L0F300830-1-2
14.Jul.2016 Rev.002