English
Language : 

C8051F960-B-GM Datasheet, PDF (344/492 Pages) Silicon Laboratories – Ultra Low Power 128K, LCD MCU Family
C8051F96x
26.4. Adjusting the VBAT Monitor Threshold
The VBAT Monitor is used primarily for the contrast control function, to detect when VBAT has fallen below
a specific threshold. The VBAT monitor threshold may be set independently of the contrast setting or it may
be linked to the contrast setting. When the VBAT monitor threshold is linked to the contrast setting, an off-
set (in 60mV steps) may be configured so that the VBAT monitor generates a VBAT low condition prior to
VBAT dropping below the programmed contrast voltage. The LCD0VBMCN register is used to enable and
configure the VBAT Monitor. The VBAT monitor may be enabled as a wake-up source to wake up the
device from Sleep mode when the battery is getting low. See the Power Management chapter for more
details.
SFR Definition 26.7. LCD0VBMCN: LCD0 VBAT Monitor Control
Bit
7
6
5
4
3
2
1
0
Name VBATMEN OFFSET
THRLD[4:0]
Type
R/W
R/W
R/W
R/W
Reset
0
0
0
0
0
0
0
0
SFR Page = 0x2; SFR Address = 0xA6
Bit
Name
Function
7 VBATMEN VBAT Monitor Enable
The VBAT Monitor should be enabled in Contrast Control Mode 2, Mode 3, and
Mode 4.
0: The VBAT Monitor is disabled.
1: The VBAT Monitor is enabled.
6
OFFSET VBAT Monitor Offset Enable
0: The VBAT Monitor Threshold is independent of the contrast setting.
1: The VBAT Monitor Threshold is linked to the contrast setting.
5
Unused Read = 0. Write = Don’t Care.
4:0 THRLD[4:0] VBAT Monitor Threshold
If OFFSET is set to 0b, this bit field has the same defintion as the CNTRST bit field
and can be programmed independently of the contrast.
If OFFSET is set to 1b, this bit field is interpreted as an offset to the currently pro-
grammed contrast setting. The LCD0CNTRST register should be written before
setting OFFSET to logic 1 and should not be changed as long as VBAT Moni-
tor Offset is enabled. When THRLD[4:0] is set to 00000b, the VBAT monitor
threshold is equal to the contrast voltage. When THRLD[4:0] is set to 00001b, the
VBAT monitor threshold is one step higher than the contrast voltage. The step size
is equal to the step size of the CNTRST bit field.
344
Rev. 1.0