Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] PIC 18f452 Analog to Digital sampling time

Status
Not open for further replies.

baby_1

Advanced Member level 1
Joined
Dec 3, 2010
Messages
415
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
4,277
Hello
what is the sampling time(A/D) between each sampling in PIC microcontroller such as PIC18f452?
 

Depends how you configure it and what your clock speed is.

There is acquisition time and conversion time. You you need to account for acquisition time when changing the active ADC channel. Once that time has been allowed, then you are working with conversion time.

The acquisition time depends on source and reference resistances and temperature, the formulae are on page 185 of the datasheet. For a 2.5KΩ source resistance and internal ref, it works out around 10µs for the hold capacitor to be charged and everything to be ready.

Then...

A 10-bit conversion requires 12 TAD cycles. TAD is set in software, to one of 2,4,8,16,32 or 64 x TOSC or the internal AD RC oscillator. Also, the fastest you can allow TAD to be is 1.6µs. That alone sets a minimum conversion time of 12x1.6 = 19.2µs. TAD is set according to your clock; for example 10MHz with 16xTOSC gives exactly 1.6µs for TAD.

Doing something with the samples will take more time of course.
 
Last edited:
  • Like
Reactions: baby_1

    baby_1

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top