DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

ST6285BQ1 View Datasheet(PDF) - STMicroelectronics

Part Name
Description
Manufacturer
ST6285BQ1 Datasheet PDF : 78 Pages
First Prev 51 52 53 54 55 56 57 58 59 60 Next Last
ST62T85B/E85B
5 SOFTWARE
5.1 ST6 ARCHITECTURE
The ST6 software has been designed to fully use bits of the opcode with the byte following the op-
the hardware in the most efficient way possible code. The instructions (JP, CALL) which use the
while keeping byte usage to a minimum; in short, extended addressing mode are able to branch to
to provide byte efficient programming capability. any address of the 4K bytes Program space.
The ST6 core has the ability to set or clear any
register or RAM location bit of the Data space with
a single instruction. Furthermore, the program
An extended addressing mode instruction is two-
byte long.
may branch to a selected address depending on
the status of any bit of the Data space. The carry
bit is stored with the value of the bit when the SET
or RES instruction is processed.
Program Counter Relative. The relative address-
ing mode is only used in conditional branch in-
structions. The instruction is used to perform a test
and, if the condition is true, a branch with a span of
-15 to +16 locations around the address of the rel-
5.2 ADDRESSING MODES
ative instruction. If the condition is not true, the in-
The ST6 core offers nine addressing modes,
) which are described in the following paragraphs.
t(s Three different address spaces are available: Pro-
gram space, Data space, and Stack space. Pro-
c gram space contains the instructions which are to
u be executed, plus the data for immediate mode in-
d structions. Data space contains the Accumulator,
ro the X,Y,V and W registers, peripheral and In-
put/Output registers, the RAM locations and Data
P ROM locations (for storage of tables and con-
te stants). Stack space contains six 12-bit RAM cells
le used to stack the return addresses for subroutines
and interrupts.
so Immediate. In the immediate addressing mode,
b the operand of the instruction follows the opcode
O location. As the operand is a ROM byte, the imme-
- diate addressing mode is used to access con-
) stants which do not change during program execu-
t(s tion (e.g., a constant used to initialize a loop coun-
ter).
uc Direct. In the direct addressing mode, the address
d of the byte which is processed by the instruction is
ro stored in the location which follows the opcode. Di-
rect addressing allows the user to directly address
P the 256 bytes in Data Space memory with a single
te two-byte instruction.
le Short Direct. The core can address the four RAM
o registers X,Y,V,W (locations 80h, 81h, 82h, 83h) in
s the short-direct addressing mode. In this case, the
binstruction is only one byte and the selection of the
Olocation to be processed is contained in the op-
struction which follows the relative instruction is
executed. The relative addressing mode instruc-
tion is one-byte long. The opcode is obtained in
adding the three most significant bits which char-
acterize the kind of the test, one bit which deter-
mines whether the branch is a forward (when it is
0) or backward (when it is 1) branch and the four
less significant bits which give the span of the
branch (0h to Fh) which must be added or sub-
tracted to the address of the relative instruction to
obtain the address of the branch.
Bit Direct. In the bit direct addressing mode, the
bit to be set or cleared is part of the opcode, and
the byte following the opcode points to the ad-
dress of the byte in which the specified bit must be
set or cleared. Thus, any bit in the 256 locations of
Data space memory can be set or cleared.
Bit Test & Branch. The bit test and branch ad-
dressing mode is a combination of direct address-
ing and relative addressing. The bit test and
branch instruction is three-byte long. The bit iden-
tification and the tested condition are included in
the opcode byte. The address of the byte to be
tested follows immediately the opcode in the Pro-
gram space. The third byte is the jump displace-
ment, which is in the range of -127 to +128. This
displacement can be determined using a label,
which is converted by the assembler.
Indirect. In the indirect addressing mode, the byte
processed by the register-indirect instruction is at
the address pointed by the content of one of the in-
direct registers, X or Y (80h,81h). The indirect reg-
code. Short direct addressing is a subset of the di- ister is selected by the bit 4 of the opcode. A regis-
rect addressing mode. (Note that 80h and 81h are ter indirect instruction is one byte long.
also indirect registers).
Inherent. In the inherent addressing mode, all the
Extended. In the extended addressing mode, the information necessary to execute the instruction is
12-bit address needed to define the instruction is contained in the opcode. These instructions are
obtained by concatenating the four less significant one byte long.
60/78
60

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]