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

SN8F2250B 参数 Datasheet PDF下载

SN8F2250B图片预览
型号: SN8F2250B
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 133 页 / 1554 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8F2250B的Datasheet PDF文件第82页浏览型号SN8F2250B的Datasheet PDF文件第83页浏览型号SN8F2250B的Datasheet PDF文件第84页浏览型号SN8F2250B的Datasheet PDF文件第85页浏览型号SN8F2250B的Datasheet PDF文件第87页浏览型号SN8F2250B的Datasheet PDF文件第88页浏览型号SN8F2250B的Datasheet PDF文件第89页浏览型号SN8F2250B的Datasheet PDF文件第90页  
SN8F2250B Series  
USB 2.0 Full-Speed 8-Bit Micro-Controller  
8.4.5 TC0 CLOCK FREQUENCY OUTPUT (BUZZER)  
Buzzer output (TC0OUT) is from TC0 timer/counter 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 TC0OUT frequency is  
divided by 2 from TC0 interval time. TC0OUT frequency is 1/2 TC0 frequency. The TC0 clock has many combinations  
and easily to make difference frequency. The TC0OUT frequency waveform is as following.  
1
2
3
4
TC0 Overflow Clock  
1
2
3
4
TC0OUT (Buzzer) Output Clock  
¾
Example: Setup TC0OUT output from TC0 to TC0OUT (P5.4). The external high-speed clock is 4MHz. The  
TC0OUT frequency is 0.5KHz. Because the TC0OUT signal is divided by 2, set the TC0 clock to 1KHz. The  
TC0 clock source is from external oscillator clock. T0C rate is Fcpu/4. The TC0RATE2~TC0RATE1 = 110.  
TC0C = TC0R = 131.  
MOV  
B0MOV  
A,#01100000B  
TC0M,A  
; Set the TC0 rate to Fcpu/4  
MOV  
B0MOV  
B0MOV  
A,#131  
TC0C,A  
TC0R,A  
; Set the auto-reload reference value  
B0BSET  
B0BSET  
B0BSET  
FTC0OUT  
FALOAD1  
FTC0ENB  
; Enable TC0 output to P5.4 and disable P5.4 I/O function  
; Enable TC0 auto-reload function  
; Enable TC0 timer  
’
Note: Buzzer output is enable, and “PWM0OUT” must be “0”.  
SONiX TECHNOLOGY CO., LTD  
Page 86  
Version 1.1  
 
 复制成功!