HT49CV5 Holtek Semiconductor, HT49CV5 Datasheet - Page 8

no-image

HT49CV5

Manufacturer Part Number
HT49CV5
Description
A/D
Manufacturer
Holtek Semiconductor
Datasheet
The lower byte of the program counter (PCL) is avail-
able for program control and is a readable and writeable
register (06H). Moving data into the PCL performs a
short jump. The destination will be within 256 locations.
When a control transfer takes place, an additional
dummy cycle is required.
Program Memory - EPROM
The program memory (EPROM) is used to store the pro-
gram instructions which are to be executed. It also con-
tains data, table, and interrupt entries, and is organized
into 4096 16 bits format. The program counter is com-
posed of 12 bits, so it can directly access the whole pro-
gram memory without changing banks.
Certain locations in the ROM are reserved for special
usage:
Note:
Rev. 1.20
TABRDC [m]
TABRDL [m]
Location 000H
This area is reserved for use by the chip reset for pro-
gram initialization. After a chip reset is initiated, the
program will jump to this location and begin execution.
Location 004H
This area is reserved for the external interrupt service
program. If the INT0 input pin is activated, and the in-
terrupt is enabled, and the stack is not full, the pro-
gram will jump to this location and begin execution.
Instruction(s)
*11~*0: Table location bits
@7~@0: Table pointer bits
Program Memory
P11
*11
1
P10
*10
1
P9
*9
1
P8
*8
1
Table Location
@7
@7
*7
8
Table Location
P11~P8: Current program counter bits
@6
@6
*6
Location 008H
This area is reserved for the external interrupt service
program. If the INT1 input pin is activated, and the in-
terrupt is enabled, and the stack is not full, the pro-
gram will jump to this location and begin execution.
Location 00CH
This area is reserved for the Timer/Event Counter 0 in-
terrupt service program. If a timer interrupt results
from a Timer/Event Counter 0 overflow, and if the in-
terrupt is enabled and the stack is not full, the pro-
gram will jump to this location and begin execution.
Location 010H
This area is reserved for the Timer/Event Counter 1 in-
terrupt service program. If a timer interrupt results
from a Timer/Event Counter 1 overflow, and if the in-
terrupt is enabled and the stack is not full, the program
will jump to this location and begin execution.
Location 014H
This area is reserved for the Serial Interface interrupt
service program. If 8 bits of data have been received
or transmitted successfully from the serial interface,
and the interrupt is enabled, and the stack is not full,
the program will jump to this location and begin execu-
tion.
Location 018H
This area is reserved for the multi-function interrupt. If
a real time clock interrupt occurs, or if a rising edge is
detected from the RMT input pin, or if a falling edge is
detected from the RMT input pin, or if the RMT over-
flow and the related interrupts are enabled, and the
stack is not full, the program will jump to this location
and begin execution.
Table location
Any location within the program memory can be used
as a look-up table where programmers can store fixed
data. The instructions TABRDC [m] (the current
page, 1 page=256 words) and TABRDL [m] (the last
page) transfer the contents of the lower-order byte to
the specified data memory, and the contents of the
higher-order byte to TBLH (Table Higher-order byte
register) (08H). Only the destination of the lower-order
byte in the table is well-defined, the other bits of the ta-
ble word are all transferred to the lower portion of
TBLH. The TBLH is a read only register and the table
pointer (TBLP) is a read/write register (07H), which in-
dicates the table location. Before accessing the table,
the location must be placed in the TBLP. All table re-
@5
@5
*5
@4
@4
*4
HT49RV5/HT49CV5
@3
@3
*3
@2
@2
*2
@1
@1
April 14, 2006
*1
@0
@0
*0

Related parts for HT49CV5