| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
PMS232 bảng dữ liệu(PDF) 29 Page - PADAUK Technology. |
|
|
|||||||||||||||||||||||||||||
PMS232 bảng dữ liệu(HTML) 29 Page - PADAUK Technology. |
|
29 / 94 page ![]() PMC232/PMS232 Series 12-bit ADC Enhanced FPPA TM 8-bit OTP Controller ©Copyright 2018, PADAUK Technology Co. Ltd Page 29 of 94 PDK-DS-PMx232_V104– Dec. 18, 2018 5-1-1. Program Counter Program Counter (PC) is the unit that contains the address of an instruction to be executed next. The program counter is automatically incremented at each instruction cycle so that instructions are retrieved sequentially from the program memory. Certain instructions, such as branches and subroutine calls, interrupt the sequence by placing a new value in the program counter. The bit length of the program counter is 12 for PMC232/PMS232. The program counter of FPP0 is 0 after hardware reset and 1 for FPP1. Whenever an interrupt happens in FPP0, the program counter will jump to ’h10 for interrupt service routine. Each FPP unit has its own program counter to control the program execution sequence. 5-1-2. Stack Pointer The stack pointer in each processing unit is used to point the top of the stack area where the local variables and parameters to subroutines are stored; the stack pointer register (sp) is located in IO address 0x02h. The bit number of stack pointer is 8 bit; the stack memory cannot be accessed over 160 bytes and should be defined within 160 bytes from 0x00h address. The stack memory of PMC232/PMS232 for each FPP unit can be assigned by user via stack pointer register, means that the depth of stack pointer for each FPP unit is adjustable in order to optimize system performance. The following example shows how to define the stack in the ASM (assembly language) project: ﹒ROMADR 0 GOTO FPPA0 GOTO FPPA1 ... ﹒RAMADR 0 // Address must be less than 0x100 WORD Stack0 [1] // one WORD WORD Stack1 [2] // two WORD ... FPPA0: SP = Stack0; // assign Stack0 for FPPA0, // one level call because of Stack0[1] ... call function1 ... FPPA1: SP = Stack1; // assign Stack1 for FPPA1, // two level call because of Stack1[2] ... call function2 ... In Mini-C project, the stack calculation is done by system software, user will not have effort on it, and the example is shown as below: void FPPA0 (void) { ... } |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |