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

SN8P26042A 参数 Datasheet PDF下载

SN8P26042A图片预览
型号: SN8P26042A
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 101 页 / 733 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8P26042A的Datasheet PDF文件第78页浏览型号SN8P26042A的Datasheet PDF文件第79页浏览型号SN8P26042A的Datasheet PDF文件第80页浏览型号SN8P26042A的Datasheet PDF文件第81页浏览型号SN8P26042A的Datasheet PDF文件第83页浏览型号SN8P26042A的Datasheet PDF文件第84页浏览型号SN8P26042A的Datasheet PDF文件第85页浏览型号SN8P26042A的Datasheet PDF文件第86页  
SN8P2604A  
8-Bit Micro-Controller  
8.3.6 TC1 TIMER OPERATION SEQUENCE  
TC1 timer operation includes timer interrupt, event counter, TC1OUT and PWM. The sequence of setup TC1 timer is  
as following.  
)
)
)
Stop TC1 timer counting, disable TC1 interrupt function and clear TC1 interrupt request flag.  
B0BCLR  
B0BCLR  
B0BCLR  
FTC1ENB  
FTC1IEN  
FTC1IRQ  
; TC1 timer, TC1OUT and PWM stop.  
; TC1 interrupt function is disabled.  
; TC1 interrupt request flag is cleared.  
Set TC1 timer rate. (Besides event counter mode.)  
MOV  
B0MOV  
A, #0xxx0000b  
TC1M,A  
;The TC1 rate control bits exist in bit4~bit6 of TC1M. The  
; value is from x000xxxxb~x111xxxxb.  
; TC1 timer is disabled.  
Set TC1 timer clock source.  
; Select TC1 internal / external clock source.  
B0BCLR  
FTC1CKS  
; Select TC1 internal clock source.  
; Select TC1 external clock source.  
or  
B0BSET  
FTC1CKS  
)
or  
)
Set TC1 timer auto-load mode.  
B0BCLR  
B0BSET  
FALOAD1  
FALOAD1  
; Enable TC1 auto reload function.  
; Disable TC1 auto reload function.  
Set TC1 interrupt interval time, TC1OUT (Buzzer) frequency or PWM duty cycle.  
; Set TC1 interrupt interval time, TC1OUT (Buzzer) frequency or PWM duty.  
MOV  
B0MOV  
B0MOV  
A,#7FH  
TC1C,A  
TC1R,A  
; TC1C and TC1R value is decided by TC1 mode.  
; Set TC1C value.  
; Set TC1R value under auto reload mode or PWM mode.  
; In PWM mode, set PWM cycle.  
B0BCLR  
B0BCLR  
FALOAD1  
FTC1OUT  
; ALOAD1, TC1OUT = 00, PWM cycle boundary is 0~255.  
; ALOAD1, TC1OUT = 01, PWM cycle boundary is 0~63.  
; ALOAD1, TC1OUT = 10, PWM cycle boundary is 0~31.  
; ALOAD1, TC1OUT = 11, PWM cycle boundary is 0~15.  
or  
B0BCLR  
B0BSET  
or  
B0BSET  
B0BCLR  
or  
FALOAD1  
FTC1OUT  
FALOAD1  
FTC1OUT  
B0BSET  
B0BSET  
FALOAD1  
FTC1OUT  
SONiX TECHNOLOGY CO., LTD  
Page 82  
Version 0.3  
 复制成功!