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

PFS122-1J16A 参数 Datasheet PDF下载

PFS122-1J16A图片预览
型号: PFS122-1J16A
PDF下载: 下载PDF文件 查看货源
内容描述: [8bit MTP Type MCU with 12-bit R-Type ADC]
分类和应用:
文件页数/大小: 93 页 / 1946 K
品牌: PADAUK [ PADAUK Technology ]
 浏览型号PFS122-1J16A的Datasheet PDF文件第40页浏览型号PFS122-1J16A的Datasheet PDF文件第41页浏览型号PFS122-1J16A的Datasheet PDF文件第42页浏览型号PFS122-1J16A的Datasheet PDF文件第43页浏览型号PFS122-1J16A的Datasheet PDF文件第45页浏览型号PFS122-1J16A的Datasheet PDF文件第46页浏览型号PFS122-1J16A的Datasheet PDF文件第47页浏览型号PFS122-1J16A的Datasheet PDF文件第48页  
PFS122  
8bit MTP MCU with 12-bit R-Type ADC  
Example 1:  
Example 2:  
Example 3:  
tm2c = 0b0001_1000, Y=8MHz  
tm2b = 0b0111_1111, K=127  
tm2s = 0b0_00_00000, S1=1, S2=0  
frequency of output = 8MHz ÷ [ 2 × (127+1) × 1 × (0+1) ] = 31.25KHz  
tm2c = 0b0001_1000, Y=8MHz  
tm2b = 0b0111_1111, K=127  
tm2s[7:0] = 0b0_11_11111, S1=64 , S2 = 31  
frequency = 8MHz ÷ ( 2 × (127+1) × 64 × (31+1) ) =15.25Hz  
tm2c = 0b0001_1000, Y=8MHz  
tm2b = 0b0000_1111, K=15  
tm2s = 0b0_00_00000, S1=1, S2=0  
frequency = 8MHz ÷ ( 2 × (15+1) × 1 × (0+1) ) = 250KHz  
Example 4:  
tm2c = 0b0001_1000, Y=8MHz  
tm2b = 0b0000_0001, K=1  
tm2s = 0b0_00_00000, S1=1, S2=0  
frequency = 8MHz ÷ ( 2 × (1+1) × 1 × (0+1) ) =2MHz  
The sample program for using the Timer2 to generate periodical waveform from PA3 is shown as below:  
Void FPPA0 (void)  
{
. ADJUST_IC SYSCLK=IHRC/2, IHRC=16MHz, VDD=5V  
tm2ct = 0x00;  
tm2b = 0x7f;  
tm2s = 0b0_00_00001;  
//  
//  
8-bit PWM, pre-scalar = 1, scalar = 2  
system clock, output=PA3, period mode  
tm2c = 0b0001_10_0_0;  
while(1)  
{
nop;  
}
}
©Copyright 2020, PADAUK Technology Co. Ltd  
Page 44 of 93  
PDK-DS-PFS122-EN_V000-May 28, 2020  
 复制成功!