HT46R52A Holtek Semiconductor, HT46R52A Datasheet - Page 5

no-image

HT46R52A

Manufacturer Part Number
HT46R52A
Description
(HT46R51A / HT46R52A) A/D Type 8-Bit OTP MCU
Manufacturer
Holtek Semiconductor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
HT46R52A
Quantity:
1 345
www.DataSheet4U.com
DataSheet
4
U
.com
Functional Description
Execution Flow
The system clock for the microcontroller is derived from
either a crystal or an RC oscillator. The system clock is
internally divided into four non-overlapping clocks. One
instruction cycle consists of 4 system clock cycles.
Instruction fetching and execution are pipelined in such
a way that a fetch and decoding takes an instruction cy-
cle while execution take the next instruction cycle. The
pipelining scheme causes each instruction to effectively
execute in a cycle. If an instruction changes the program
counter, two cycles are required to complete the instruc-
tion.
Program Counter - PC
For HT46R51A, the program counter (PC) is 10 bits
wide and controls the sequence in which the instructions
stored in the program ROM are executed. The contents
of the PC can specify a maximum of 1024 addresses.
Note:
Rev. 1.00
Initial Reset
External Interrupt
Timer/Event Counter Overflow
A/D Converter Interrupt
Skip
Loading PCL
Jump, Call Branch
Return from Subroutine
*b10~*b0: Program counter bits
S10~S0: Stack register bits
#10~#0: Instruction code bits
@7~@0: PCL bits, PC10~PC8: Original PC counter, remain unchanged
For the HT46R51A, since the program counter is 10 bits wide (b0~b9), the b10 columns in the table are not ap-
plicable.
For the HT46R52A, since the program counter is 11 bits wide (b0~b10)
Mode
PC10 PC9
*b10
#10
S10
0
0
0
0
*b9
#9
S9
0
0
0
0
Program Counter
Execution Flow
PC8
*b8
S8
#8
0
0
0
0
5
*b7
@7
S7
#7
0
0
0
0
For HT46R52A, the program counter (PC) is 11 bits
wide and controls the sequence in which the instructions
stored in the program ROM are executed. The contents
of the PC can specify a maximum of 2048 addresses.
After accessing a program memory word to fetch an in-
struction code, the contents of the program counter are
incremented by one. The program counter then points to
the memory word containing the next instruction code.
When executing a jump instruction, conditional skip ex-
ecution, loading register, subroutine call or return from
subroutine, initial reset, internal interrupt, external inter-
rupt or return from interrupts, the PC manipulates the
program transfer by loading the address corresponding
to each instruction.
The conditional skip is activated by instructions. Once
the condition is met, the next instruction, fetched during
the current instruction execution, is discarded and a
dummy cycle replaces it to get the proper instruction.
Otherwise proceed to the next instruction.
Program Counter+2
Program Counter
*b6
@6
S6
#6
0
0
0
0
*b5
@5
S5
#5
0
0
0
0
*b4
@4
HT46R51A/HT46R52A
#4
S4
0
0
0
0
*b3
@3
S3
#3
0
0
1
1
@2
*b2
#2
S2
0
1
0
1
August 24, 2006
*b1
@1
S1
#1
0
0
0
0
*b0
@0
#0
S0
0
0
0
0

Related parts for HT46R52A