Rev. 1.20 36 January 23, 2015 Rev. 1.20 37 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
Bank Pointer – BP
Dependinguponwhichdeviceisused,theDataMemoryisdividedintoseveralbanks.Selectingthe
requiredDataMemoryareaisachievedusingtheBankPointer.
TheDataMemoryisinitialisedtoBank0afterareset,exceptforaWDTtime-outresetinthePower
DownMode,inwhichcase,theDataMemorybankremainsunaffected.Itshouldbenotedthatthe
SpecialFunctionDataMemoryisnotaffectedbythebankselectionwiththeexceptionoftheEEC
registerinBank1,whichmeansthattheSpecialFunctionRegisterscanbeaccessedfromwithinany
bank.TheEECregisterinbank1canonlybeaccessedbyindirectlyaddressingtheDataMemory.
DirectlyaddressingtheDataMemorywillalwaysresultinBank0beingaccessedirrespectiveofthe
valueoftheBankPointer.AccessingdatafrombanksotherthanBank0mustbeimplementedusing
IndirectAddressing.
Device 7 6 5 4 3 2 1 0
BS82B12A-3 — — — — — — DMBP1 DMBP0
BS82C16A-3 — — — — — — DMBP1 DMBP0
BS82D20A-3 — — — — — DMBP2 DMBP1 DMBP0
BP Register List
BP Register – BS82B12A-3
Bit 7 6 5 4 3 2 1 0
Name — — — — — — DMBP1 DMBP0
R/W — — — — — — R/W R/W
POR — — — — — — 0 0
Bit7~2 Unimplemented,readas"0"
Bit1~0 DMBP1~DMBP0:SelectDataMemoryBanks
00:Bank0
01:Bank1
10:Bank2
11:Undened
BP Register – BS82C16A-3
Bit 7 6 5 4 3 2 1 0
Name — — — — — — DMBP1 DMBP0
R/W — — — — — — R/W R/W
POR — — — — — — 0 0
Bit7~2 Unimplemented,readas"0"
Bit1~0 DMBP1~DMBP0:SelectDataMemoryBanks
00:Bank0
01:Bank1
10:Bank2
11:Bank3