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

SN8F2250B 参数 Datasheet PDF下载

SN8F2250B图片预览
型号: SN8F2250B
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-Bit Micro-Controller]
分类和应用: 微控制器
文件页数/大小: 133 页 / 1554 K
品牌: SONIX [ SONIX TECHNOLOGY COMPANY ]
 浏览型号SN8F2250B的Datasheet PDF文件第92页浏览型号SN8F2250B的Datasheet PDF文件第93页浏览型号SN8F2250B的Datasheet PDF文件第94页浏览型号SN8F2250B的Datasheet PDF文件第95页浏览型号SN8F2250B的Datasheet PDF文件第97页浏览型号SN8F2250B的Datasheet PDF文件第98页浏览型号SN8F2250B的Datasheet PDF文件第99页浏览型号SN8F2250B的Datasheet PDF文件第100页  
SN8F2250B Series  
USB 2.0 Full-Speed 8-Bit Micro-Controller  
8.6.5 TC1 CLOCK FREQUENCY OUTPUT (BUZZER)  
Buzzer output (TC1OUT) is from TC1 timer/counter frequency output function. By setting the TC1 clock frequency, the  
clock signal is output to P5.4 and the P5.4 general purpose I/O function is auto-disable. The TC1OUT frequency is  
divided by 2 from TC1 interval time. TC1OUT frequency is 1/2 TC1 frequency. The TC1 clock has many combinations  
and easily to make difference frequency. The TC1OUT frequency waveform is as following.  
1
2
3
4
TC1 Overflow Clock  
1
2
3
4
TC1OUT (Buzzer) Output Clock  
¾
Example: Setup TC1OUT output from TC1 to TC1OUT (P5.4). The external high-speed clock is 4MHz. The  
TC1OUT frequency is 0.5KHz. Because the TC1OUT signal is divided by 2, set the TC1 clock to 1KHz. The  
TC1 clock source is from external oscillator clock. T0C rate is Fcpu/4. The TC1RATE2~TC1RATE1 = 110.  
TC1C = TC1R = 131.  
MOV  
B0MOV  
A,#01100000B  
TC1M,A  
; Set the TC1 rate to Fcpu/4  
MOV  
B0MOV  
B0MOV  
A,#131  
TC1C,A  
TC1R,A  
; Set the auto-reload reference value  
B0BSET  
B0BSET  
B0BSET  
FTC1OUT  
FALOAD1  
FTC1ENB  
; Enable TC1 output to P5.4 and disable P5.4 I/O function  
; Enable TC1 auto-reload function  
; Enable TC1 timer  
’
Note: Buzzer output is enable, and “PWM0OUT” must be “0”.  
SONiX TECHNOLOGY CO., LTD  
Page 96  
Version 1.1  
 
 复制成功!