ST7FLITE02 STMICROELECTRONICS [STMicroelectronics], ST7FLITE02 Datasheet - Page 76

no-image

ST7FLITE02

Manufacturer Part Number
ST7FLITE02
Description
8-BIT MICROCONTROLLER WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST7FLITE02M6
Manufacturer:
ST
0
Part Number:
ST7FLITE02M6 1
Manufacturer:
ST
0
Part Number:
ST7FLITE02Y0B6
Manufacturer:
ST
0
Part Number:
ST7FLITE02Y0M6
Manufacturer:
ST
Quantity:
5 262
Part Number:
ST7FLITE02YDB6
Manufacturer:
STM
Quantity:
3 867
Part Number:
ST7FLITE02YDB6
Manufacturer:
ST
0
Part Number:
ST7FLITE02YOM6
Manufacturer:
ST
0
ST7LITE0x, ST7LITESx
12 INSTRUCTION SET
12.1 ST7 ADDRESSING MODES
The ST7 Core features 17 different addressing
modes which can be classified in seven main
groups:
Table 18. ST7 Addressing Mode Overview
Note:
1. At the time the instruction is executed, the Program Counter (PC) points to the instruction following JRxx.
76/125
1
Inherent
Immediate
Direct
Indexed
Indirect
Relative
Bit operation
Inherent
Immediate
Short
Long
No Offset
Short
Long
Short
Long
Short
Long
Relative
Relative
Bit
Bit
Bit
Bit
Addressing Mode
Mode
Direct
Direct
Direct
Direct
Direct
Indirect
Indirect
Indirect
Indirect
Direct
Indirect
Direct
Indirect
Direct
Indirect
Relative
Indexed
Indexed
Indexed
Indexed
Indexed
Relative
nop
ld A,#$55
ld A,$55
ld A,($55,X)
ld A,([$55],X)
jrne loop
bset
byte,#5
Example
nop
ld A,#$55
ld A,$10
ld A,$1000
ld A,(X)
ld A,($10,X)
ld A,($1000,X)
ld A,[$10]
ld A,[$10.w]
ld A,([$10],X)
ld A,([$10.w],X)
jrne loop
jrne [$10]
bset $10,#7
bset [$10],#7
btjt $10,#7,skip
btjt [$10],#7,skip 00..FF
Syntax
00..FF
0000..FFFF
00..FF
00..1FE
0000..FFFF
00..FF
0000..FFFF
00..1FE
0000..FFFF
PC-128/PC+127
PC-128/PC+127
00..FF
00..FF
00..FF
Destination/
Source
The ST7 Instruction set is designed to minimize
the number of bytes required per instruction: To do
so, most of the addressing modes may be subdi-
vided in two submodes called long and short:
– Long addressing mode is more powerful be-
– Short addressing mode is less powerful because
The ST7 Assembler optimizes the use of long and
short addressing modes.
cause it can use the full 64 Kbyte address space,
however it uses more bytes and more CPU cy-
cles.
it can generally only access page zero (0000h -
00FFh range), but the instruction size is more
compact, and faster. All memory to memory in-
structions use short addressing modes only
(CLR, CPL, NEG, BSET, BRES, BTJT, BTJF,
INC, DEC, RLC, RRC, SLL, SRL, SRA, SWAP)
1)
1)
00..FF
00..FF
00..FF
00..FF
00..FF
00..FF
00..FF
Address
Pointer
(Hex.)
byte
word
byte
word
byte
byte
byte
Pointer
(Hex.)
Size
+ 0
+ 1
+ 1
+ 2
+ 0 (with X register)
+ 1 (with Y register)
+ 1
+ 2
+ 2
+ 2
+ 2
+ 2
+ 1
+ 2
+ 1
+ 2
+ 2
+ 3
Length
(Bytes)

Related parts for ST7FLITE02