Overview of Charge Time Measurement Unit (CTMU)

Similar documents
2009 Microchip Technology Incorporated. All Rights Reserved CTMU Slide CTMU Capacitive Touch Sensing Using CTMU

Low-Power Techniques for LCD Applications RTH = (2R*R)/(2R+R) RTH = 2R 2 /3R RTH = 2R/3 RSW = 4.7K RCOM = 0.4K

AN1213. Powering a UNI/O Bus Device Through SCIO INTRODUCTION CIRCUIT FOR EXTRACTING POWER FROM SCIO

Microchip mtouch Solution Microchip Technology Incorporated. All Rights Reserved. Insert Class Code Here

MCP1401/02. Tiny 500 ma, High-Speed Power MOSFET Driver. General Description. Features. Applications. Package Types

AN1085. Using the Mindi Power Management Simulator Tool INTRODUCTION ACCESSING MINDI ON MICROCHIP S WEB SITE

AN1312. Deviations Sorting Algorithm for CSM Applications INTRODUCTION DESCRIPTION. The Second Concept Most Pressed Button

Interfacing a MCP9700 Analog Output Temperature Sensor to a PICmicro Microcontroller. PICkit 1 Flash Starter Kit ADC V DD.

MCP9700/9700A MCP9701/9701A

MCP9509/10. Resistor-Programmable Temperature Switches. Features. Description. Package Types. Applications. Typical Performance

MCP3550/1/3. Low-Power, Single-Channel 22-Bit Delta-Sigma ADCs. Features. Description. Applications. Package Types: Block Diagram

PIC16F87/88. PIC16F87/88 Rev. B1 Silicon Errata. 1. Module: Internal RC Oscillator

TC682. Inverting Voltage Doubler. General Description: Features: Applications: Functional Block Diagram. Device Selection Table. Package Type TC682

17082 AMP Creating Class D Amplifiers with PIC MCUs and Analog

Voltage Detector. TC54VC only

TB090. MCP2030 Three-Channel Analog Front-End Device Overview INTRODUCTION MCP2030. Youbok Lee, Ph.D. Microchip Technology Inc.

LoRaWAN for Smart Cities Munich, May Jonathan Pearce Wireless Marketing Manager

TC1047/TC1047A. Precision Temperature-to-Voltage Converter. General Description. Applications. Block Diagram. Features.

TC32M. ECONOMONITOR 3-Pin System Supervisor with Power Supply Monitor and Watchdog. Features: General Description: Applications:

AN1202. Capacitive Sensing with PIC10F IMPLEMENTATION INTRODUCTION + - BASIC OSCILLATOR SCHEMATIC. Microchip Technology Inc.

AN1291. Low-Cost Shunt Power Meter using MCP3909 and PIC18F25K20 OVERVIEW HARDWARE DESCRIPTION

TC1275/TC1276/TC1277. Obsolete Device. 3-Pin Reset Monitors for 3.3V Systems. Features. General Description. Applications. Device Selection Table

MCP2515. MCP2515 Rev. B Silicon Errata. 3. Module: CAN Module. 1. Module: Oscillator Module. 4. Module: CAN Module. 2. Module: RAM Module

PIC16F818/819. PIC16F818/819 Rev. B0 Silicon Errata Sheet

Capacitive Multibutton Configurations Q3*RD_CM1CON0 C1ON (1) C1POL

AN1476. Combining the CLC and NCO to Implement a High Resolution PWM BACKGROUND INTRODUCTION EQUATION 2: EQUATION 1: EQUATION 3:

TC1301A/B. Dual LDO with Microcontroller RESET Function. Features. Description. Applications. Package Types. Related Literature

AN1244. PIC Microcontroller Horn Driver INTRODUCTION HORN THEORY PIC MICROCONTROLLER IMPLEMENTATION

PIC18F24J10/25J10/44J10/45J10

MCP V 12-Bit A/D Converter with SPI Serial Interface. Features. Description. Package Types. Applications. Functional Block Diagram

MCP9700/9700A MCP9701/9701A

PIC16F818/819. PIC16F818/819 Rev. A4 Silicon Errata Sheet. 2. Module: PORTB FIGURE 1: 1. Module: Internal RC Oscillator

Issue 3, March Introduction. Tips and Tricks. In This Issue. Recommended Reading NOVEMBER Rodger Richey. Senior Applications Manager

6A High-Speed Power MOSFET Drivers. 8-Pin 6x5 DFN INPUT NC GND

