HT83F10 HOLTEK [Holtek Semiconductor Inc], HT83F10 Datasheet - Page 11

no-image

HT83F10

Manufacturer Part Number
HT83F10
Description
Flash Type Voice OTP MCU
Manufacturer
HOLTEK [Holtek Semiconductor Inc]
Datasheet
Because the TBLH register is a read-only register and
cannot be restored, care should be taken to ensure its
protection if both the main routine and Interrupt Service
Routine use table read instructions. If using the table
read instructions, the Interrupt Service Routines may
change the value of the TBLH and subsequently cause
errors if used again by the main routine. As a rule it is
Note:
Data Memory
The Data Memory is a volatile area of 8-bit wide RAM in-
ternal memory and is the location where temporary in-
formation is stored. Divided into two sections, the first of
these is an area of RAM where special function registers
are located. These registers have fixed locations and
are necessary for correct operation of the device. Many
of these registers can be read from and written to di-
rectly under program control, however, some remain
protected from user manipulation. The second area of
RAM Data Memory is reserved for general purpose use.
All locations within this area are read and write accessi-
ble under program control.
Structure
The Data Memory has a bank, known as Bank, which is
implemented in 8-bit wide RAM. The RAM Data Memory
is located in Bank 0 which is also subdivided into two sec-
tions, the Special Purpose Data Memory and the General
Purpose Data Memory. The length of these sections is
dictated by the type of microcontroller chosen.
The start address of the RAM Data Memory for all de-
vices is the address 00H , and the last Data Memory
address is FFH . Registers which are common to all
microcontrollers, such as ACC, PCL, etc., have the
same Data Memory address.
Note: Most of the RAM Data Memory bits can be directly manipulated using the SET [m].i and CLR [m].i instruc-
Rev. 1.00
TABRDC [m]
TABRDL [m]
Instruction
tions with the exception of a few dedicated bits. The RAM Data Memory can also be accessed through the
Memory Pointer registers MP.
*10~*0: Current Program ROM table
@7~@0: Write @7~@0 to TBLP pointer register
P10
*10
1
P9
*9
1
P8
*8
1
RAM Data Memory Structure
@7
@7
*7
Table Location
@6
@6
11
*6
Table Location
recommended that simultaneous use of the table read
instructions should be avoided. However, in situations
where simultaneous use cannot be avoided, the inter-
rupts should be disabled prior to the execution of any
main routine table-read instructions. Note that all table
related instructions require two instruction cycles to
complete their operation.
P10~P8: Write P12~P8 to TBHP pointer register
General Purpose Data Memory
All microcontroller programs require an area of
read/write memory where temporary data can be stored
and retrieved for use later. It is this area of RAM memory
that is known as General Purpose Data Memory. This
area of Data Memory is fully accessible by the user pro-
gram for both read and write operations. By using the
can be set or reset under program control giving the
user a large range of flexibility for bit manipulation in the
Data Memory.
Special Purpose Data Memory
This area of Data Memory, is located in Bank, where
registers, necessary for the correct operation of the
microcontroller, are stored. Most of the registers are
both readable and writable but some are protected and
are readable only, the details of which are located under
the relevant Special Function Register section. Note
that for locations that are unused, any read instruction to
these addresses will return the value 00H .
SET [m].i and CLR [m].i instructions individual bits
@5
@5
*5
@4
@4
*4
@3
@3
*3
@2
@2
*2
@1
@1
HT83FXX
*1
May 12, 2009
@0
@0
*0

Related parts for HT83F10