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

PIC24FJ256GB110-I/PT 应用笔记 - Microchip

更新时间: 2024-05-30 09:14:10 (UTC+8)

PIC24FJ256GB110-I/PT 应用笔记

页码:/22页
下载 PDF
重新加载
下载
© 2009 Microchip Technology Inc. DS01250A-page 1
AN1250
INTRODUCTION
This application note describes the use of Microchip’s
Charge Time Measurement Unit (CTMU) for capacitive
touch applications. The CTMU is an excellent periph-
eral for use in touch sensing applications. The following
are some of the benefits of using the CTMU for touch
sensing applications:
Easy hardware setup
Simple to use software algorithms, available free
of charge
High speed allows for greater scan rate of
capacitive touch switches and for many other
processor tasks
Low cost and low component count; no external
hardware other than a connection to the copper
sensor pad
The purpose of this application note is to inform
prospective users of the CTMU for capacitive touch on
general usage guidelines, CTMU setup and software
algorithms, hardware and layout considerations, and
advanced capacitive touch applications, such as matrix
keys, sliders and multiple press keys.
The CTMU is currently available on selected PIC24
and PIC18F parts. Wherever possible, sample code for
both has been included.
All hardware examples used in this application note
directly pertain to the PICDEM™ Touch Sense 2
Demonstration Board (Part Number DM164128). The
PICDEM Touch Sense 2 Demo Board uses a PIC24F
device-based microcontroller (PIC24FJ256GB110).
This demo board is not necessary for understanding this
application note.
GENERAL FEATURES OF THE CTMU
The CTMU is made up of a constant current source and
several logic blocks for it to operate:
The constant current source is connected to the
A/D converter of the microcontroller.
A switch connected to the CTMU constant current
source (and the A/D converter) is provided to
allow accumulated charge to be drained.
Two external pins are provided to trigger the
constant current source.
An output pin is also available for CTMU use.
For the purposes of capacitive touch, the external
pins for triggering the CTMU and the CTMU output
pin are not used.
The connection of the CTMU to the A/D converter is all
that is needed for capacitive touch applications. For a
more in-depth discussion on the CTMU module and
how it is used to measure charge or time, refer to the
CTMU chapter of the “PIC24F Family Reference Man-
ual” for PIC24F microcontrollers, or the appropriate
data sheet for PIC18F microcontrollers on the
Microchip web site (http://www.microchip.com).
See Figure 1 for a block diagram of the CTMU hardware.
Note that there are a few slight differences in the CTMU
module from the PIC18F and the PIC24F. The PIC18F
CTMU module does not have an automatic ADC
conversion trigger. This is of no consequence for
capacitive touch applications. For clarity, the automatic
ADC trigger present on the PIC24F has not been used
in the sample code so that it more closely matches the
PIC18F code.
Also note that the CTMU on the PIC18F has different
internal trigger sources. (ECCP1 and ECCP2 for
PIC18F and Timer1 and OC1 for PIC24F). This is
mentioned purely for reference, and again, makes no
difference for capacitive touch applications. The sample
code listings in this application note manually set/clear
the EDG1STAT1 and/or EDG2STAT bits in the CTMU
control register for starting and stopping the CTMU
current source.
Author: Bruce Bohn
Microchip Technology Inc.
Microchip CTMU for Capacitive Touch Applications
页面指南

PIC24FJ256GB110-I/PT 数据手册 PDF

PIC24FJ256GB110-I/PT 数据手册
Microchip
20 页, 7979 KB
PIC24FJ256GB110-I/PT 产品设计参考
Microchip
374 页, 5737 KB
PIC24FJ256GB110-I/PT 用户编程手册
Microchip
52 页, 385 KB
PIC24FJ256GB110-I/PT 其它数据手册
Microchip
230 页, 3985 KB
PIC24FJ256GB110-I/PT 应用笔记
Microchip
22 页, 835 KB
PIC24FJ256GB110-I/PT 产品修订记录
Microchip
1 页, 457 KB

PIC24FJ256GB110 数据手册 PDF

PIC24FJ256GB110-I/PF
数据手册
Microchip
16Bit, 16MIPS, 100Pin, 256KB Flash, 8192Bytes RAM, 84 I/O, nanoWatt, USB OTG
PIC24FJ256GB110-I/PT
数据手册
Microchip
16Bit, 16MIPS, 100Pin, 256KB Flash, 8192Bytes RAM, 84 I/O, nanoWatt, USB OTG
PIC24FJ256GB110T-I/PT
数据手册
Microchip
MCU 16Bit PIC24F PIC RISC 256KB Flash 2.5V/3.3V 100Pin TQFP T/R
PIC24FJ256GB110T-I/PF
数据手册
Microchip
MCU 16Bit PIC24F PIC RISC 256KB Flash 2.5V/3.3V 100Pin TQFP T/R
PIC24FJ256GB110-I/PF
数据手册
Micro Commercial Components
Datasheet 搜索
搜索
百芯智造数据库涵盖1亿多个数据手册,每天更新超过5,000个PDF文件。
在线联系我们
黄经理 - 百芯智造销售经理在线,5 分钟前
您的邮箱 *
消息 *
发送