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

SN8P2742SDB 参数 Datasheet PDF下载

SN8P2742SDB图片预览
型号: SN8P2742SDB
PDF下载: 下载PDF文件 查看货源
内容描述: [ADC, OP-amp, Comparator 8-Bit Micro-Controller]
分类和应用:
文件页数/大小: 136 页 / 3074 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8P2742SDB的Datasheet PDF文件第14页浏览型号SN8P2742SDB的Datasheet PDF文件第15页浏览型号SN8P2742SDB的Datasheet PDF文件第16页浏览型号SN8P2742SDB的Datasheet PDF文件第17页浏览型号SN8P2742SDB的Datasheet PDF文件第19页浏览型号SN8P2742SDB的Datasheet PDF文件第20页浏览型号SN8P2742SDB的Datasheet PDF文件第21页浏览型号SN8P2742SDB的Datasheet PDF文件第22页  
SN8P2740 Series  
ADC, OP-amp, Comparator 8-Bit Micro-Controller  
2.1.4 JUMP TABLE DESCRIPTION  
The jump table operation is one of multi-address jumping function. Add low-byte program counter (PCL) and ACC  
value to get one new PCL. If PCL is overflow after PCL+ACC, PCH adds one automatically. The new program counter  
(PC) points to a series jump instructions as a listing table. It is easy to make a multi-jump program depends on the  
value of the accumulator (A).  
Note: PCH only support PC up counting result and doesnt support PC down counting. When PCL is  
carry after PCL+ACC, PCH adds one automatically. If PCL borrow after PCLACC, PCH keeps value and  
not change.  
Example: Jump table.  
ORG  
0X0100  
; The jump table is from the head of the ROM boundary  
B0ADD  
JMP  
JMP  
JMP  
JMP  
PCL, A  
; PCL = PCL + ACC, PCH + 1 when PCL overflow occurs.  
; ACC = 0, jump to A0POINT  
; ACC = 1, jump to A1POINT  
; ACC = 2, jump to A2POINT  
; ACC = 3, jump to A3POINT  
A0POINT  
A1POINT  
A2POINT  
A3POINT  
SONIX provides a macro for safe jump table function. This macro will check the ROM boundary and move the jump  
table to the right position automatically. The side effect of this macro maybe wastes some ROM size.  
Example: If “jump table” crosses over ROM boundary will cause errors.  
@JMP_A  
MACRO  
IF  
VAL  
(($+1) !& 0XFF00) !!= (($+(VAL)) !& 0XFF00)  
JMP  
ORG  
($ | 0XFF)  
($ | 0XFF)  
ENDIF  
B0ADD  
ENDM  
PCL, A  
Note: VALis the number of the jump table listing number.  
Example: @JMP_Aapplication in SONIX macro file called MACRO3.H.  
B0MOV  
@JMP_A  
JMP  
JMP  
JMP  
A, BUF0  
5
; BUF0is from 0 to 4.  
; The number of the jump table listing is five.  
; ACC = 0, jump to A0POINT  
; ACC = 1, jump to A1POINT  
; ACC = 2, jump to A2POINT  
; ACC = 3, jump to A3POINT  
; ACC = 4, jump to A4POINT  
A0POINT  
A1POINT  
A2POINT  
A3POINT  
A4POINT  
JMP  
JMP  
SONiX TECHNOLOGY CO., LTD  
Page 18  
Version 2.0  
 复制成功!