Web Analytics
Datasheet
Teiledatenblatt > Microcontroller, MCU IC > Microchip > PIC18F24K22-I/SP Datenblatt-PDF > PIC18F24K22-I/SP Anwendungshinweis Seite 1/22
PIC18F24K22-I/SP
€ 2.10
Preis von AiPCBA

PIC18F24K22-I/SP Anwendungshinweis - Microchip

Aktualisierte Uhrzeit: 2025-04-27 07:37:17 (UTC+8)

PIC18F24K22-I/SP Anwendungshinweis

Seite:von 22
PDF herunterladen
Neu laden
herunterladen
© 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
Verzeichnis

PIC18F24K22-I/SP Datenblatt-PDF

PIC18F24K22-I/SP Datenblatt PDF
Microchip
560 Seiten, 9427 KB
PIC18F24K22-I/SP Anderes Datenblatt
Microchip
52 Seiten, 65 KB
PIC18F24K22-I/SP Anwendungshinweis
Microchip
22 Seiten, 835 KB
PIC18F24K22-I/SP Notizdatei
Microchip
8 Seiten, 23 KB
PIC18F24K22-I/SP Andere Referenzen
Microchip
4 Seiten, 164 KB

PIC18F24K22 Datenblatt-PDF

PIC18F24K22
Datenblatt PDF
Microchip
SOIC28
PIC18F24K22-I/SS
Datenblatt PDF
Microchip
MCU 8Bit PIC18 PIC RISC 16KB Flash 2.5V/3.3V/5V 28Pin SSOP Tube
PIC18F24K22-I/SO
Datenblatt PDF
Microchip
MCU 8Bit PIC RISC 16KB Flash 2.5V/3.3V/5V Automotive 28Pin SOIC W Tube
PIC18F24K22T-I/SO
Datenblatt PDF
Microchip
MCU 8Bit PIC18 PIC RISC 16KB Flash 2.5V/3.3V/5V 28Pin SOIC W T/R
PIC18F24K22-E/SO
Datenblatt PDF
Microchip
MCU 8Bit PIC18 PIC RISC 16KB Flash 2.5V/3.3V/5V 28Pin SOIC W Tube
PIC18F24K22-I/SP
Datenblatt PDF
Microchip
MCU 8Bit PIC RISC 16KB Flash 2.5V/3.3V/5V Automotive 28Pin SPDIP Tube
PIC18F24K22-E/ML
Datenblatt PDF
Microchip
MCU 8Bit PIC18 PIC RISC 16KB Flash 2.5V/3.3V/5V 28Pin QFN EP Tube
PIC18F24K22-I/ML
Datenblatt PDF
Microchip
MCU 8Bit PIC18 PIC RISC 16KB Flash 2.5V/3.3V/5V Automotive 28Pin QFN EP Tube
PIC18F24K22-I/MV
Datenblatt PDF
Microchip
MCU 8Bit PIC18 PIC RISC 16KB Flash 2.5V/3.3V/5V 28Pin UQFN EP Tube
PIC18F24K22T-I/MV
Datenblatt PDF
Microchip
MCU 8Bit PIC18 PIC RISC 16KB Flash 2.5V/3.3V/5V 28Pin UQFN EP T/R
Datenblatt-PDF-Suche
Suche
100 Millionen Datenblatt-PDF, aktualisieren Sie mehr als 5.000 PDF-Dateien pro Tag.
Kontakt online
Bonnie - AiPCBA Sales Manager Online, vor 5 Minuten
Ihre E-Mail *
Nachricht *
Senden