Motor de Búsqueda de Datasheet de Componentes Electrónicos |
|
HT46R064 Datasheet(PDF) 20 Page - Holtek Semiconductor Inc |
|
HT46R064 Datasheet(HTML) 20 Page - Holtek Semiconductor Inc |
20 / 101 page HT46R064/065/066/0662/067 Rev. 1.30 20 January 22, 2013 Special Purpose Data Memory This area of Data Memory is where registers, necessary for the correct operation of the microcontroller, are stored. Most of the registers are both readable and writeable but some are protected and are readable only, the details of which are located under the relevant Spe- cial Function Register section. Note that for locations that are unused, any read instruction to these addresses will return the value ²00H². Special Function Registers To ensure successful operation of the microcontroller, certain internal registers are implemented in the Data Memory area. These registers ensure correct operation of internal functions such as timers, interrupts, etc., as well as external functions such as I/O data control. The location of these registers within the Data Memory be- gins at the address ²00H² and are mapped into both Bank 0 and Bank 1. Any unused Data Memory locations between these special function registers and the point where the General Purpose Memory begins is reserved and attempting to read data from these locations will re- turn a value of ²00H². Indirect Addressing Registers - IAR0, IAR1 The Indirect Addressing Registers, IAR0 and IAR1, al- though having their locations in normal RAM register space, do not actually physically exist as normal regis- ters. The method of indirect addressing for RAM data manipulation uses these Indirect Addressing Registers and Memory Pointers, in contrast to direct memory ad- dressing, where the actual memory address is speci- fied. Actions on the IAR0 and IAR1 registers will result in no actual read or write operation to these registers but rather to the memory location specified by their corre- sponding Memory Pointer, MP0 or MP1. Acting as a pair, IAR0 with MP0 and IAR1 with MP1 can together ac- cess data from the Data Memory. As the Indirect Ad- dressing Registers are not physically implemented, reading the Indirect Addressing Registers indirectly will return a result of ²00H² and writing to the registers indi- rectly will result in no operation. Memory Pointers - MP0, MP1 Two Memory Pointers, known as MP0 and MP1 are pro- vided. These Memory Pointers are physically imple- mented in the Data Memory and can be manipulated in the same way as normal registers providing a conve- nient way with which to indirectly address and track data. MP0 can only be used to indirectly address data in Bank 0 while MP1 can be used to address data in Bank 0 and Bank1. When any operation to the relevant Indi- rect Addressing Registers is carried out, the actual ad- dress that the microcontroller is directed to, is the address specified by the related Memory Pointer. Note that for the HT46R064 device, bit 7 of the Memory Pointers is not required to address the full memory space. When bit 7 of the Memory Pointers for these de- vices is read, a value of ²1² will be returned. Note that in- direct addressing using MP1 and IAR1 must be used to access any data in Bank 1. The following example shows how to clear a section of four Data Memory locations al- ready defined as locations adres1 to adres4. H T 4 6 R 0 6 4 H T 4 6 R 0 6 5 H T 4 6 R 0 6 6 G e n e r a l P u r p o s e R e g i s t e r s S p e c i a l P u r p o s e R e g i s t e r s 9 F H 7 F H I A R 0 0 0 H M P 0 0 1 H I A R 0 M P 0 4 0 H I A R 0 M P 0 B F H 3 F H 6 4 b y t e s 9 6 b y t e s 1 2 8 b y t e s H T 4 6 R 0 6 6 2 B a n k 0 G e n e r a l P u r p o s e R e g i s t e r s S p e c i a l P u r p o s e R e g i s t e r s F F H I A R 0 0 0 H M P 0 0 1 H I A R 0 M P 0 4 0 H 3 F H 5 F H B a n k 1 H T 4 6 R 0 6 7 B a n k 0 G e n e r a l P u r p o s e R e g i s t e r s S p e c i a l P u r p o s e R e g i s t e r s F F H I A R 0 0 0 H M P 0 0 1 H I A R 0 M P 0 4 0 H 3 F H B a n k 1 T o t a l 3 8 4 b y t e s T o t a l 2 2 4 b y t e s Data Memory Structure Note: Most of the Data Memory bits can be directly manipulated using the ²SET [m].i² and ²CLR [m].i ² with the exception of a few dedicated bits. The Data Memory can also be accessed through the memory pointer registers. |
Número de pieza similar - HT46R064_13 |
|
Descripción similar - HT46R064_13 |
|
|
Enlace URL |
Política de Privacidad |
ALLDATASHEET.ES |
¿ALLDATASHEET es útil para Ud.? [ DONATE ] |
Todo acerca de Alldatasheet | Publicidad | Contáctenos | Política de Privacidad | Intercambio de Enlaces | Lista de Fabricantes 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 |