dspic30f1010/202x to dspic33fj06gs101/x02 and dspic33fj16gsx02/x04 Migration Guide

TC1411/TC1411N. 1A High-Speed MOSFET Drivers. Features. Description. Package Types. Applications. 8-Pin MSOP/PDIP/SOIC

MCP1406/07. 6A High-Speed Power MOSFET Drivers. General Description. Features. application.

GS004. Driving an ACIM with the dspic DSC MCPWM Module INTRODUCTION MCPWM MODULE FILTERED BY THE MOTOR'S WINDINGS

AN1208. Integrated Power Factor Correction (PFC) and Sensorless Field Oriented Control (FOC) System INTRODUCTION. Digital PFC and Motor Control

Single Cell Lithium-Ion Charge Management Controller with Mode Indicator and Charge Current Monitor. + Single Lithium-Ion

AN1178. Intelligent Fan Control INTRODUCTION BRUSHLESS DC THEORY

TC53. Voltage Detector. Not recommended for new designs Please use MCP111/2 TC53. General Description: Features: Typical Applications:

TC125/TC126. PFM Step-Up DC/DC Regulators. Features: General Description: Applications: Device Selection Table. Typical Application.

TC7660. Charge Pump DC-to-DC Voltage Converter. Package Types. Features. General Description. Applications. Functional Block Diagram TC7660

IR Remote Control Transmitter. Packet Packet Packet 24.9 ms Packet continues to repeat while a button is pressed 114 ms

MTCH112. Dual Channel Proximity Touch Controller Product Brief FEATURES PACKAGE TYPE SOIC, DFN GENERAL DESCRIPTION 8-PIN SOIC, DFN DIAGRAM FOR MTCH112

AN763. Latch-Up Protection For MOSFET Drivers INTRODUCTION. CONSTRUCTION OF CMOS ICs PREVENTING SCR TRIGGERING. Grounds. Equivalent SCR Circuit.

TC620/TC621. 5V, Dual Trip Point Temperature Sensors. Features: Package Type. Applications: Device Selection Table. General Description:

AN897. Thermistor Temperature Sensing with MCP6SX2 PGAs INTRODUCTION THERMISTOR CIRCUIT

TC1054/TC1055/TC ma, 100 ma and 150 ma CMOS LDOs with Shutdown and ERROR Output. Features. General Description. Applications.

TC1270/TC Pin Reset Monitors. Obsolete Device Recommended Replacements: TC1270A, TC1270AN, TC1271A. General Description.

TABLE 1: REGISTERS ASSOCIATED WITH SLOPE COMPENSATOR MODULE

MCP14E3/MCP14E4/MCP14E5

MCP3551/3 Low-Power, Single-Channel 22-Bit Delta-Sigma ADCs Features Description Applications Package Types: MCP3551/3 Block Diagram

MCP2036. Inductive Sensor Analog Front End Device. Description. Features. Typical Applications. Package Types

TC1014/TC1015/TC ma, 100 ma and 150 ma CMOS LDOs with Shutdown and Reference Bypass. Features: General Description. Applications: Package Type

TC913A/TC913B. Dual Auto-Zeroed Operational Amplifiers. Features: Package Type. General Description: Applications: Device Selection Table

MCP1701A. 2 µa Low-Dropout Positive Voltage Regulator. Features. General Description. Applications. Package Types

TC4421A/TC4422A. 9A High-Speed MOSFET Drivers. Features. General Description. Applications. Package Types (1)

High-Speed N-Channel Power MOSFET

MCP V In Dual Output Buck Converter Reference Design

TC4426A/TC4427A/TC4428A

MCP Dual Input Synchronous MOSFET Driver. General Description. Features. Applications. Package Types

TC ma Fixed Low Dropout Positive Regulator. Features. General Description. Applications. Package Types. Typical Application

Introduction to Stepper Motors

TCM680. Obsolete Device. +5V To ±10V Voltage Converter. Features. General Description. Applications. Package Type. Typical Operating Circuit

MCP6V01 Thermocouple Auto-Zeroed Reference Design

TC14433/A. 3-1/2 Digit, Analog-to-Digital Converter. Features: Package Type. Applications: Device Selection Table

MCP661/2/3/5. 60 MHz, 6 ma Op Amps. Features. Description. Typical Applications. Typical Application Circuit. Design Aids.

