Rev. 1.20 42 January 23, 2015 Rev. 1.20 43 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
EED Register
Bit 7 6 5 4 3 2 1 0
Name D7 D6
D5 D4 D3 D2 D1 D0
R/W R/W R/W R/W R/W R/W R/W R/W R/W
POR 0 0 0 0 0 0 0 0
Bit7~0 DataEEPROMdata
DataEEPROMdatabit7~bit0
EEC Register
Bit 7 6 5 4 3 2 1 0
Name — — — — WREN WR RDEN RD
R/W — — — — R/W R/W R/W R/W
POR — — — — 0 0 0 0
Bit7~4 Unimplemented,readas"0"
Bit3 WREN:DataEEPROMWriteEnable
0:Disable
1:Enable
ThisistheDataEEPROMWriteEnableBitwhichmustbesethighbeforeData
EEPROMwriteoperationsarecarriedout.ClearingthisbittozerowillinhibitData
EEPROMwriteoperations.
Bit2 WR:EEPROMWriteControl
0:Writecyclehasnished
1:Activateawritecycle
ThisistheDataEEPROMWriteControlBitandwhensethighbytheapplication
programwillactivateawritecycle.Thisbitwillbeautomaticallyresettozerobythe
hardwareafterthewritecyclehasnished.Settingthisbithighwillhavenoeffectif
theWRENhasnotrstbeensethigh.
Bit1 RDEN:DataEEPROMReadEnable
0:Disable
1:Enable
ThisistheDataEEPROMReadEnableBitwhichmustbesethighbeforeData
EEPROMreadoperationsarecarriedout.ClearingthisbittozerowillinhibitData
EEPROMreadoperations.
Bit0 RD:EEPROMReadControl
0:Readcyclehasnished
1:Activateareadcycle
ThisistheDataEEPROMReadControlBitandwhensethighbytheapplication
programwillactivateareadcycle.Thisbitwillbeautomaticallyresettozerobythe
hardwareafterthereadcyclehasnished.Settingthisbithighwillhavenoeffectif
theRDENhasnotrstbeensethigh.
Note:TheWREN,WR,RDENandRDcannotbesetto"1"atthesametimeinoneinstruction.The
WRandRDcannotbesetto"1"atthesametime.