PIC18F65K22-E/MR Microchip Technology, PIC18F65K22-E/MR Datasheet - Page 399

no-image

PIC18F65K22-E/MR

Manufacturer Part Number
PIC18F65K22-E/MR
Description
32kB Flash, 2kB RAM, 1kB EE, NanoWatt XLP, GP 64 QFN 9x9x0.9mm TUBE
Manufacturer
Microchip Technology
Series
PIC® XLP™ 18Fr
Datasheet

Specifications of PIC18F65K22-E/MR

Core Processor
PIC
Core Size
8-Bit
Speed
64MHz
Connectivity
I²C, LIN, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
53
Program Memory Size
32KB (16K x 16)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
2K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 16x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
64-VFQFN Exposed Pad
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
27.7
A unique feature on board the CTMU module is its ability
to generate system clock independent output pulses,
based on either an external voltage or an external
capacitor value. When using an external voltage, this is
accomplished using the CTDIN input pin as a trigger for
the pulse delay. When using an external capacitor
value, this is accomplished using the internal compara-
tor voltage reference module and Comparator 2 input
pin.The pulse is output onto the CTPLS pin. To enable
this mode, set the TGEN bit.
See
CTMUDS (ODCON3<0>) is cleared, the pulse delay is
determined by the output of Comparator 2, and when it
is set, the pulse delay is determined by the input of
CTDIN. C
output pulse width on CTPLS. The pulse width is calcu-
lated by T = (C
current source measurement step (
“Current Source Calibration”
Reference Voltage (CV
FIGURE 27-4:
 2009-2011 Microchip Technology Inc.
Figure 27-4
Creating a Delay with the CTMU
Module
DELAY
DELAY
is chosen by the user to determine the
for an example circuit. When
/I) * V , where I is known from the
TYPICAL CONNECTIONS AND INTERNAL CONFIGURATION FOR PULSE
DELAY GENERATION
REF
).
C
CTED1
CTMUI
DELAY
) and V is the Internal
Section 27.4.1
External Reference
EDG1
CV
External Comparator
Current Source
PIC18F87K22
REF
Comparator
CTMU
C2
PIC18F87K22 FAMILY
An example use of the external capacitor feature is
interfacing with variable capacitive-based sensors,
such as a humidity sensor. As the humidity varies, the
pulse-width output on CTPLS will vary. An example use
of the CTDIN feature is interfacing with a digital sensor.
The CTPLS output pin can be connected to an input
capture pin and the varying pulse width measured to
determine the sensor’s output in the application.
To use this feature:
1.
2.
3.
4.
When CTMUDS is cleared, as soon as C
to the value of the voltage reference trip point, an out-
put pulse is generated on CTPLS. When CTMUDS is
set, as soon as CTDIN is set, an output pulse is
generated on CTPLS.
C1
If CTMUDS is cleared, initialize Comparator 2.
If CTMUDS is cleared, initialize the comparator
voltage reference.
Initialize the CTMU and enable time delay
generation by setting the TGEN bit.
Set EDG1STAT.
CTDIN
CTPLS
CTMUDS
DS39960D-page 399
DELAY
charges

Related parts for PIC18F65K22-E/MR