2010-2012 Microchip Technology Inc.
DS41417B-page 119
PIC16(L)F722A/723A
14.5
Software Control
The software portion of the capacitive sensing module
is required to determine the change in frequency of the
capacitive sensing oscillator. This is accomplished by
the following:
Setting a fixed time base to acquire counts on
Timer0 or Timer1
Establishing the nominal frequency for the
capacitive sensing oscillator
Establishing the reduced frequency for the
capacitive sensing oscillator due to an additional
capacitive load
Set the frequency threshold
14.5.1
NOMINAL FREQUENCY
(NO CAPACITIVE LOAD)
To determine the nominal frequency of the capacitive
sensing oscillator:
Remove any extra capacitive load on the selected
CPSx pin
At the start of the fixed time base, clear the timer
resource
At the end of the fixed time base save the value in
the timer resource
The value of the timer resource is the number of
oscillations of the capacitive sensing oscillator for the
given time base. The frequency of the capacitive
sensing oscillator is equal to the number of counts on
in the timer divided by the period of the fixed time base.
14.5.2
REDUCED FREQUENCY
(ADDITIONAL CAPACITIVE LOAD)
The extra capacitive load will cause the frequency of the
capacitive sensing oscillator to decrease. To determine
the reduced frequency of the capacitive sensing
oscillator:
Add a typical capacitive load on the selected
CPSx pin
Use the same fixed time base as the nominal
frequency measurement
At the start of the fixed time base, clear the timer
resource
At the end of the fixed time base save the value in
the timer resource
The value of the timer resource is the number of oscil-
lations of the capacitive sensing oscillator with an addi-
tional capacitive load. The frequency of the capacitive
sensing oscillator is equal to the number of counts on
in the timer divided by the period of the fixed time base.
This frequency should be less than the value obtained
during the nominal frequency measurement.
14.5.3
FREQUENCY THRESHOLD
The frequency threshold should be placed midway
between the value of nominal frequency and the
reduced frequency of the capacitive sensing oscillator.
Refer to Application Note AN1103, “Software Handling
for Capacitive Sensing” (DS01103) for more detailed
information the software required for capacitive
sensing module.
Note:
For more information on general capacitive
sensing refer to Application Notes:
AN1101, “Introduction to Capacitive
Sensing” (DS01101)
AN1102, “Layout and Physical Design
Guidelines for Capacitive Sensing
(DS01102)
相关PDF资料
PIC17LC762T-08/PT IC MCU OTP 8KX16 A/D PWM 80TQFP
PIC17LC762T-08/L IC MCU OTP 8KX16 A/D PWM 84PLCC
PIC16F1823-I/SL IC MCU 8BIT FLASH 14SOIC
PIC17LC762T-08I/PT IC MCU OTP 8KX16 A/D PWM 80TQFP
PIC17LC762T-08I/L IC MCU OTP 8KX16 A/D PWM 84PLCC
PIC17LC762-08/PT IC MCU OTP 8KX16 A/D PWM 80TQFP
PIC17LC762-08I/PT IC MCU OTP 8KX16 A/D PWM 80TQFP
PIC12LF1822-I/SN IC MCU 8BIT FLASH 8SOIC
相关代理商/技术参数
PIC16F722AT-I/ML 功能描述:8位微控制器 -MCU 3.5KB Flsh 1.8V-5.5V 16 MHz int Osc RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F722AT-I/MV 功能描述:8位微控制器 -MCU 3.5KB Flsh 1.8V-5.5V 16 MHz int Osc RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F722AT-I/SO 功能描述:8位微控制器 -MCU 3.5KB Flsh 1.8V-5.5V 16 MHz int Osc RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F722AT-I/SS 功能描述:8位微控制器 -MCU 3.5KB Flsh 1.8V-5.5V 16 MHz int Osc RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F722-E/ML 功能描述:8位微控制器 -MCU 35 KB Flash 18V-55V 16 MHz Int Osc RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F722-E/MV 功能描述:8位微控制器 -MCU 3.5KB Flash 1.8V-5.5V RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F722-E/SO 功能描述:8位微控制器 -MCU 35 KB Flash 18V-55V 16 MHz Int Osc RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16F722-E/SP 功能描述:8位微控制器 -MCU 35 KB Flash 18V-55V 16 MHz Int Osc RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT