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

PIC16F707-I/PT 应用笔记 - Microchip

  • 制造商:
    Microchip
  • 分类:
    微控制器,MCU,单片机
  • 封装
    TQFP-44
  • 描述:
    MCU 8Bit PIC16 PIC RISC 14KB Flash 2.5V/3.3V/5V 44Pin TQFP Tray
  • 页面指南:
更新时间: 2025-05-27 04:03:38 (UTC+8)

PIC16F707-I/PT 应用笔记

页码:/8页
下载 PDF
重新加载
下载
© 2009 Microchip Technology Inc. DS01268A-page 1
AN1268
INTRODUCTION
This application note is an addendum to the information
in the previous capacitive touch sensing application
notes, found on Microchip’s web site. It builds
specifically on AN1101, “Introduction to Capacitive
Sensing”. This application note focuses on how to use
either an SR latch enabled part, or our new family of
parts with a dedicated Cap Sense Module (CSM) to
measure changes in capacitance using a period
measurement instead of frequency measurement.
Using this new method provides higher resolution than
the frequency measurement and permits faster
scanning.
THEORY OF OPERATION
The basic principle is that a relaxation oscillator will be
created with the microcontroller and the sensing pad’s
capacitance. This oscillation should be on the order of
200 to 500 kHz (using the CSM module, no work is
required but to have a sensor pad, and the oscillations
will be in this range when using the high power setting;
for the SR latch devices, a 100 kOhm feedback resistor
will typically put the sensors in that region - Figure A-1).
When a user’s finger touches the sensor, it will reduce
the relaxation oscillator frequency and increase the
period. This increase in period will be detected.
Configuring the Hardware
The period will not be measured as a value, such as
8µsec but, instead, will be a count in Timer1
representing period through some scaling factors. This
method will use Timer0 and Timer1, but now the inputs
to Timer0 and Timer1 are reversed. The input of Timer1
will be F
OSC/4, or a multiple, and the input of Timer0 will
be the relaxation oscillator drive signal.
Figure 1 on page 3 shows how to configure the
PIC16F727 family of devices to perform this period
measurement using the Cap Sense Module (CSM).
Obtaining a Reading
At the beginning of a reading, Timer1 is cleared, and
Timer0 may be cleared or preloaded with a fixed value.
Preloading a value, other than 0, will make the
sampling time shorter. On the interrupt of Timer0, the
value of Timer1 is the reading. The internal oscillator of
the device will run at 4, 8, or 16 MHz, orders of
magnitude faster than the relaxation oscillator. The
Timer1 result is a ratio of the frequency of the internal
oscillator over the frequency of the relaxation oscillator,
and this is multiplied by the number of periods
measured (how many times Timer0 counted – 255
periods if starting from 0), as shown in Equation 1
below:
EQUATION 1:
The Timer1 value is a representation of the period of
the relaxation oscillator. This value will be watched for
an increase, signaling touch.
SOFTWARE DECODING
The software decoding for the period measurement is
identical to the frequency measurement methods,
except now the reading goes up for a touch, instead of
down. Previously, as frequency decreased, the same
decrease was seen in the reading.
Also, the period measurement is linear only for small
shifts, less than 5-10%. A percentage can still be
computed from the value, and is still useful, but for
large shifts, since the period is 1/f, it increases
exponentially. If you have a large shift, then the signal
shift will be extremely large, allowing for plenty of shift
in the data to work with.
Author: Thomas Perme
Microchip Technology Inc.
reading = (FOSC/4)/(F
RELAXOSC
)
N
mTouch™ Capacitive Sensing Using Period Method
页面指南
页面指南

PIC16F707-I/PT 数据手册 PDF

PIC16F707-I/PT 数据手册
Microchip
268 页, 2952 KB
PIC16F707-I/PT 应用笔记
Microchip
8 页, 131 KB
PIC16F707-I/PT 产品修订记录
Microchip
2 页, 552 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 分钟前
您的邮箱 *
消息 *
发送