MCP V 10-Bit A/D Converter with SPI Serial Interface 查询 MCP3001 供应商. Features. Package Types. Functional Block Diagram.

New Peripherals Tips n Tricks

TC59. Low Dropout, Negative Output Voltage Regulator TC59. Features. General Description. Applications. Functional Block Diagram

MCP1824/MCP1824S. 300 ma, Low Voltage, Low Quiescent Current LDO Regulator. Features. Description. Applications

AN1078. Sensorless Field Oriented Control of PMSM Motors INTRODUCTION. Why Use Digital Signal Controllers for Motor Control?

AN238. Tire Pressure Monitoring (TPM) System SYSTEM COMPONENTS INTRODUCTION TIRE PRESSURE MONITORING (TPM) SYSTEM

TCM828/TCM829. Switched Capacitor Voltage Converters. Features. Description. Applications. Package Type. Typical Application Circuit

Energy-Metering ICs with Active (Real) Power Pulse Output

TC4426AM/TC4427AM/TC4428AM

High-Speed N-Channel Power MOSFET. PDFN 5 x 6 S

TC1240/TC1240A. Positive Doubling Charge Pumps with Shutdown in a SOT-23 Package. Features. General Description. Applications

AN1257. Closed Loop Chromaticity Control: Interfacing a Digital RGB Color Sensor to a PIC24 MCU OVERVIEW. Constant Current LED Driver

TC1072/TC mA and 100mA CMOS LDOs with Shutdown, ERROR Output and V REF Bypass. Features: General Description. Applications: Package Type

MCP ma, High PSRR, Low Quiescent Current LDO. Features: Description: Applications: Package Types. Related Literature:

MCP6001/1R/1U/2/4. 1 MHz, Low-Power Op Amp. Features. Description. Applications. Package Types. Design Aids. Typical Application

CMOS Current Mode PWM Controller SOFT START/ SHDN SHDN V IN OUTPUT B V DD GND ERROR AMP IN CMPTR + ERROR AMP IN ERROR AMP IN CMPTR OUTPUT A SYNC C O

AN1115. Implementing Digital Lock-In Amplifiers Using the dspic DSC INTRODUCTION THEORY EQUATION 1: EQUATION 2: EQUATION 3:

TC7660S. Super Charge Pump DC-to-DC Voltage Converter. Features: Package Types. General Description: Applications:

Configurable Logic Cell Tips n Tricks

Section 45. High-Speed Analog Comparator

MTCH810. Haptics Controller Product Brief. Description: Features: Pin Description: Package Type: DESCRIPTION MTCH810

TC7662A. Charge Pump DC-to-DC Converter. Features. Package Type. General Description. Applications. Device Selection Table. 8-Pin PDIP 8-Pin CERDIP

TC9400/9401/9402. Voltage-to-Frequency / Frequency-to-Voltage Converters. Features: General Description: Package Type.

MCP1525/ V and 4.096V Voltage References. Features. Description. Applications. Temperature Drift. Typical Application Circuit.

High-Speed N-Channel Power MOSFET

1.5A Dual High-Speed Power MOSFET Drivers. Temp. Range

MCP ma, High PSRR, Low Quiescent Current LDO. Features: Description: Applications: Package Types. Related Literature:

TC mA CMOS LDO TC1108. General Description. Features. Applications. Typical Application. Device Selection Table. Package Type SOT-223

MCP6V01 Input Offset Demo Board User s Guide

High-Speed N-Channel Power MOSFET

MCP3905/06. Energy-Metering ICs with Active (Real) Power Pulse Output. Features. Description. Package Type. Functional Block Diagram

Transcription:

Overview of Charge Time Measurement Unit (CTMU) 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 1 Welcome to the Overview of Charge Time Measurement Unit Webinar. My name is Padmaraja Yedamale, I am an applications engineer working in Advanced Microcontroller and Architecture Division at Microchip Technology. In this webinar I am going to explain the new peripheral on PIC microcontrollers called Charge Time Measurement Unit (CTMU). This peripheral is ideal for capacitive touch application and many other applications. The agenda for this webinar is as follows.. 1

Agenda 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 2 In this webinar are going to see the 2

Agenda What is CTMU and Key Features CTMU functional block diagram 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 3 see the construction of CTMU, features of CTMU in detail by explaining the block diagram of CTMU. 3

Agenda What is CTMU and Key Features CTMU functional block diagram How CTMU is used for Capacitive Touch Sensing application 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 4 Also I will explain how CTMU can be used for Capacitive touch application and few examples of capacitive touch applications. 4

