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

SN8P26042A 参数 Datasheet PDF下载

SN8P26042A图片预览
型号: SN8P26042A
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 101 页 / 733 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8P26042A的Datasheet PDF文件第79页浏览型号SN8P26042A的Datasheet PDF文件第80页浏览型号SN8P26042A的Datasheet PDF文件第81页浏览型号SN8P26042A的Datasheet PDF文件第82页浏览型号SN8P26042A的Datasheet PDF文件第84页浏览型号SN8P26042A的Datasheet PDF文件第85页浏览型号SN8P26042A的Datasheet PDF文件第86页浏览型号SN8P26042A的Datasheet PDF文件第87页  
SN8P2604A  
8-Bit Micro-Controller  
)
Set TC1 timer function mode.  
B0BSET  
B0BSET  
FTC1IEN  
; Enable TC1 interrupt function.  
; Enable TC1OUT (Buzzer) function.  
; Enable PWM function.  
or  
or  
FTC1OUT  
B0BSET  
FPWM1OUT  
)
Enable TC1 timer.  
B0BSET  
FTC1ENB  
; Enable TC1 timer.  
8.3.7 TC1 TIMER NOTICE  
When TC1C value changes from “0xFF” to not “0xFF”, TC1IRQ is set “1” whether TC1 is operating or not. If TC1IRQ =  
0 and TC1C is changed by program, TC1IRQ might be set as TC1C is from “0xFF” to not “0xFF”. The condition makes  
unexpected TC1 interrupt occurring.  
¾
Example: TC1C = 0xFF and TC1IRQ = 0. TC1IRQ will set as “1” when TC1C is cleared by program (TC1C =  
0).  
MOV  
A, #0  
; Clear TC1C.  
B0MOV  
TC1C, A  
; TC1IRQ changed from “0” to “1”.  
B0BSET  
FTC1IEN  
; Enable TC1 interrupt function and system jumps to interrupt  
; vector (ORG 8) at next cycle.  
If TC1C changing in system operating duration is necessary, to disable TC1 interrupt function (TC1IEN = 0) before  
changing TC1C value. The solution can avoid unexpected TC1 interrupt occurring and example is as following.  
¾
Example: TC1C = 0xFF and TC1IRQ = 0. Clearing TC1C must be after TC1 interrupt disable.  
B0BCLR  
FTC1IEN  
; Disable TC1 interrupt function.  
MOV  
A, #0  
; Clear TC1C.  
B0MOV  
TC1C, A  
; TC1IRQ changed from “0” to “1”.  
B0BCLR  
FTC1IRQ  
FTC1IEN  
; Clear TC1IRQ flag.  
B0BSET  
; Enable TC1 interrupt function.  
’
Note: Disable TC1 interrupt function first, and load new TC1C value into TC1C buffer. This way can avoid  
unexpected TC1 interrupt occurring.  
8.4PWM1 MODE  
SONiX TECHNOLOGY CO., LTD  
Page 83  
Version 0.3  
 复制成功!