Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PIC18F23K22-E/ML Datasheet(PDF) 327 Page - Microchip Technology

Part # PIC18F23K22-E/ML
Description  28/40/44-Pin, Low-Power, High-Performance Microcontrollers with nanoWatt XLP Technology
PDF  496 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F23K22-E/ML Datasheet(HTML) 327 Page - Microchip Technology

Back Button PIC18F23K22-E/ML Datasheet HTML 323Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 324Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 325Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 326Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 327Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 328Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 329Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 330Page - Microchip Technology PIC18F23K22-E/ML Datasheet HTML 331Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 327 / 496 page
background image
 2010 Microchip Technology Inc.
Preliminary
DS41412C-page 327
PIC18(L)F2X/4XK22
19.5
Measuring Time with the CTMU
Module
Time can be precisely measured after the ratio (C/I) is
measured from the current and capacitance calibration
step by following these steps:
1.
Initialize the A/D Converter and the CTMU.
2.
Set EDG1STAT.
3.
Set EDG2STAT.
4.
Perform an A/D conversion.
5.
Calculate the time between edges as T = (C/I) * V,
where I is calculated in the current calibration step
(Section 19.3.1 “Current Source Calibration”),
C is calculated in the capacitance calibration step
(Section 19.3.2 “Capacitance Calibration”) and
V is measured by performing the A/D conversion.
It is assumed that the time measured is small enough
that the capacitance, COFFSET, provides a valid voltage
to the A/D Converter. For the smallest time measure-
ment, always set the A/D Channel Select register
(AD1CHS) to an unused A/D channel; the correspond-
ing pin for which is not connected to any circuit board
trace. This minimizes added stray capacitance, keep-
ing the total circuit capacitance close to that of the A/D
Converter itself (4-5 pF). To measure longer time
intervals, an external capacitor may be connected to an
A/D channel and this channel selected when making a
time measurement.
FIGURE 19-3:
TYPICAL CONNECTIONS AND INTERNAL CONFIGURATION FOR TIME
MEASUREMENT
A/D Converter
CTMU
CTED1
CTED2
ANX
Output Pulse
EDG1
EDG2
CAD
RPR
Current Source
PIC18(L)FXXK22 Device



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com