Zakładka z wyszukiwarką danych komponentów |
|
HT82A525R Arkusz danych(PDF) 15 Page - Holtek Semiconductor Inc |
|
HT82A525R Arkusz danych(HTML) 15 Page - Holtek Semiconductor Inc |
15 / 71 page · Location 018H Location 018H is reserved for the Serial Interface 2. When 8 bits data have been received or transmitted successfully from Serial Interface 2, the related interrupts are enabled, and the stack is not full, the program begins execution at location 018H. · Table location Any location in the program memory can be used as a look-up tables. There are three methods to read the ROM data using two table read instructions ²TABRDC² and ²TABRDL², transfer the contents of the lower-order byte to the specified data memory, and the higher-order byte to TBLH (08H). The three methods are shown as follows: ¨ The instruction ²TABRDC [m]² (the current page, one page=256 words), where the table location is defined by TBLP (07H) in the current page. The configuration option, TBHP, is disabled (de- fault). ¨ The instructions ²TABRDC [m]², where the table location is defined by registers TBLP (07H) and TBHP (01FH). The configuration option, TBHP, is enabled. ¨ The instruction ²TABRDL [m]², where the table locations is defined by registers TBLP (07H) in the last page (0F00H~0FFFH). Instruction Table Location *11 *10 *9 *8 *7 *6 *5 *4 *3 *2 *1 *0 TABRDC [m] P11 P10 P9 P8 @7 @6 @5 @4 @3 @2 @1 @0 TABRDL [m] 1111 @7 @6 @5 @4 @3 @2 @1 @0 Table Location Note: *11~*0: Table location bits P11~P8: Current program counter bits @7~@0: Table pointer bits Only the destination of the lower-order byte in the table is well-defined, the other bits of the table word are transferred to the lower portion of TBLH. The Table Higher-order byte register (TBLH) is read only and cannot be restored. The table pointer (TBLP, TBHP) is a read/write register (07H, 1FH), which indicates the table location. Before accessing the table, the location must be placed in the TBLP and TBHP registers(If the configuration option TBHP is disabled, the value in TBHP has no effect). 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 is likely to be changed by the table read instruction used in the ISR. As a result errors may occur. In other words, using the table read instruction in the main routine and in the ISR simultaneously should be avoided. However, if the table read instruction has to be applied in both the main routine and the ISR, the interrupt should be disabled prior to the table read instruction. It will not be enabled until the TBLH has been backed up. All table related instructions require two cycles to complete the operation. These areas may function as normal program memory depending on the requirements. Once TBHP is enabled, the instruction ²TABRDC [m]² reads the ROM data as defined by TBLP and TBHP register value. Otherwise, if the configuration option TBHP is disabled, the instruction ²TABRDC [m]² reads the ROM data as defined by TBLP and the current program counter bits. Rev. 1.80 15 March 11, 2016 HT82A525R I/O Type USB 8-Bit OTP MCU with SPI |
Podobny numer części - HT82A525R_16 |
|
Podobny opis - HT82A525R_16 |
|
|
Link URL |
Polityka prywatności |
ALLDATASHEET.PL |
Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Linki | Lista producentów 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 |