Rev. 1.20
�6
�an�a�� 2�� 201�
Rev. 1.20
�7
�an�a�� 2�� 201�
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
Depending upon which device is used, the Data Memory is divided into several banks. Selecting the
required Data Memory area is achieved using the Bank Pointer.
The Data Memory is initialised to Bank 0 after a reset, except for a WDT time-out reset in the Power
Down Mode, in which case, the Data Memory bank remains unaffected. It should be noted that the
Special Function Data Memory is not affected by the bank selection with the exception of the EEC
register in Bank 1, which means that the Special Function Registers can be accessed from within any
bank. The EEC register in bank 1 can only be accessed by indirectly addressing the Data Memory.
Directly addressing the Data Memory will always result in Bank 0 being accessed irrespective of the
value of the Bank Pointer. Accessing data from banks other than Bank 0 must be implemented using
Indirect Addressing.
Device
7
6
5
4
3
2
1
0
BS82B12A-�
—
—
—
—
—
—
DMBP1
DMBP0
BS82C16A-�
—
—
—
—
—
—
DMBP1
DMBP0
BS82D20A-�
—
—
—
—
—
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
Bit 7 ~ 2
Unimplemented, read as "0"
Bit 1 ~ 0
DMBP1~DMBP0
: Select Data Memory Banks
00: Bank 0
01: Bank 1
10: Bank 2
11: Undefined
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
Bit 7 ~ 2
Unimplemented, read as "0"
Bit 1 ~ 0
DMBP1~DMBP0
: Select Data Memory Banks
00: Bank 0
01: Bank 1
10: Bank 2
11: Bank 3