| Electronic Components Datasheet Search |
|
UPD17015 Datasheet(PDF) 15 Page - NEC |
|
|
|||||||||||||||||||||||||||||
UPD17015 Datasheet(HTML) 15 Page - NEC |
|
15 / 120 page ![]() 15 µPD17015 2.3 PROGRAM COUNTER Fig. 2-3 shows the configuration of the program counter. As shown in Fig. 2-3, the program counter consists of a 11-bit binary counter. The program counter is used to specify an address in program memory. Fig. 2-3 Program Counter Configuration PC 10 PC 9 PC 8 PC 7 PC 6 PC 5 PC 4 PC 3 PC 2 PC 1 PC 0 MSB LSB 11 bits 2.4 PROGRAM FLOW The execution flow of a program is controlled with the program counter, which specifies an address in program memory. This section describes the operation of several types of instructions. Fig. 2-4 shows the value set in the program counter when each instruction is executed. 2.4.1 Direct branch (“BR addr”) A direct branch instruction can branch to all addresses of program memory, 0000H to 05F7H. 2.4.2 Subroutines To call a subroutine, a direct subroutine call (“CALL addr”) is used. A direct subroutine call instruction can call a subroutine starting at any address in program memory, 0000H to 05F7H. RET or RETSK instruction is used as the return instruction from a subroutine. Fig. 2-4 Program Counter Value When Each Instruction Is Executed 00 0 0 0 0 00 0 0 0 b 10 b 9 b 8 b 7 b 6 b 5 b 4 b 3 b 2 b 1 b 0 BR CALL RET RETSK addr addr Instruction Value of program counter Program counter At power-on reset or CE reset Instruction operand (addr) Contents of address stack register (return address) |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | 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 |