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

SN8P1604AK 参数 Datasheet PDF下载

SN8P1604AK图片预览
型号: SN8P1604AK
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 94 页 / 531 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8P1604AK的Datasheet PDF文件第56页浏览型号SN8P1604AK的Datasheet PDF文件第57页浏览型号SN8P1604AK的Datasheet PDF文件第58页浏览型号SN8P1604AK的Datasheet PDF文件第59页浏览型号SN8P1604AK的Datasheet PDF文件第61页浏览型号SN8P1604AK的Datasheet PDF文件第62页浏览型号SN8P1604AK的Datasheet PDF文件第63页浏览型号SN8P1604AK的Datasheet PDF文件第64页  
SN8P1600  
8-bit micro-controller  
TC1 TIMER COUNTER OPERATION SEQUENCE  
The TC1 timer’s sequence of operation can be following.  
Set the TC1C initial value to setup the interval time.  
Set the TC1ENB to be “1” to enable TC1 timer counter.  
TC1C is incremented by one with each clock pulse which frequency is corresponding to TC1M selection.  
TC1C overflow if TC1C from FFH to 00H.  
When TC1C overflow occur, the TC1IRQ flag is set to be “1” by hardware.  
Execute the interrupt service routine.  
Users reset the TC1C value and resume the TC1 timer operation.  
Example: Setup the TC1M and TC1C without auto-reload function.  
B0BCLR  
B0BCLR  
MOV  
FTC1IEN  
FTC1ENB  
A,#20H  
; To disable TC1 interrupt service  
; To disable TC1 timer  
;
B0MOV  
MOV  
B0MOV  
TC1M,A  
A,#74H  
TC1C,A  
; To set TC1 clock = fcpu / 64  
; To set TC1C initial value = 74H  
;(To set TC1 interval = 10 ms)  
B0BSET  
B0BCLR  
B0BSET  
FTC1IEN  
FTC1IRQ  
FTC1ENB  
; To enable TC1 interrupt service  
; To clear TC1 interrupt request  
; To enable TC1 timer  
Example: Setup the TC1M and TC1C with auto-reload function.  
B0BCLR  
B0BCLR  
MOV  
FTC1IEN  
FTC1ENB  
A,#20H  
; To disable TC1 interrupt service  
; To disable TC1 timer  
;
B0MOV  
MOV  
B0MOV  
B0MOV  
TC1M,A  
A,#74H  
TC1C,A  
TC1R,A  
; To set TC1 clock = fcpu / 64  
; To set TC1C initial value = 74H  
; (To set TC1 interval = 10 ms)  
; To set TC1R auto-reload register  
B0BSET  
B0BCLR  
B0BSET  
B0BSET  
FTC1IEN  
FTC1IRQ  
FTC1ENB  
ALOAD1  
; To enable TC1 interrupt service  
; To clear TC1 interrupt request  
; To enable TC1 timer  
; To enable TC1 auto-reload function.  
SONiX TECHNOLOGY CO., LTD  
Page 60  
Revision 1.94  
 复制成功!