HT46RU67 Holtek Semiconductor Inc., HT46RU67 Datasheet - Page 8

no-image

HT46RU67

Manufacturer Part Number
HT46RU67
Description
Ht46ru67/ht46cu67 -- A/d Type 8-bit Mcu With Lcd
Manufacturer
Holtek Semiconductor Inc.
Datasheet
Functional Description
Execution Flow
The system clock is derived from either a crystal or an
RC oscillator or a 32768Hz crystal oscillator. It is inter-
nally divided into four non-overlapping clocks. One in-
struction cycle consists of four system clock cycles.
Instruction fetching and execution are pipelined in such
a way that a fetch takes one instruction cycle while de-
coding and execution takes the next instruction cycle.
The pipelining scheme allows each instruction to be ef-
fectively executed in a cycle. If an instruction changes
the value of the program counter, two cycles are re-
quired to complete the instruction.
Note:
Rev. 1.00
Initial Reset
External Interrupt 0 or
A/D Converter Interrupt
External Interrupt 1 or
Serial Interface Interrupt
Timer/Event Counter 0 Overflow
Timer/Event Counter 1 Overflow
UART Bus Interrupt or
Serial Interface Interrupt
Multi-function Interrupt
Skip
Loading PCL
Jump, Call Branch
Return from Subroutine
*14~*0: Program counter bits
#12~#0: Instruction code bits
Mode
BP.6 BP.5 #12 #11 #10 #9
S14 S13 S12 S11 S10 S9
*14 *13 *12 *11 *10
*14 *13 *12 *11 *10
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Program Counter
Execution Flow
Program Counter + 2 (Within the current bank)
0
0
0
0
0
0
0
8
0
0
0
0
0
0
0
Program Counter - PC
The program counter is 15 bits wide and controls the se-
quence in which the instructions stored in the program
ROM are executed. The contents of the PC can specify
a maximum of 32768 16 addresses.
After accessing a program memory word to fetch an in-
struction code, the value of the PC is incremented by 1.
The PC then points to the memory word containing the
next instruction code.
When executing instructions requiring jumps to
non-consecutive addresses such as a jump instruc-
tion,a subroutine call, interrupt or reset, etc., the
S14~S0: Stack register bits
@7~@0: PCL bits
*9
*9
0
0
0
0
0
0
0
Program Counter
#8
S8
*8
*8
0
0
0
0
0
0
0
@7 @6 @5 @4 @3 @2 @1 @0
#7
S7
*7
0
0
0
0
0
0
0
S6
#6
*6
0
0
0
0
0
0
0
HT46RU67/HT46CU67
S5
#5
*5
0
0
0
0
0
0
0
S4
#4
*4
0
0
0
0
1
1
1
S3
#3
*3
0
0
1
1
0
0
1
February 27, 2008
S2
#2
*2
0
1
0
1
0
1
0
S1
#1
*1
0
0
0
0
0
0
0
S0
#0
*0
0
0
0
0
0
0
0

Related parts for HT46RU67