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

SN8A1703AS 参数 Datasheet PDF下载

SN8A1703AS图片预览
型号: SN8A1703AS
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 112 页 / 624 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8A1703AS的Datasheet PDF文件第59页浏览型号SN8A1703AS的Datasheet PDF文件第60页浏览型号SN8A1703AS的Datasheet PDF文件第61页浏览型号SN8A1703AS的Datasheet PDF文件第62页浏览型号SN8A1703AS的Datasheet PDF文件第64页浏览型号SN8A1703AS的Datasheet PDF文件第65页浏览型号SN8A1703AS的Datasheet PDF文件第66页浏览型号SN8A1703AS的Datasheet PDF文件第67页  
Preliminary  
SN8P1702A/SN8P1703A  
8-bit micro-controller build-in 12-bit ADC  
TC0 CLOCK FREQUENCY OUTPUT (BUZZER)  
TC0 timer counter provides a frequency output function. By setting the TC0 clock frequency, the clock signal is output  
to P5.4 and the P5.4 general purpose I/O function is auto-disable. The TC0 output signal divides by 2. The TC0 clock  
has many combinations and easily to make difference frequency. This function applies as buzzer output to output  
multi-frequency.  
Figure 8-2. The TC0OUT Pulse Frequency  
Example: Setup TC0OUT output from TC0 to TC0OUT (P5.4). The external high-speed clock is 4MHz. The  
TC0OUT frequency is 1KHz. Because the TC0OUT signal is divided by 2, set the TC0 clock to  
2KHz. The TC0 clock source is from external oscillator clock. TC0 rate is Fcpu/4. The  
TC0RATE2~TC0RATE1 = 110, TC0C = TC0R = 131, TC0X8 = 0, TC0_Counter=8-bit  
B0BCLR  
MOV  
B0MOV  
FTC0X8  
A,#01100000B  
TC0M,A  
; Set TC0X8 to 0  
; Set the TC0 rate to Fcpu/4  
; Set the auto-reload reference value  
MOV  
B0MOV  
B0MOV  
A,#131  
TC0C,A  
TC0R,A  
B0BSET  
B0BSET  
B0BSET  
FTC0OUT  
FALOAD0  
FTC0ENB  
; Enable TC0 output to P5.4 and disable P5.4 I/O function  
; Enable TC0 auto-reload function  
; Enable TC0 timer  
SONiX TECHNOLOGY CO., LTD  
Page 63  
Revision 0.5  
 复制成功!