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

SN8P1602B 参数 Datasheet PDF下载

SN8P1602B图片预览
型号: SN8P1602B
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 76 页 / 430 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8P1602B的Datasheet PDF文件第42页浏览型号SN8P1602B的Datasheet PDF文件第43页浏览型号SN8P1602B的Datasheet PDF文件第44页浏览型号SN8P1602B的Datasheet PDF文件第45页浏览型号SN8P1602B的Datasheet PDF文件第47页浏览型号SN8P1602B的Datasheet PDF文件第48页浏览型号SN8P1602B的Datasheet PDF文件第49页浏览型号SN8P1602B的Datasheet PDF文件第50页  
SN8P1602B  
8-Bit Micro-Controller  
SYSTEM MODE SWITCHING  
Switch normal/slow mode to power down (sleep) mode.  
CPUM0 = 1  
B0BSET  
FCPUM0  
; Set CPUM0 = 1.  
During the sleep, only the wakeup pin and reset can wakeup the system back to the normal mode.  
Switch normal mode to slow mode.  
B0BSET  
B0BSET  
FCLKMD  
FSTPHX  
;To set CLKMD = 1, Change the system into slow mode  
;To stop external high-speed oscillator for power saving.  
Switch slow mode to normal mode (The external high-speed oscillator is still running)  
B0BCLR FCLKMD ;To set CLKMD = 0  
Switch slow mode to normal mode (The external high-speed oscillator stops)  
If external high clock stop and program want to switch back normal mode. It is necessary to delay at least 10mS for  
external clock stable.  
B0BCLR  
FSTPHX  
; Turn on the external high-speed oscillator.  
B0MOV  
DECMS  
JMP  
Z, #27  
Z
@B  
; If VDD = 5V, internal RC=32KHz (typical) will delay  
; 0.125ms X 81 = 10.125ms for external clock stable  
@@:  
;
B0BCLR  
FCLKMD  
; Change the system back to the normal mode  
Example: Go into Green mode and enable TC0 wakeup function.  
; Set TC0 timer wakeup function.  
B0BCLR  
B0BCLR  
MOV  
FTC0IEN  
FTC0ENB  
A,#20H  
; To disable TC0 interrupt service  
; To disable TC0 timer  
;
B0MOV  
MOV  
TC0M,A  
A,#74H  
; To set TC0 clock = Fcpu / 64  
B0MOV  
TC0C,A  
; To set TC0C initial value = 74H (To set TC0 interval = 10  
ms)  
B0BCLR  
B0BCLR  
B0BSET  
FTC0IEN  
FTC0IRQ  
FTC0ENB  
FTC0GN  
; To disable TC0 interrupt service  
; To clear TC0 interrupt request  
; To enable TC0 timer  
B0BSET  
; To enable TC0 wakeup function  
; Go into green mode  
B0BCLR  
FCPUM0  
FCPUM1  
;To set CPUMx = 10  
B0BSET  
Note: If TC0ENB = 0 or TC0GN = 0, TC0 will not be able to wakeup from green mode to normal/slow mode  
function.  
SONiX TECHNOLOGY CO., LTD  
Page 46  
Version 1.1  
 复制成功!