參數(shù)資料
型號(hào): ST90158M9LVT6
英文描述: 8/16-BIT MICROCONTROLLER (MCU) WITH 16 TO 64K ROM. OTP OR EPROM. 512 TO 2K RAM - ST9 + FAMILY
中文描述: 16位產(chǎn)品微控制器(MCU),并配備16至64K的光盤。檢察官辦公室或EPROM。 512 2K的內(nèi)存- ST9家庭
文件頁數(shù): 22/199頁
文件大小: 2813K
代理商: ST90158M9LVT6
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁當(dāng)前第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁第82頁第83頁第84頁第85頁第86頁第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁
22/199
ST90158 - DEVICE ARCHITECTURE
SYSTEM REGISTERS
(Cont’d)
2.3.2 Flag Register
The Flag Register contains 8 flags which indicate
the CPU status. During an interrupt, the flag regis-
ter is automatically stored in the system stack area
and recalled at the end of the interrupt service rou-
tine, thus returning the CPU to its original status.
This occurs for all interrupts and, when operating
in nested mode, up to seven versions of the flag
register may be stored.
FLAG REGISTER (FLAGR)
R231- Read/Write
Register Group: E (System)
Reset value: 0000 0000 (00h
)
Bit 7 =
C
:
Carry Flag
.
The carry flag is affected by:
Addition (
add, addw, adc, adcw
),
Subtraction (
sub, subw, sbc, sbcw
),
Compare (
cp, cpw
),
Shift Right Arithmetic (
sra, sraw
),
Shift Left Arithmetic (
sla, slaw
),
Swap Nibbles (
swap
),
Rotate (
rrc, rrcw, rlc, rlcw, ror,
rol
),
Decimal Adjust (
da
),
Multiply and Divide (
mul, div, divws
).
When set, it generally indicates a carry out of the
most significant bit position of the register being
used as an accumulator (bit 7 for byte operations
and bit 15 for word operations).
The carry flag can be set by the Set Carry Flag
(
scf
) instruction, cleared by the Reset Carry Flag
(
rcf
) instruction, and complemented by the Com-
plement Carry Flag (
ccf
) instruction.
Bit 6 =
Z:
Zero Flag
. The Zero flag is affected by:
Addition (
add, addw, adc, adcw
),
Subtraction (
sub, subw, sbc, sbcw
),
Compare (
cp, cpw
),
Shift Right Arithmetic (
sra, sraw
),
Shift Left Arithmetic (
sla, slaw
),
Swap Nibbles (
swap
),
Rotate (rrc
, rrcw, rlc, rlcw, ror,
rol)
,
Decimal Adjust (
da
),
Multiply and Divide (
mul, div, divws
),
Logical (
and, andw, or, orw, xor,
xorw, cpl
),
Increment and Decrement (
inc, incw, dec,
decw
),
Test (
tm, tmw, tcm, tcmw, btset
).
In most cases, the Zero flag is set when the contents
of the register being used as an accumulator be-
come zero, following one of the above operations.
Bit 5 =
S
:
Sign Flag
.
The Sign flag is affected by the same instructions
as the Zero flag.
The Sign flag is set when bit 7 (for a byte opera-
tion) or bit 15 (for a word operation) of the register
used as an accumulator is one.
Bit 4 =
V
:
Overflow Flag
.
The Overflow flag is affected by the same instruc-
tions as the Zero and Sign flags.
When set, the Overflow flag indicates that a two's-
complement number, in a result register, is in er-
ror, since it has exceeded the largest (or is less
than the smallest), number that can be represent-
ed in two’s-complement notation.
Bit 3 =
DA
:
Decimal Adjust Flag
.
The DA flag is used for BCD arithmetic. Since the
algorithm for correcting BCD operations is differ-
ent for addition and subtraction, this flag is used to
specify which type of instruction was executed
last, so that the subsequent Decimal Adjust (
da
)
operation can perform its function correctly. The
DA flag cannot normally be used as a test condi-
tion by the programmer.
Bit 2 =
H
:
Half Carry Flag.
The H flag indicates a carry out of (or a borrow in-
to) bit 3, as the result of adding or subtracting two
8-bit bytes, each representing two BCD digits. The
H flag is used by the Decimal Adjust (
da
) instruc-
tion to convert the binary result of a previous addi-
tion or subtraction into the correct BCD result. Like
the DA flag, this flag is not normally accessed by
the user.
Bit 1 = Reserved bit (must be 0).
Bit 0 =
DP
:
Data/Program Memory Flag
.
This bit indicates the memory area addressed. Its
value is affected by the Set Data Memory (
sdm
)
and Set Program Memory (
spm
) instructions. Re-
fer to the Memory Management Unit for further de-
tails.
7
0
C
Z
S
V
DA
H
-
DP
9
相關(guān)PDF資料
PDF描述
ST90158M9T6 8-BIT MICROCONTROLLER
ST90R158M9LVT6 FUSE,5A,250V,5X20MM,FAST ACTING
ST90R158T6 8/16-BIT MICROCONTROLLER (MCU) WITH 16 TO 64K ROM. OTP OR EPROM. 512 TO 2K RAM - ST9 + FAMILY
ST901 HIGH VOLTAGE IGNITION COIL DRIVER NPN POWER DARLINGTON
ST901T HIGH VOLTAGE IGNITION COIL DRIVER NPN POWER DARLINGTON
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
ST90158M9Q6 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:8/16-BIT MCU FAMILY WITH UP TO 64K ROM/OTP/EPROM AND UP TO 2K RAM
ST90158M9T1 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:8/16-BIT MCU FAMILY WITH UP TO 64K ROM/OTP/EPROM AND UP TO 2K RAM
ST90158M9T6 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microcontroller
ST90158P9C6 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-Bit Microcontroller
ST90158-ST90135 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:8/16-BIT MCU FAMILY WITH UP TO 64K ROM/OTP/EPROM AND UP TO 2K RAM