EasyManuals Logo

Holtek HT48R30A-1 User Manual

Default Icon
174 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #29 background imageLoading...
Page #29 background image
tion can still be executed which will result in a stack overflow. Precautions should be taken to avoid
such cases which might cause unpredictable program branching.
Note
1. For the HT48R10A-1/HT48C10-1 and HT48R30A-1/HT48C30-1, N=4, i.e. 4 levels of stack
available.
2. For the HT48R50A-1/HT48C50-1, N=6, i.e. 6 levels of stack available.
3. For the HT48R70A-1/HT48C70-1 and HT48RU80/HT48CU80, N=16, i.e. 16 levels of stack
available.
Arithmetic and Logic Unit - ALU
The arithmetic-logic unit or ALU is a critical area of the microcontroller that carries out arithmetic
and logic operations of the instruction set. Connected to the main microcontroller data bus, the
ALU receives related instruction codes and performs the required arithmetic or logical operations
after which the result will be placed in the specified register. As these ALU calculation or opera
-
tions may result in carry, borrow or other status changes, the status register will be correspond
-
ingly updated to reflect these changes. The ALU supports the following functions:
·
Arithmetic operations ADD, ADDM, ADC, ADCM, SUB, SUBM, SBC, SBCM, DAA
·
Logic operations AND, OR, XOR, ANDM, ORM, XORM, CPL, CPLA
·
Rotation RRA, RR, RRCA, RRC, RLA, RL, RLCA, RLC
·
Increment and Decrement INCA, INC, DECA, DEC
·
Branch decision JMP, SZ, SZA, SNZ, SIZ, SDZ, SIZA, SDZA, CALL, RET, RETI
Program Memory
The Program Memory is the location where the user code or program is stored. For
microcontrollers, two types of Program Memory are usually supplied. The first type is the One-
Time Programmable (OTP) Memory where users can program their application code into the de-
vice. Devices with OTP memory are denoted by having an ²R² within their device name. By using
the appropriate programming tools, OTP devices offer users the flexibility to freely develop their
applications which may be useful during debug or for products requiring frequent upgrades or pro-
gram changes. OTP devices are also applicable for use in applications that require low or medium
volume production runs. The other type of memory is the mask ROM memory, denoted by having
a ²C² within the device name. These devices offer the most cost effective solutions for high volume
products.
Organization
The Program Memory has a capacity of 1K by 14 to 16K by 16 bits depending upon which device
is selected. The Program Memory is addressed by the Program Counter and also contains data,
table information and interrupt entries. Table data, which can be setup in any location within the
Program Memory, is addressed by a separate table pointer register. In the case of the
HT48RU80/HT48CU80 devices, the Program Memory is divided into two Banks, Bank 0 and Bank
1, each with a capacity of 8K. The Program Memory Bank is selected by controlling Bit 5 of the
Bank Pointer Register. Clearing this bit selects Bank 0 while setting the bit selects Bank 1. Care
must be exercised when using the Bank Pointer Register as it is also used to control the Data Mem
-
ory Bank Pointer.
20
I/O Type MCU

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Holtek HT48R30A-1 and is the answer not in the manual?

Holtek HT48R30A-1 Specifications

General IconGeneral
BrandHoltek
ModelHT48R30A-1
CategoryMicrocontrollers
LanguageEnglish

Related product manuals