Rev. 1.40
70
De�e��e� 1�� �01�
Rev. 1.40
71
De�e��e� 1�� �01�
BS67F340/BS67F350/BS67F360/BS67F370
Enhanced Touch A/D Flash MCU with LCD Driver
BS67F340/BS67F350/BS67F360/BS67F370
Enhanced Touch A/D Flash MCU with LCD Driver
Program Memory Bank Pointer – PBP
For the BS67F360/BS67F370 devices the Program Memory is divided into several banks. Selecting
the required Program Memory area is achieved using the Program Memory Bank Pointer, PBP. The
PBP register should be properly configured before the device executes the “Branch” operation using
the “JMP” or “CALL” instruction. After that a jump to a non-consecutive Program Memory address
which is located in a certain bank selected by the program memory bank pointer bits will occur.
PBP Register – BS67F360
Bit
7
6
5
4
3
2
1
0
Name
D7
D�
D�
D4
D3
D�
D1
PBP0
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
Bit 7~1
D7~D1
: General data bits and can be read or written.
Bit 0
PBP0
: Program Memory Bank Point bit 0
0: Bank 0
1: Bank 1
PBP Register – BS67F370
Bit
7
6
5
4
3
2
1
0
Name
D7
D�
D�
D4
D3
D�
PBP1
PBP0
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
Bit 7~2
D7~D2
: General data bits and can be read or written.
Bit 1~0
PBP1~PBP0
: Program Memory Bank Point bit 1~ bit 0
00: Bank 0
01: Bank 1
10: Bank 2
11: Bank 3
Accumulator − ACC
The Accumulator is central to the operation of any microcontroller and is closely related with
operations carried out by the ALU. The Accumulator is the place where all intermediate results
from the ALU are stored. Without the Accumulator it would be necessary to write the result of
each calculation or logical operation such as addition, subtraction, shift, etc., to the Data Memory
resulting in higher programming and timing overheads. Data transfer operations usually involve
the temporary storage function of the Accumulator; for example, when transferring data between
one user defined register and another, it is necessary to do this by passing the data through the
Accumulator as no direct transfer between two registers is permitted.
Program Counter Low Register − PCL
To provide additional program control functions, the low byte of the Program Counter is made
accessible to programmers by locating it within the Special Purpose area of the Data Memory. By
manipulating this register, direct jumps to other program locations are easily implemented. Loading
a value directly into this PCL register will cause a jump to the specified Program Memory location,
however, as the register is only 8-bit wide, only jumps within the current Program Memory page are
permitted. When such operations are used, note that a dummy cycle will be inserted.