Agenda What is CTMU and Key Features CTMU functional block diagram How CTMU is used for Capacitive Touch Sensing application Other applications using CTMU 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 5 CTMU can be used for other applications as well. I will describe how CTMU can be used for other applications. 5

Agenda What is CTMU and Key Features CTMU functional block diagram How CTMU is used for Capacitive Touch Sensing application Other applications using CTMU Resources available from Microchip 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 6 Finally I will explain the resources and collaterals available from Microchip to implement your application easy and fast. 6

Key features of CTMU CTMU stand for Charge Time Measurement Unit 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 7 Now let us see what CTMU is. As I mentioned earlier, CTMU stands for Charge Time Measurement Unit. 7

Key features of CTMU CTMU stand for Charge Time Measurement Unit Constant current source Ranges: 0.55uA, 5.5uA and 55uA source Trim-able up to +/- 62% on each range 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 8 What are the features of CTMU? The heart of the CTMU is a constant current source, with choices of three ranges, with trim capability in each range. The three ranges in the current implementation are 0.55uA, 5.5uA and 55uA. Each of these current ranges can be trimmed up to plus or minus 62 percent giving a total range of 0.2uA to approximately 90uA of constant current source. 8

Key features of CTMU CTMU stand for Charge Time Measurement Unit Constant current source Ranges: 0.55uA, 5.5uA and 55uA source Trim-able up to +/- 62% on each range Works in conjunction with ADC 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 9 The CTMU channels work in conjunction with Analog to Digital converters on the PIC microcontrollers. 9

Key features of CTMU CTMU stand for Charge Time Measurement Unit Constant current source Ranges: 0.55uA, 5.5uA and 55uA source Trim-able up to +/- 62% on each range Works in conjunction with ADC High precision Time measurement asynchronous to the system clock 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 10 CTMU can be used for high precision time measurement, such as in flow meter and other metering applications 10

Key features of CTMU CTMU stand for Charge Time Measurement Unit Constant current source Ranges: 0.55uA, 5.5uA and 55uA source Trim-able up to +/- 62% on each range Works in conjunction with ADC High precision Time measurement asynchronous to the system clock Triggered by external or internal sources Timer1, output compare, software trigger Rising Edge, Falling edge combination of one or two external pins 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 11 There are many trigger sources for CTMU, as shown here, CTMU can be triggered using Timer1 or any output compare module or it can be triggered by software instructions. Also CTMU can be triggered using EDGE pins with rising edge or falling combinations. 11

Key features of CTMU CTMU stand for Charge Time Measurement Unit Constant current source Ranges: 0.55uA, 5.5uA and 55uA source Trim-able up to +/- 62% on each range Works in conjunction with ADC High precision Time measurement asynchronous to the system clock Triggered by external or internal sources Timer1, output compare, software trigger Rising Edge, Falling edge combination of one or two external pins Precise time delay output 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 12 CTMU can generate a precise time delay. All these are explained using the following block diagram.. 12

CTMU Block Diagram CTMUCON CTMUICON External Edge Trigger Pins Current Source Timer1 OC1 Edge Control Logic A/D Converter Current Control Comparator 2 Input CTMU Control Logic Pulse Generation Logic A/D Conversion Trigger Comparator 2 Output Pulse Output Pin 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 13 This slide shows a high level block diagram of the CTMU. The On and off of the constant current source is controlled by the triggering sources discussed in the previous slide, such as external pins, Timer1 or Output Compare1. Alternatively, the current source can be turned on or off in the firmware using the CTMU control registers. The special Function Registers (SFRs) CTMUCON and CTMUICON are used to setup the CTMU operation. 13

CTMU Block Diagram Current Source Current Control A/D Converter 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 14 The following slide shows a closer look at the current source.. 14

Current Source Triggering Trigger Starts/Stops Current Source Current Source SW1 Trim-able current source Range : 0.55uA, 5.5uA and 55uA Discharge SW2 CTMU To A/D Converter Current Source charges external circuitry 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 15 In simple words, by controlling the switch SW1, the current source can be turned ON and OFF. The SW2 makes sure that the external circuit is discharged before start charging. 15

