Holtek HT66F488 Manual page 19

A/d flash mcu with eeprom
Table of Contents

Advertisement

HT66F488/HT66F489
A/D Flash MCU with EEPROM
For instructions involving branches, such as jump or call instructions, two machine cycles are
required to complete instruction execution. An extra cycle is required as the program takes one
cycle to first obtain the actual jump or call address and then another cycle to actually execute the
branch. The requirement for this extra cycle should be taken into account by programmers in timing
sensitive applications.
1
M O V A , [ 1 2 H ]
2
C A L L D E L A Y
3
C P L [ 1 2 H ]
4
:
5
:
6
D E L A Y :
N O P
Program Counter
During program execution, the Program Counter is used to keep track of the address of the
next instruction to be executed. It is automatically incremented by one each time an instruction
is executed except for instructions, such as "JMP" or "CALL" that demand a jump to a non-
consecutive Program Memory address. Only the lower 8 bits, known as the Program Counter Low
Register, are directly addressable by the application program.
When executing instructions requiring jumps to non-consecutive addresses such as a jump
instruction, a subroutine call, interrupt or reset, etc., the microcontroller manages program control
by loading the required address into the Program Counter. For conditional skip instructions, once
the condition has been met, the next instruction, which has already been fetched during the present
instruction execution, is discarded and a dummy cycle takes its place while the correct instruction is
obtained.
Device
HT66F488
HT66F48�
The lower byte of the Program Counter, known as the Program Counter Low register or PCL, is
available for program control and is a readable and writeable register. By transferring data directly
into this register, a short program jump can be executed directly, however, as only this low byte
is available for manipulation, the jumps are limited to the present page of memory, that is 256
locations. When such program jumps are executed it should also be noted that a dummy cycle
will be inserted. Manipulating the PCL register may cause program branching, so an extra cycle is
needed to pre-fetch.
Rev. 1.21
F e t c h I n s t . 1
E x e c u t e I n s t . 1
F e t c h I n s t . 2
E x e c u t e I n s t . 2
F e t c h I n s t . 3
Instruction Fetching
Program Counter
Program Counter High byte
PC11~PC8
PC12~PC8
1�
F l u s h P i p e l i n e
F e t c h I n s t . 6
E x e c u t e I n s t . 6
F e t c h I n s t . 7
PCL Register
PCL�~PCL�
PCL�~PCL�
�ove��e� ��� 2�1�

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HT66F488 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Ht66f489

Table of Contents