电子工程世界电子工程世界电子工程世界

关键词

搜索

型号

搜索

AN1250

产品描述Microchip CTMU for Capacitive Touch Applications
文件大小805KB,共22页
制造商Microchip(微芯科技)
官网地址https://www.microchip.com
下载文档 全文预览

AN1250概述

Microchip CTMU for Capacitive Touch Applications

文档预览

下载PDF文档
AN1250
Microchip CTMU for Capacitive Touch Applications
Author:
Bruce Bohn
Microchip Technology Inc.
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.
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.
©
2009 Microchip Technology Inc.
DS01250A-page 1
请教“quartus ii 14.1如何例化PLL”
现在在用quartus ii 14.1,5CEFA2F23I7的片子,在使用软件自带的PLL时,不知如何例化PLL,这个跟以前的版本不一样了...
fllfqj FPGA/CPLD
项目寻求合作
我手头有个项目,是远程抄表集中器设计的,需要用ARM32位处理器设计,我们想整体发包,有项目经验者可与我联系! qq:463071950 ...
liujincai1230 嵌入式系统
控制开机电路问题
这个电路实现单片机控制开机有什么问题,R2电阻大吗 636072 ...
kal9623287 电源技术
用过DE2做音频设计的大侠请进
现在在用DE2板子测试我自己写的一个I2S控制器,需要用到DE2上的WM8731。遇到的问题是,波形按照预期输出但是没有声音。问题可能出现在下面几个地方: 1 所采用的音频数据文件是PCM格式的,16bi ......
hgai FPGA/CPLD
头文件
在IAREW有#include 但是在ICC中编译不过去, 在ICC中对应的头文件是什么?...
mz_flying 嵌入式系统
电子设计 虑波器 以及EMC设计
电子设计 虑波器 以及EMC设计 LBSALELBSALE...
linda_xia 模拟电子

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

 
机器人开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 大学堂 TI培训 Datasheet 电子工程 索引文件: 271  436  2608  856  2034  51  57  41  46  2 

器件索引   0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2026 EEWORLD.com.cn, Inc. All rights reserved