CTMU Interface to ADC PIC MCU A/D with CTMU Current Source A/D Conversion Trigger ADC/CTMU Channels Multiplexer CTMU C A/D A/D Converter 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 16 This diagram shows the interaction between the CTMU and the ADC. The CTMU module is add-on to the ADC module. When a channel is chosen, the multiplexer connects the CTMU to the external pin. When the application is ready to make a measurement on ADC, CTMU can trigger the ADC to start acquiring a sample and conversion there after. Because the CTMU and the ADC are interconnected, it is very easy to set up and use these peripherals in an application. Now let us see how this current source in CTMU can be used for Capacitive Touch sensing Application. 16

CTMU for Cap Touch Application EE101 basics: Instantaneous Current in a capacitor i = C dv/dt 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 17 Before going into the Capacitive sensing, let us see basics of capacitance by going back to Electrical Engineering 101 class. The instantaneous current in a capacitor is equal to the Capacitance multiplied by change in voltage over time, I = C dv/dt. 17

CTMU for Cap Touch Application EE101 basics: Instantaneous Current in a capacitor i = C dv/dt If i = constant current, then I = C V/t I t = C V 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 18 If the current is constant, the equation can be integrated on both sides. That gives, I = C V/t If the equation is re arranged, Current multiplied by time is equal to the Capacitance multiplied by Voltage. 18

CTMU for Cap Touch Application EE101 basics: Instantaneous Current in a capacitor i = C dv/dt If i = constant current, then I = C V/t I t = C V If I and t are held constant, as C increases, V must decrease 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 19 What this means is, if a Capacitor is charged with a constant current of I for a fixed time t, the capacitance varies inversely to the voltage. Or in other words, as the C increases, V decreases. This principle is used in a capacitive touch sensing application as following. 19

Capacitive Touch Theory PCB pad is a sensor (C P ) CP 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 20 Let us see how a simple capacitive sensor can be built using a PCB and copper pad. PCB material such as FR-4 or epoxy acts as a delectric material. When a copper pad is placed on the PCB, it acts as one of the conductive plate of the capacitor and the ground plane or ground area acts like the second plate of the capacitor as shown in the diagram. The larger the pad, the better the sensitivity and a sensor touch will be more easily detected. The sensor capacitance is indicated by Cp in this slide. 20

Capacitive Touch Theory PCB pad is a sensor (C P ) Introduction of finger produces a parallel capacitance (C F) CF CP 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 21 When a finger touch is introduced on the sensor pad, it adds a second capacitance, Cf, in parallel with the pad s capacitance. So task of CTMU is to detect this change in capacitance when a human finger touches the PCB pad or capacitive switch. Let us see how this is done using CTMU. 21

CTMU Touch Circuit Components I = C V t Trigger Current Source I Discharge CTMU C SW C CIR V C AD V AD C F C P = C AD + C CIR + C SW = 30pF C F = 7pF A/D Converter 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 22 As shown here, all the elements of applying CTMU for capacitive touch sense application. 22

CTMU Touch Circuit Components I = C V t Trigger Current Source I Discharge CTMU C SW C CIR V C AD V AD C F C P = C AD + C CIR + C SW = 30pF C F = 7pF A/D Converter 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 23 The constant current source, I, from the CTMU charges the capacitive sensor for a fixed time. The charge time is controlled using the CTMU trigger inputs. 23

CTMU Touch Circuit Components I = C V t Trigger Current Source I Discharge CTMU C SW C CIR V C AD V AD C F C P = C AD + C CIR + C SW = 30pF C F = 7pF A/D Converter 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 24 The total capacitance of the sensor includes the sensor capacitance (CSW) the stray capacitance in the traces and circuit and capacitance due to ADC connection. Typically the value of the sensor CP is in the range of 30pF to 100pF. Typically human body has about 7pF to 20pF of capacitance. When a finger is introduced, it is added in parallel to the sensor capacitance, thus making the total capacitance to 37pF in this example. 24

CTMU Touch Circuit Components I = C V t Trigger Current Source I Discharge CTMU C SW C CIR V C AD V AD C F C P = C AD + C CIR + C SW = 30pF C F = 7pF A/D Converter 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 25 Typical time used to charge the capacitance is about 4 to 5uSec. 25

CTMU Touch Circuit Components I = C V t Trigger Current Source I Discharge CTMU C SW C CIR V C AD V AD C F C P = C AD + C CIR + C SW = 30pF C F = 7pF A/D Converter 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 26 ADC is used to measure the charge build-up, V, in the capacitance. In un touched condition, the charge up voltage is higher than when the sensor is touched. This is due to increase in total capacitance when the sensor is touched. Let us see a typical calculation to see the real voltage difference between touched and un touched conditions. 26

