Electronic Components Datasheet Search |
|
HT46R51A Datasheet(PDF) 6 Page - Holtek Semiconductor Inc |
|
HT46R51A Datasheet(HTML) 6 Page - Holtek Semiconductor Inc |
6 / 43 page HT46R51A/HT46R52A Rev. 1.30 6 March 6, 2009 The lower byte of the PC (PCL) is a readable and writeable register (06H). Moving data into the PCL per- forms a short jump. The destination is within 256 loca- tions. When a control transfer takes place, an additional dummy cycle is required. Program Memory - EPROM The program memory is used to store the program in- structions which are to be executed. It also contains data, table, and interrupt entries, and is organized into 1024 ´15 (HT46R51A) or 2048´15 (HT46R52A) bits, addressed by the Program Counter and table pointer. Certain locations in the ROM are reserved for special usage: · Location 000H This location is reserved for program initialization. Af- ter a chip reset, the program always begins execution at location 000H. · Location 004H This location is reserved for the external interrupt ser- vice program. If the INT input pin is activated, the in- terrupt is enabled and the stack is not full, the program begins execution at this location. · Location 008H This location is reserved for the timer/event counter interrupt service program. If a timer interrupt results from a timer/event counter overflow, and the interrupt is enabled and the stack is not full, the program begins execution at location 008H. · Location 00CH Location 00CH is reserved for the A/D converter inter- rupt service program. If an A/D converter interrupt re- sults from an end of A/D conversion, and if the interrupt is enabled and the stack is not full, the pro- gram begins execution at location 00CH. · Table location Any location in the program memory can be used as look-up tables. The instructions ²TABRDC [m]² (the current page) and ²TABRDL [m]² (the last page) trans- fer the contents of the lower-order byte to the speci- fied data memory, and the higher-order byte to TBLH (08H). The lower-order byte table pointer TBLP (07H) are read/write registers, which indicate the table loca- tions. Before accessing the table, the location has to be placed in 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 instruc- tion, 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. Given this, using the ta- ble read instruction in the main routine and the ISR si- multaneously should be avoided. However, if the table read instruction has to be applied in both main routine and the ISR, the interrupt should be disabled prior to the table read instruction. It will not be enabled until the TBLH in the main routine has been backed-up. All table related instructions require 2 cycles to complete the operation. 1 5 b i t s P r o g r a m M e m o r y 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 E x t e r n a l I n t e r r u p t S u b r o u t i n e 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 L o o k - u p T a b l e ( 2 5 6 w o r d s ) L o o k - u p T a b l e ( 2 5 6 w o r d s ) A / D C o n v e r t e r I n t e r r u p t S u b r o u t i n e 1 0 0 H 3 0 0 H 1 F F H 0 0 0 H 0 0 4 H 0 0 8 H 0 0 C H 0 1 0 H 0 1 4 H 0 1 8 H 3 F F H H T 4 6 R 5 1 A 1 5 b i t s P r o g r a m M e m o r y 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 E x t e r n a l I n t e r r u p t S u b r o u t i n e 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 L o o k - u p T a b l e ( 2 5 6 w o r d s ) L o o k - u p T a b l e ( 2 5 6 w o r d s ) A / D C o n v e r t e r I n t e r r u p t S u b r o u t i n e 1 0 0 H 7 0 0 H 1 F F H 0 0 0 H 0 0 4 H 0 0 8 H 0 0 C H 0 1 0 H 0 1 4 H 0 1 8 H 7 F F H H T 4 6 R 5 2 A Program Memory |
Similar Part No. - HT46R51A_09 |
|
Similar Description - HT46R51A_09 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.COM |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | Contact us | Privacy Policy | 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 |