Rev. 1.20 146 January 23, 2015 Rev. 1.20 147 January 23, 2015
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
Low Voltage Detector – LVD
EachdevicehasaLowVoltageDetectorfunction,alsoknownasLVD.Thisenablesthedeviceto
monitorthepowersupplyvoltage,V
DD
,andprovidesawarningsignalshoulditfallbelowacertain
level.Thisfunctionmaybeespeciallyusefulinbatteryapplicationswherethesupplyvoltagewill
graduallyreduceasthebatteryages,asitallowsanearlywarningbatterylowsignaltobegenerated.
TheLowVoltageDetectoralsohasthecapabilityofgeneratinganinterruptsignal.
LVD Register
TheLowVoltageDetectorfunctioniscontrolledusingasingleregisterwiththenameLVDC.Three
bitsinthisregister,VLVD2~VLVD0,areusedtoselectoneofvexedvoltagesbelowwhicha
lowvoltageconditionwillbedetemined.AlowvoltageconditionisindicatedwhentheLVDObitis
set.IftheLVDObitislow,thisindicatesthattheV
DD
voltageisabovethepresetlowvoltagevalue.
TheLVDENbitisusedtocontroltheoverallon/offfunctionofthelowvoltagedetector.Settingthe
bithighwillenablethelowvoltagedetector.Clearingthebittozerowillswitchofftheinternallow
voltagedetectorcircuits.Asthelowvoltagedetectorwillconsumeacertainamountofpower,itmay
bedesirabletoswitchoffthecircuitwhennotinuse,animportantconsiderationinpowersensitive
batterypoweredapplications.
LVDC Register
Bit 7 6 5 4 3 2 1 0
Name — — LVDO LVDEN — VLVD2 VLVD1 VLVD0
R/W — — R R/W — R/W R/W R/W
POR — — 0 0 — 0 0 0
Bit7~6 Unimplemented,readas"0"
Bit5 LVDO:LVDOutputFlag
0:NoLowVoltageDetect
1:LowVoltageDetect
Bit4 LVDEN:LowVoltageDetectorControl
0:Disable
1:Enable
Bit3 Unimplemented,readas"0"
Bit2~0 VLVD2 ~ VLVD0:SelectLVDVoltage
000:2.0V
001:2.2V
010:2.4V
011:2.7V
100:3.0V
101:3.3V
110:3.6V
111:4.0V
Note:TheV
LVR
ofthesethreedevicesisxedat2.55V,sotheV
LVD
shouldbesetto
2.7V~4.0V.