I = C V t Sample Calculations I t = V C When un touched I = 5.5µA t = 10µS C P = 30pF V = 1.833 C P = C AD + C CIR + C SW = 30pF C F = 7pF 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 27 Let us take and example of 5.5uA current source on CTMU and charge the senor pad for 10uSec. With a typical value of 30pF of sensor capacitance, the charge build up is 1.833 Volts when the sensor is untouched. 27

I = C V t Sample Calculations I t = V C When un touched I = 5.5µA t = 10µS C P = 30pF V = 1.833 When touched I = 5.5µA t = 10µS C = C P + C F = 37pF V = 1.486 C P = C AD + C CIR + C SW = 30pF C F = 7pF 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 28 When the sensor is touched, a 7pF of capacitor is added to the total capacitance, making the total charge build up to 1.486 Volts. The ADC measure both of these voltages and the firmware determines when the switch is pressed. 28

CTMU Full Waveform End Charge A/D Conversion Discharge Begin Charge Fast scan rate, a CTMU channel can be scanned in 6uSec 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 29 This slide shows a scope plot of complete scanning cycle. First the channel is discharged, so that we can start from zero volts. Then the CTMU starts charging the sensor for a fixed time. Then the ADC converts the charge build up. Note that the voltage build up has a discharge slope due to high value of the oscilloscope probe leakage. Typically CTMU can scan a channel in 6uSec. This enables to service a large number of capacitive touch buttons in an application. Also this allows bandwidth for other applications to run in conjunction with the Capacitive touch on the same PIC microcontroller. 29

Untouched & Touched Not Touched Touched 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 30 When the sensor is un touched the charge build up is higher than when the sensor is touched. 30

Untouched & Touched Not Touched Touched 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 31 ADC measures the voltage and the firmware detects the sensor is been touched or pressed. The same concept can be applied for proximity sensing. Basically the firmware differentiates a varying ADC value when a proximity is sensed. 31

Other Applications of CTMU - Time Domain Reflectometry (TDR) - Temperature measurement - Humidity measurement - Precise Time measurement - Absolute and relative capacitance measurement - Digital to Analog Converter (DAC) 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 32 There are many other applications the CTMU can be applied to. Some of them are listed here. Time domain refloctometry uses the time measurement side of the CTMU -Temperature measurement using a diode. We will see these two applications in the next section - A humidity sensor is nothing but a varying capacitance and CTMU is perfect to measure the variance in capacitance. -CTMU can be used to measure absolute capacitance and relative change in capacitance, as shown in capacitive touch sensing application -Also it can be used as Digital to Analog converter (DAC) We will see the TDR and temperature senor applications in detail in the coming sections. 32

TDR Theory of operation CTMU Channel R0 = 50 ohms Z0 = 50 ohms Rt = infinite ohms (Open) At T = 2T 0 ns Node A Voltage = Vp *(Rt/(Rt +R0)) At T = 0ns Node A Voltage(V A ) = Vp *(Z0/(R0 +Z0)) 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 33 First, let us see what is the Time Domain Reflectometry or TDR. In layman terms, TDR is basically time taken by a pulse to propagate through a circuit and to reflect from the end of a circuit back to the source. In example of a co axial cable that has 50 Ohms. TDR has long been used to measure the electrical length of transmission lines, locate faults in transmission lines, and characterize transmission line impedance. The figure shows a pulse generator with a resistor R0 connected to a transmission line with impedance Z0 and a termination resistance of RT. If we use the occurrence of the rising edge of the pulse as a reference point in time (0nS), then at T = 0nS the voltage at node A is: VA = VP * (Z0 / (R0 + Z0)) Eq. 1 Where VP is the amplitude of the pulse. The transmission has an electrical length T0 where T0 is the time it takes the pulse to propagate down the transmission line. The electrical length T0 of the transmission line can be calculated by taking 1/ (speed of light) or (1.017nS/ft) * (the length of the transmission line). The Voltage at node A at 2 times T0 will be: VA = VP * (RT / (RT + R0)) If the transmission line is un-terminated then VA = VP when T >= 2T0. The scope plot here shows a pulse generator with a 50 ohm output impedance driving a 2V pulse into an un-terminated 50 ohm coaxial cable. 33

