Datasheet
数据手册 > 微控制器,MCU,单片机 > Microchip > PIC16F707-I/ML 数据手册PDF > PIC16F707-I/ML 应用笔记 第 1/8 页
PIC16F707-I/ML
¥ 17.16
百芯的价格

PIC16F707-I/ML 应用笔记 - Microchip

  • 制造商:
    Microchip
  • 分类:
    微控制器,MCU,单片机
  • 封装
    QFN-44
  • 描述:
    MCU 8Bit PIC16 PIC RISC 14KB Flash 2.5V/3.3V/5V 44Pin QFN EP Tube
更新时间: 2025-04-26 00:59:51 (UTC+8)

PIC16F707-I/ML 应用笔记

页码:/8页
下载 PDF
重新加载
下载
2010 Microchip Technology Inc. DS01171C-page 1
AN1171
INTRODUCTION
This application note describes the use of the
Capacitive Sensing Module (CSM) present on all
PIC16F72X devices. The CSM simplifies the amount of
hardware and software setup needed for capacitive
sensing applications. Only the sensing pads on the
PCB need to be added. It is recommended that
application note AN1101, “Introduction to Capacitive
Sensing” be read in order to understand the capacitive
sensing concepts.
CAPACITIVE SENSING MODULE
The CSM allows the user to design a capacitive
sensing system without an external oscillator circuit.
The CSM has its own software-controlled oscillator. It
can also monitor up to 16 inputs. In a typical
application, the CSM is directly attached to pads on a
PCB and covered by an insulating material. When the
insulating material above a pad is touched by the user’s
fingertip, the capacitance of the pad increases, thus
causing a frequency shift in the CSM. For more
information on the CSM hardware, please refer to the
device data sheet.
This module simplifies the software needed for
capacitive sensing: it is only necessary to initialize a
few registers and then set the appropriate method of
measuring the change in frequency.
MODULE INITIALIZATION
To initialize the CSM, the appropriate cap sense inputs
must be initialized as analog inputs. Then, the CSM
registers are set, as shown in Example 1.
EXAMPLE 1: SETUP OF THE CAPACITIVE SENSING MODULE
FREQUENCY MEASUREMENT
Once these registers are set, the module will start oscil-
lating. Now, the appropriate method of measuring the
frequency needs to be set. There are several methods
that can be applied:
Use Timer0 as a timer resource for the CSM.
Use Timer2 as a timer resource. Timer2 has a
greater flexibility in defining the time base by
using PR2 to set the desired time base.
Use the WDT wake from Sleep event as the time
base.
FREQUENCY MEASUREMENT:
TIMER1 GATE
All of these methods use the Timer1 gate input. Timer1
will act as a counter; it will increment at every rising
edge of the Cap Sensing Module output frequency. The
time base selected will start and stop the counter. The
user can then read the value on Timer1, which would
be a measure of the oscillator frequency. It is recom-
mended to use Timer1 Gate in One-Shot mode to
measure the full-cycle length of the chosen time base.
Author: Enrique Aleman
Microchip Technology Inc.
TRISA = 0x30;
ANSELA = 0x30; // CPS7, CPS6 initialized as analog inputs
TRISB = 0x3F;
ANSELB = 0x3F; // CPS0-CPS5 initialized as analog inputs
TRISD = 0xFF;
ANSELD = 0xFF; // CPS8-CPS15 initialized as analog inputs
CPSCON0 = 0x8C; // Cap sense on, high range oscillator,
CPSCON1 = 0x00; // Cap sense channel input 0 is selected
How To Use The Capacitive Sensing Module (CSM)

PIC16F707-I/ML 数据手册 PDF

PIC16F707-I/ML 数据手册
Microchip
268 页, 2952 KB
PIC16F707-I/ML 产品设计参考
Microchip
2 页, 122 KB
PIC16F707-I/ML 其它数据手册
Microchip
19 页, 279 KB
PIC16F707-I/ML 应用笔记
Microchip
8 页, 252 KB
PIC16F707-I/ML 产品修订记录
Microchip
2 页, 111 KB
PIC16F707-I/ML 其他参考文件
Microchip
4 页, 162 KB

PIC16F707 数据手册 PDF

PIC16F707
数据手册
Microchip
40/44Pin, Flash Microcontrollers with nanoWatt XLP and mTouch™ Technology
PIC16F707-I/PT
数据手册
Microchip
MCU 8Bit PIC16 PIC RISC 14KB Flash 2.5V/3.3V/5V 44Pin TQFP Tray
PIC16F707-I/P
数据手册
Microchip
MCU 8Bit PIC RISC 14KB Flash 2.5V/3.3V/5V 40Pin PDIP Tube
PIC16F707-I/MV
数据手册
Microchip
MCU 8Bit PIC16 PIC RISC 14KB Flash 2.5V/3.3V/5V 40Pin UQFN EP Tube
PIC16F707-I/ML
数据手册
Microchip
MCU 8Bit PIC16 PIC RISC 14KB Flash 2.5V/3.3V/5V 44Pin QFN EP Tube
PIC16F707-E/P
数据手册
Microchip
MCU 8Bit PIC16 PIC RISC 14KB Flash 2.5V/3.3V/5V 40Pin PDIP Tube
PIC16F707T-I/PT
数据手册
Microchip
MCU 8Bit PIC16 PIC RISC 14KB Flash 2.5V/3.3V/5V 44Pin TQFP T/R
PIC16F707-E/PT
数据手册
Microchip
MCU 8Bit PIC16 PIC RISC 14KB Flash 2.5V/3.3V/5V 44Pin TQFP Tray
PIC16F707T-I/ML
数据手册
Microchip
MCU 8Bit PIC16 PIC RISC 14KB Flash 2.5V/3.3V/5V 44Pin QFN EP T/R
PIC16F707-E/ML
数据手册
Microchip
MCU 8Bit PIC16 PIC RISC 14KB Flash 2.5V/3.3V/5V 44Pin QFN EP Tube
Datasheet 搜索
搜索
百芯智造数据库涵盖1亿多个数据手册,每天更新超过5,000个PDF文件。
相关文档: PIC16F707 数据手册
在线联系我们
黄经理 - 百芯智造销售经理在线,5 分钟前
您的邮箱 *
消息 *
发送