欢迎访问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文件第34页浏览型号PFS122-1J16A的Datasheet PDF文件第35页浏览型号PFS122-1J16A的Datasheet PDF文件第36页浏览型号PFS122-1J16A的Datasheet PDF文件第37页浏览型号PFS122-1J16A的Datasheet PDF文件第39页浏览型号PFS122-1J16A的Datasheet PDF文件第40页浏览型号PFS122-1J16A的Datasheet PDF文件第41页浏览型号PFS122-1J16A的Datasheet PDF文件第42页  
PFS122  
8bit MTP MCU with 12-bit R-Type ADC  
5.5.2  
Using the comparator  
Case I:  
Choosing PA3 as minus input and Vinternal R with (18/32)*VDD voltage level as plus input. Vinternal R is  
configured as the above Figure “gpcs[5:4] = 2b’00” and gpcs [3:0] = 4b’1001 (n=9) to have Vinternal R  
(1/4)*VDD + [(9+1)/32]*VDD = [(9+9)/32]*VDD = (18/32)*VDD.  
=
gpcs = 0b0_0_00_1001;  
gpcc = 0b1_0_0_0_000_0;  
padier = 0bxxxx_0_xxx;  
// Vinternal R = VDD*(18/32)  
// enable comp, - input: PA3, + input: Vinternal R  
// disable PA3 digital input to prevent leakage current  
or  
$ GPCS  
$ GPCC  
VDD*18/32;  
Enable, N_PA3, P_R;  
// - input: N_xx+ input: P_R(Vinternal R)  
PADIER = 0bxxxx_0_xxx;  
Case 2:  
Choosing Vinternal R as minus input with (22/40)*VDD voltage level and PA4 as plus input, the comparator  
result will be inverted and then output to PA0. Vinternal R is configured as the above Figure “gpcs[5:4] =  
2b’10” and gpcs [3:0] = 4b’1101 (n=13) to have Vinternal R = (1/5)*VDD + [(13+1)/40]*VDD = [(13+9)/40]*VDD  
= (22/40)*VDD.  
gpcs = 0b1_0_10_1101;  
gpcc = 0b1_0_0_1_011_1;  
// output to PA0,Vinternal R = VDD*(22/40)  
// Inverse output, - input: Vinternal R, + input: PA4  
// disable PA4 digital input to prevent leakage current  
padier  
= 0bxxx_0_xxxx;  
or  
$ GPCS  
$ GPCC  
Output, VDD*22/40;  
Enable, Inverse, N_R, P_PA4; // - input: N_R(Vinternal R)+ input: P_xx  
PADIER = 0bxxx_0_xxxx;  
Note: When selecting output to PA0 output, GPCS will affect the PA3 output function in ICE. Though the  
IC is fine, be careful to avoid this error during emulation.  
©Copyright 2020, PADAUK Technology Co. Ltd  
Page 38 of 93  
PDK-DS-PFS122-EN_V000-May 28, 2020  
 
 复制成功!