ht82j30r Holtek Semiconductor Inc., ht82j30r Datasheet - Page 8

no-image

ht82j30r

Manufacturer Part Number
ht82j30r
Description
Ht82j30r/ht82j30a -- 16 Channel A/d Mcu With Spi Interface
Manufacturer
Holtek Semiconductor Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HT82J30R
Manufacturer:
HOLTEK
Quantity:
155
changes, the status register will be correspondingly up-
dated to reflect these changes. The ALU supports the
following functions:
Program Memory
The Program Memory is the location where the user
code or program is stored. The HT82J30R is a
One-Time Programmable, OTP, memory type device
where users can program their application code into the
device. 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 program
changes. OTP devices are also applicable for use in ap-
plications that require low or medium volume production
runs. The HT82J30A is a Mask memory type device and
offers the most cost effective solution for high volume
products.
Structure
The Program Memory has a capacity of 4K by 15 bits.
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
separate table pointer registers.
Special Vectors
Within the Program Memory, certain locations are re-
served for special usage such as reset and interrupts.
Rev. 1.10
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
Location 000H
This vector is reserved for use by the device reset for
program initialisation. After a device reset is initiated, the
program will jump to this location and begin execution.
Location 004H
This vector is used by the external interrupt. If the
INT0 external input pin on the device receives a high
to low transition, the program will jump to this location
and begin execution, if the interrupt is enabled and the
stack is not full.
Location 008H
This vector is used by the timer/event counter. If a
counter overflow occurs, the program will jump to this
location and begin execution if the timer interrupt is
enabled and the stack is not full.
8
Look-up Table
Any location within the Program Memory can be defined
as a look-up table where programmers can store fixed
data. To use the look-up table, the table pointer must
first be setup by placing the lower order address of the
look up data to be retrieved in the table pointer register,
TBLP. This register defines the lower 8-bit address of
the look-up table.
After setting up the table pointer, the table data can be
retrieved from the current Program Memory page or last
Program Memory page using the TABRDC[m] or
structions are executed, the lower order table byte from
the Program Memory will be transferred to the user de-
fined Data Memory register [m] as specified in the in-
struction. The higher order table data byte from the
Program Memory will be transferred to the TBLH special
register. Any unused bits in this transferred higher order
byte will be read as 0 .
The following diagram illustrates the addressing/data
flow of the look-up table:
TABRDL [m] instructions, respectively. When these in-
Location 00CH
This vector is used by the A/D converter interrupt ser-
vice program. If the interrupt is activated, when the
A/D conversion is completed, if the interrupt is en-
abled and the stack is not full, the program begins ex-
ecution at this location.
Location 010H
This vector is used by serial interface A. When 8-bits
of data have been received or transmitted success-
fully from serial interface A, the program will jump to
this location and begin execution if the interrupt is en-
abled and the stack is not full.
Location 014H
This vector is used by serial interface B. When 8-bits
of data have been received or transmitted success-
fully from serial interface B, the program will jump to
this location and begin execution if the interrupt is en-
abled and the stack is not full.
Location 018H
This vector is used by the external interrupt. If the
INT1 external input pin on the device receives a high
to low transition, the program will jump to this location
and begin execution, if the interrupt is enabled and the
stack is not full.
HT82J30R/HT82J30A
March 13, 2008

Related parts for ht82j30r