TDR Measurement T 2T0 directly correlates to the length of the cable 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 34 The two step wave form of an un-terminated transmission line is shown in the scope plots here. The initial voltage at T = 0nS, using equation at node A is 1V (VP/2). At time 2T0 the reflected pulse from the un-terminated transmission line returns and using the second equation, the voltage at node A is 2V (VP). So Time Domain refers to the fact that we are looking at the wave form in the time domain, and Reflectometry refers to the fact that we are looking at the reflected impedance of the transmission line and the transmission line termination. The impedance is represented by the voltage. 34

Temperature Measurement The forward voltage of a diode varies with temperature Temperature can be measured with CTMU Which is a constant current source over voltage and temperature A diode A/D converter 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 35 Next let us see how CTMU can be used to measure temperature using a diode. An in expensive way of measuring temperature is using a diode. The forward voltage drop of a diode varies with the temperature. With this theory, using a common diode and constant current source on CTMU and using ADC for measuring the forward voltage, temperature can be measured to accuracy of 1 degree C. 35

Temperature Sensing With CTMU and DIODE CTMU Constant I F A/D V f V fadc Basic DIODE Equation Forward Current I F = I S (e qvf/nkt 1) I F is a constant then ln(i F / I S +1)nk is a constant T α Vf 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 36 The equation shown here defines the forward current of a diode as factor of forward voltage and temperature. When forward current is constant, most other components are constant other than the temperature and the forward voltage. By measuring the forward voltage, temperature can be determined. As shown in this block diagram, CTMU powers the diode with a constant current source and the ADC measures the forward voltage of the diode. 36

Temperature Measurement Temperature 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 37 This graph shows the data for a commonly available rectifier diode 1N913.X axis is the temperature and Y axis shows ADC reading, with 64 samples accumulated. As you can see here, the ADC reading varies more or less linear to the temperature. This gives an in expensive way of measuring temperature using CTMU and a diode. 37

Resources PIC24 Family Reference Manual Section 11: CTMU (DS39724) PICDEM Touch Sense 2 board DM164128 Web page for all mtouch collateral www.microchip.com/mtouch To date, CTMU is in more than 20 parts and more to come 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 38 There are many resources available from Microchip for CTMU and capacitive touch sensing. First, refer to the family reference manual DS39724 Second, The PICDEM Touch Sense2 board demonstrates CTMU in capacitive touch sensing application. Third, Visit www.microchip.com/mtouch for update and all related collaterals. There are more than 20 PIC microcontrollers with CTMU and many more will follow. 38

PICDEM Touch Sense2 mtouch Diagnostic GUI For customizing the Capacitive Touch Solution 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 39 As I mentioned in the earlier slide, the PICDEM Touch sense2 board (DM164128) demonstrates CTMU in capacitive touch sensing application. This board has implementation of direct keys, matrix keys and a linear slider. Also this comes with a free GUI for diagnostics and customization purpose. Using this GUI, you can customize your own capacitive touch sensing application. Please refer to the documentation by visiting www.microchip.com/mtouch 39

Key Features Summary CTMU functional block diagram How CTMU is used for Capacitive Touch Sensing application Other applications using CTMU Precise time difference measurement Temperature measurement Resources available from Microchip 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 40 To summarize what we discussed so far, We have seen the key features and detailed block diagram of CTMU How to use CTMU for capacitive touch sensing, TDR and temperature measuring applications are discussed Also the resources available from Microchip are discussed. With this we conclude this webinar. Thank you for watching this webinar. Hope you find this helpful. 40

Trademarks The Microchip name and logo, the Microchip logo, Accuron, dspic, KeeLoq, KeeLoq logo, MPLAB, PIC, PICmicro, PICSTART, rfpic, SmartShunt and UNI/O are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. FilterLab, Linear Active Thermistor, MXDEV, MXLAB, SEEVAL, SmartSensor and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A. Analog-for-the-Digital Age, Application Maestro, CodeGuard, dspicdem, dspicdem.net, dspicworks, dsspeak, ECAN, ECONOMONITOR, FanSense, In-Circuit Serial Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB, MPLINK, mtouch, PICkit, PICDEM, PICDEM.net, PICtail, PIC32 logo, PowerCal, PowerInfo, PowerMate, PowerTool, REAL ICE, rflab, Select Mode, Total Endurance, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. 2008 Microchip Technology Incorporated. All Rights Reserved. An Overview of Charge Time Measurement Unit Slide 41 41