參數(shù)資料
型號(hào): UPD78323
廠商: NEC Corp.
英文描述: 16/8-BIT SINGLE-CHIP MICROCONTROLLER
中文描述: 16/8-BIT單片機(jī)
文件頁(yè)數(shù): 20/86頁(yè)
文件大?。?/td> 454K
代理商: UPD78323
20
μ
PD78323, 78324
2.2.1
Control Register
The control registers carry out dedicated functions such as control of the program sequence, status and stack memory,
and modification of operand addressing. They consist of three 16-bit registers and one 8-bit register.
(1)
Program counter (PC)
This is a 16-bit register which holds the address information of the next program to be executed. It is normally incremented
according to the number of bytes of the instruction to be fetched. If an instruction with data branch is executed, immediate
data and the register content are set. RESET input sets and branches the data of 0000H and 0001H reset vector tables
in the PC.
(2)
Program status word (PSW)
This is a 16-bit register consisting of various flags which are set or reset by the result of instruction execution. Read/
write access is carried out in units of the higher 8 bits (PSWH) or lower 8 bits (PSWL). Each flag can be operated using
the bit operation instruction. If an interrupt request is made or BRK instruction is executed, data is automatically saved in
the stack and is recovered by RETI or RETB instruction.
All bits are reset to 0 by RESET input.
Figure 2-3. PSW Format
(a)
Interrupt priority level transition flag (LT)
7
6
5
4
3
2
1
0
UF
RBS2 RBS1 RBS0
0
0
0
0
7
6
5
4
3
2
1
0
S
Z
RSS
AC
IE
P/V
LT
CY
This flag is used to control the interrupt priority. For normal operation of the interrupt control circuit, this bit must
not be operated by a program.
(b)
Carry flag (CY)
If a carry is generated out of bit 7 or 15 as a result of the execution of an operation instruction or a borrow is generated
into bit 7 or 15, this flag is set to 1. In all other cases, this flag is reset to 0. This flag can be tested by the conditional
branch instruction.
When a bit control instruction is executed, this flag functions as a bit accumulator.
(c) Zero flag (Z)
When the operation result is zero, this flag is set to 1. In all other cases, this flag is reset to 0. This flag can be tested
by the conditional branch instruction.
(d) Sign flag (S)
When MSB of the operation result is “1”, this flag is set to 1. When the MSB is “0”, this flag is reset to 0. This flag
can be tested by the conditional branch instruction.
(e)
Parity/overflow flag (P/V)
Only when an overflow or underflow occurs as two’s complement during execution of an arithmetic operation
instruction, this flag is set to 1. In all other cases, it is reset to 0 (overflow flag operation).
If the bit number of the operation result set to 1 is even during execution of an logic operation instruction, this flag
is set to 1. If the bit number is odd, this flag is reset to 0 (parity flag operation).
This flag can be tested by the conditional branch instruction.
PSWH
PSWL
相關(guān)PDF資料
PDF描述
UPD78323LP 16/8-BIT SINGLE-CHIP MICROCONTROLLER
UPD78324 16/8-BIT SINGLE-CHIP MICROCONTROLLER
UPD784217AY 16-BIT SINGLE-CHIP MICROCONTROLLERS
UPD784217AYGF 16-BIT SINGLE-CHIP MICROCONTROLLERS
UPD784217AGC 16-BIT SINGLE-CHIP MICROCONTROLLERS
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
UPD78365AGF3B9 制造商: 功能描述: 制造商:undefined 功能描述:
UPD784031GC-8BT-A 制造商:Renesas Electronics Corporation 功能描述:MCU 8BIT/16BIT 78K4 CISC ROMLESS 3.3V/5V 80PQFP - Trays 制造商:Renesas Electronics 功能描述:16 制造商:Renesas Electronics 功能描述:16 Cut Tape
UPD784031GK-9EU-A 制造商:Renesas Electronics Corporation 功能描述:16BIT K4 ROMLESS - Bulk
UPD784031YGC-8BT 制造商:Renesas Electronics Corporation 功能描述:
UPD784031YGC-8BT-A 制造商:Renesas Electronics Corporation 功能描述: