| 数据搜索系统,热门电子元器件搜索 |
|
HT86B05 数据表(PDF) 26 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT86B05 数据表(HTML) 26 Page - Holtek Semiconductor Inc |
|
26 / 79 page ![]() HT86BXX/HT86BRXX Rev. 1.60 26 October 20, 2009 If the stack is full and an enabled interrupt takes place, the interrupt request flag will be recorded but the ac- knowledge signal will be inhibited. When the Stack Pointer is decremented, by RET or RETI, the interrupt will be serviced. This feature prevents stack overflow al- lowing the programmer to use the structure more easily. However, when the stack is full, a CALL subroutine in- struction can still be executed which will result in a stack overflow. Precautions should be taken to avoid such cases which might cause unpredictable program branching. Arithmetic and Logic Unit - ALU The arithmetic-logic unit or ALU is a critical area of the microcontroller that carries out arithmetic and logic op- erations of the instruction set. Connected to the main microcontroller data bus, the ALU receives related in- struction codes and performs the required arithmetic or logical operations after which the result will be placed in the specified register. As these ALU calculation or oper- ations may result in carry, borrow or other status changes, the status register will be correspondingly up- dated to reflect these changes. The ALU supports the following functions: · Arithmetic operations ADD, ADDM, ADC, ADCM, SUB, SUBM, SBC, SBCM, DAA · Logic operations AND, OR, XOR, ANDM, ORM, XORM, CPL, CPLA · Rotation RRA, RR, RRCA, RRC, RLA, RL, RLCA, RLC · Increment and Decrement INCA, INC, DECA, DEC · Branch decision JMP, SZ, SZA, SNZ, SIZ, SDZ, SIZA, SDZA, CALL, RET, RETI Program Memory The Program Memory is the location where the user code or program is stored. By using the appropriate pro- gramming tools, this Program memory device offer us- ers the flexibility to conveniently debug and develop their applications while also offering a means of field programming. Organization The program memory stores the program instructions that are to be executed. It also includes data, table and interrupt entries, addressed by the Program Counter along with the table pointer. The program memory size is 8192 ´16 bits. Certain locations in the program mem- ory are reserved for special usage. Special Vectors Within the Program Memory, certain locations are re- served for special usage such as reset and interrupts. · Location 000H This vector is reserved for use by the device reset for program initialisation. After a device reset is initiated, the program will jump to this location and begin execu- tion. · Location 004H This vector is used by the external interrupt. If the ex- ternal interrupt pin on the device goes low, the pro- gram will jump to this location and begin execution if the external interrupt is enabled and the stack is not full. · Location 008H This internal vector is used by the 8-bit Timer 0. If a overflow occurs, the program will jump to this location and begin execution if the timer interrupt is enabled and the stack is not full. · Location 00CH This internal vector is used by the 8-bit Timer1. If a overflow occurs, the program will jump to this location and begin execution if the timer interrupt is enabled and the stack is not full. · Location 010H For the HT86B40, HT86B50, HT86B50, HT86B60, HT86BR60, HT86B70, HT86B80, HT86B90 devices, this internal vector is used by the 16-bit Timer2. If a overflow occurs, the program will jump to this location and begin execution if the timer interrupt is enabled and the stack is not full. · Location 014H This internal vector is used by the 8-bit Timer3. If a overflow occurs, the program will jump to this location and begin execution if the timer interrupt is enabled and the stack is not full. 1 F F F H 1 6 b i t s 1 6 b i t s 0 1 5 H 0 0 0 H 0 0 4 H 0 0 8 H 0 0 C H 0 1 0 H I n i t i a l i s a t i o n V e c t o r E x t e r n a l I n t e r r u p t V e c t o r I n i t i a l i s a t i o n V e c t o r E x t e r n a l I n t e r r u p t V e c t o r T i m e r 0 I n t e r r u p t V e c t o r H T 8 6 B 0 5 / H T 8 6 B 1 0 H T 8 6 B R 1 0 / H T 8 6 B 2 0 H T 8 6 B 3 0 / H T 8 6 B R 3 0 0 1 4 H T i m e r 0 I n t e r r u p t V e c t o r T i m e r 1 I n t e r r u p t V e c t o r T i m e r 1 I n t e r r u p t V e c t o r T i m e r 2 I n t e r r u p t V e c t o r T i m e r 3 I n t e r r u p t V e c t o r T i m e r 3 I n t e r r u p t V e c t o r H T 8 6 B 4 0 / H T 8 6 B 5 0 H T 8 6 B 6 0 / H T 8 6 B R 6 0 H T 8 6 B 7 0 / H T 8 6 B 8 0 H T 8 6 B 9 0 Program Memory Structure |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |