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

SN8A1704A 参数 Datasheet PDF下载

SN8A1704A图片预览
型号: SN8A1704A
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 145 页 / 774 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8A1704A的Datasheet PDF文件第81页浏览型号SN8A1704A的Datasheet PDF文件第82页浏览型号SN8A1704A的Datasheet PDF文件第83页浏览型号SN8A1704A的Datasheet PDF文件第84页浏览型号SN8A1704A的Datasheet PDF文件第86页浏览型号SN8A1704A的Datasheet PDF文件第87页浏览型号SN8A1704A的Datasheet PDF文件第88页浏览型号SN8A1704A的Datasheet PDF文件第89页  
SN8P1700  
8-bit micro-controller build-in 12-bit ADC  
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 85  
Revision 1.94  
 复制成功!