| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
HT47C06L bảng dữ liệu(PDF) 6 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT47C06L bảng dữ liệu(HTML) 6 Page - Holtek Semiconductor Inc |
|
6 / 37 page ![]() HT47C06L Rev. 1.00 6 June 15, 2007 When executing a jump instruction, conditional skip ex- ecution, loading PCL register, subroutine call, initial re- set, internal interrupt, external interrupt or return from subroutine, etc., the microcontroller manages program control by loading the address corresponding to each in- struction. For conditional skip instructions, once the condition has been met, the next instruction, which has already been fetched during the current instruction execution, is dis- carded and a dummy cycle replaces it while the proper instruction is obtained. Otherwise proceed with the next instruction. The lower byte of the program counter (PCL) is avail- able for program control and is a readable and writeable register (06H). Moving data into the PCL performs a short jump. The destination will be within 256 locations. When a control transfer takes place, an additional dummy cycle is required. Program Memory - ROM The program memory is used to store the program in- structions, which are to be executed. It also contains data, table information and interrupt entries, and is orga- nized into 1024 ´16 bits, addressed by the program counter and table pointer registers. Certain locations within the program memory are re- served for special usage: · Location 000H This area is reserved for use by the chip reset for pro- gram initialization. After a chip reset is initiated, the program will jump to this location and begin execution. · Location 004H This area is reserved for the timer/event counter inter- rupt service program. If timer interrupt results from a timer/event counter A or B overflow, and if the inter- rupt is enabled and the stack is not full, the program will jump to this location and begin execution. · Location 008H This area is reserved for the time base interrupt ser- vice program. If a time base interrupt occurs, and if the interrupt is enabled and the stack is not full, the pro- gram will jump to this location and begin execution. · Table location Any location within the program memory can be used as a look-up table where programmers can store fixed data. The instructions TABRDC [m] (the current page, 1 page=256 words) and TABRDL [m] (the last page) transfer the contents of the lower-order byte to the specified data memory, and the higher-order byte to TBLH(08H). Only the destination of the lower-order byte in the table is well-defined, the higher-order byte of the table word are transferred to the TBLH. The ta- ble higher-order byte (TBLH) is a read only register. The table pointer (TBLP) is a read/write register(07H), which indicates the table location. Before accessing the table, the location must be placed in the TBLP. The TBLH is read only and cannot be restored. If the main routine and the ISR (interrupt service routine) both employ the table read instruction, the contents of the TBLH in the main routine are likely to be changed by the table read instruction used in the ISR. Errors can occur. In other words using the table read instruc- tion in the main routine and the ISR simultaneously should be avoided. However, if the table read instruc- tion has to be applied in both the main routine and the ISR, the interrupt is supposed to be disabled prior to the table read instruction. It will not be enabled until the TBLH has been backed up. All table related in- structions need two cycles to complete the operation. These areas may function as normal program mem- ory depending upon the requirements. D e v i c e I n i t i a l i z a t i o n P r o g r a m P r o g r a m R O M 1 6 b i t s L o o k - u p T a b l e ( 2 5 6 w o r d s ) N o t e : n r a n g e s f r o m 0 t o 3 T i m e B a s e I n t e r r u p t S u b r o u t i n e L o o k - u p T a b l e ( 2 5 6 w o r d s ) T i m e r / e v e n t C o u n t e r I n t e r r u p t S u b r o u t i n e 0 0 0 H 0 0 4 H 3 F F H n 0 0 H n F F H 0 0 8 H Program Memory Instruction(s) Table Location *9 *8 *7 *6 *5 *4 *3 *2 *1 *0 TABRDC [m] P9 P8 @7 @6 @5 @4 @3 @2 @1 @0 TABRDL [m] 1 1 @7 @6 @5 @4 @3 @2 @1 @0 Table Location Note: *9~*0: Bits of table location @7~@0: Bits of table pointer P9 ~P8: Bits of current program counter |
|
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 |