欢迎访问ic37.com |
会员登录 免费注册
发布采购

COP8FG 参数 Datasheet PDF下载

COP8FG图片预览
型号: COP8FG
PDF下载: 下载PDF文件 查看货源
内容描述: 8位CMOS基于ROM和OTP微控制器具有8K到32K的内存,两个比较器和USART [8-Bit CMOS ROM Based and OTP Microcontrollers with 8k to 32k Memory, Two Comparators and USART]
分类和应用: 比较器微控制器
文件页数/大小: 59 页 / 803 K
品牌: NSC [ National Semiconductor ]
 浏览型号COP8FG的Datasheet PDF文件第41页浏览型号COP8FG的Datasheet PDF文件第42页浏览型号COP8FG的Datasheet PDF文件第43页浏览型号COP8FG的Datasheet PDF文件第44页浏览型号COP8FG的Datasheet PDF文件第46页浏览型号COP8FG的Datasheet PDF文件第47页浏览型号COP8FG的Datasheet PDF文件第48页浏览型号COP8FG的Datasheet PDF文件第49页  
The available transfer-of-control addressing modes are:  
14.0 Instruction Set (Continued)  
Jump Relative  
Example: Load Accumulator Immediate  
LD A,#05  
Jump Absolute  
Jump Absolute Long  
Jump Indirect  
Reg/Data  
Memory  
Contents  
Before  
Contents  
After  
The transfer-of-control addressing modes are described be-  
low. Each description includes an example of a Jump in-  
struction using a particular addressing mode, and the effect  
on the Program Counter bytes of executing that instruction.  
Accumulator  
XX Hex  
05 Hex  
Immediate Short. This is a special case of an immediate in-  
struction. In the “Load B immediate” instruction, the 4-bit im-  
mediate value in the instruction is loaded into the lower  
nibble of the B register. The upper nibble of the B register is  
reset to 0000 binary.  
Jump Relative. In this 1-byte instruction, six bits of the in-  
struction opcode specify the distance of the jump from the  
current program memory location. The distance of the jump  
can range from −31 to +32. A JP+1 instruction is not allowed.  
The programmer should use a NOP instead.  
Example: Load B Register Immediate Short  
LD B,#7  
Example: Jump Relative  
JP 0A  
Reg/Data  
Memory  
B Pointer  
Contents  
Before  
Contents  
After  
Reg  
Contents  
Before  
Contents  
After  
12 Hex  
07 Hex  
Indirect from Program Memory. This is a special case of  
an indirect instruction that allows access to data tables  
stored in program memory. In the “Load Accumulator Indi-  
rect” (LAID) instruction, the upper and lower bytes of the Pro-  
gram Counter (PCU and PCL) are used temporarily as a  
pointer to program memory. For purposes of accessing pro-  
gram memory, the contents of the Accumulator and PCL are  
exchanged. The data pointed to by the Program Counter is  
loaded into the Accumulator, and simultaneously, the original  
contents of PCL are restored so that the program can re-  
sume normal execution.  
PCU  
PCL  
02 Hex  
05 Hex  
02 Hex  
0F Hex  
Jump Absolute. In this 2-byte instruction, 12 bits of the in-  
struction opcode specify the new contents of the Program  
Counter. The upper three bits of the Program Counter re-  
main unchanged, restricting the new Program Counter ad-  
dress to the same 4 kbyte address space as the current in-  
struction.  
(This restriction is relevant only in devices using more than  
one 4 kbyte program memory space.)  
Example: Load Accumulator Indirect  
LAID  
Example: Jump Absolute  
JMP 0125  
Reg/Data  
Memory  
Contents  
Before  
04 Hex  
35 Hex  
1F Hex  
25 Hex  
Contents  
After  
Reg  
Contents  
Before  
Contents  
After  
PCU  
04 Hex  
36 Hex  
25 Hex  
25 Hex  
PCU  
PCL  
0C Hex  
77 Hex  
01 Hex  
25 Hex  
PCL  
Accumulator  
Memory Location  
041F Hex  
Jump Absolute Long. In this 3-byte instruction, 15 bits of  
the instruction opcode specify the new contents of the Pro-  
gram Counter.  
Example: Jump Absolute Long  
JMP 03625  
14.3.2 Tranfer-of-Control Addressing Modes  
Program instructions are usually executed in sequential or-  
der. However, Jump instructions can be used to change the  
normal execution sequence. Several transfer-of-control ad-  
dressing modes are available to specify jump addresses.  
Reg/  
Memory  
PCU  
Contents  
Before  
Contents  
After  
42 Hex  
36 Hex  
36 Hex  
25 Hex  
A
change in program flow requires a non-incremental  
PCL  
change in the Program Counter contents. The Program  
Counter consists of two bytes, designated the upper byte  
(PCU) and lower byte (PCL). The most significant bit of PCU  
is not used, leaving 15 bits to address the program memory.  
Different addressing modes are used to specify the new ad-  
dress for the Program Counter. The choice of addressing  
mode depends primarily on the distance of the jump. Farther  
jumps sometimes require more instruction bytes in order to  
completely specify the new Program Counter contents.  
45  
www.national.com  
 复制成功!