![]() |
Electronic Components Datasheet Search |
|
UPD784938 Datasheet(PDF) 83 Page - NEC |
|
|
UPD784938 Datasheet(HTML) 83 Page - NEC |
83 / 733 page ![]() 83 CHAPTER 3 CPU ARCHITECTURE Preliminary User’s Manual U13987EJ1V0UM00 3.7 Control Registers Control registers consist of the program counter (PC), program status word (PSW), and stack pointer (SP). 3.7.1 Program counter (PC) This is a 20-bit binary counter that holds address information on the next program to be executed (see Figure 3-7). Normally, the PC is incremented automatically by the number of bytes in the fetched instruction. When an instruction associated with a branch is executed, the immediate data or register contents are set in the PC. Upon RESET input, the 16-bit data in address 0 and 1 is set in the low-order 16 bits, and 0000 in the high-order 4 bits of the PC. Figure 3-7. Program Counter (PC) Format 19 PC 0 3.7.2 Program status word (PSW) The program status word (PSW) is a 16-bit register comprising various flags that are set or reset according to the result of instruction execution. Read accesses and write accesses are performed in high-order 8-bit (PSWH) and low-order 8-bit (PSWL) units. Individual flags can be manipulated by bit-manipulation instructions. The contents of the PSW are automatically saved to the stack when a vectored interrupt request is acknowledged or a BRK instruction is executed, and automatically restored when an RETI or RETB instruction is executed. When context switching is used, the contents are automatically saved in RP3, and automatically restored when an RETCS or RETCSB instruction is executed. RESET input resets (to 0) all bits. “0” must always be written to the bits written as “0” in Figure 3-8. The contents of bits written as “-” are undefined when read. Figure 3-8. Program Status Word (PSW) Format 7 UF PSWH Symbol 6 RBS2 5 RBS1 4 RBS0 3 – 2 – 1 – 0 – 7 S PSWL 6 Z 5 RSS 4 AC 3 IE 2 P/V 1 0 0 CY The flags are described below. (1) Carry flag (CY) The carry flag records a carry or borrow resulting from an operation. This flag also records the shifted-out value when a shift/rotate instruction is executed, and functions as a bit accumulator when a bit-manipulation instruction is executed. The status of the CY flag can be tested with a conditional branch instruction. |
Similar Part No. - UPD784938 |
|
Similar Description - UPD784938 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.COM |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | Contact us | Privacy Policy | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
Family Site : ic2ic.com |
icmetro.com |