English
Language : 

PIC16F1938 Datasheet, PDF (317/452 Pages) Microchip Technology – 28/40/44-Pin Flash-Based, 8-Bit CMOS Microcontrollers
PIC16(L)F1938/9
26.0 CAPACITIVE SENSING (CPS)
MODULE
The Capacitive Sensing (CPS) module allows for an
interaction with an end user without a mechanical
interface. In a typical application, the CPS module is
attached to a pad on a Printed Circuit Board (PCB),
which is electrically isolated from the end user. When the
end user places their finger over the PCB pad, a
capacitive load is added, causing a frequency shift in the
CPS module. The CPS module requires software and at
least one timer resource to determine the change in
frequency. Key features of this module include:
• Analog MUX for monitoring multiple inputs
• Capacitive sensing oscillator
• Multiple Power modes
• High power range with variable voltage references
• Multiple timer resources
• Software control
• Operation during Sleep
FIGURE 26-1:
CAPACITIVE SENSING BLOCK DIAGRAM
CPS0
CPS1
CPS2
CPS3
CPS4
CPS5
CPS6
CPS7
CPS8(1)
CPS9(1)
CPS10(1)
CPS11(1)
CPS12(1)
CPS13(1)
CPS14(1)
CPS15(1)
CPSCH<3:0>(2)
CPSON(3)
T0XCS
T0CKI
0
1
CPSRNG<1:0>
CPSON
FOSC/4
Timer0 Module
TMR0CS
Set
TMR0IF
0
TMR0
Overflow
1
Capacitive
Sensing
Oscillator
CPSOSC
0
Int.
Ref-
Ref.
1 DAC
0
Ref+
1 FVR
CPSCLK
CPSOUT
T1CS<1:0>
FOSC
FOSC/4
T1OSC/
T1CKI
T1GSEL<1:0>
T1G
SYNCC1OUT
SYNCC2OUT
Timer1 Module
EN TMR1H:TMR1L
Timer1 Gate
Control Logic
CPSRM
Note 1: Reference CPSCON1 register (Register 26-2) for channels implemented on each device.
2: CPSCH3 is not implemented on PIC16F1938/PIC16LF1938.
3: If CPSON = 0, disabling capacitive sensing, no channel is selected.
 2011 Microchip Technology Inc.
Preliminary
DS41574A-page 317