CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Do I understanding the ADC behavior wrong? ACQT too big

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
E_Blue



Joined: 13 Apr 2011
Posts: 417

View user's profile Send private message

Do I understanding the ADC behavior wrong? ACQT too big
PostPosted: Thu Nov 26, 2015 8:38 am     Reply with quote

In the table 21-1 of datasheet 39775c (PIC18F87J50) at page 307 recommends a TAD of Fosc/64 and TACQ of TAD*16 for 48MHz operation.

So if I'm correct that means a TACQ of 21.333µS

TosC = 1/48MHz= 0.02083µS
TAD = TosC * 64= 1.333µS
TACQ = TAD * 16 = 21.333µS

But according to the equation 21-3 at page 306 of the same datasheet the minimum TACQ is 2.45µS, so, as far I can understand that means that I can set a TACQ multiplier of 2*TAD.

Is my reasoning correct?

If the TACQ is too big I get less conversions per time unit but there's no other negative consequences, Right?
_________________
Electric Blue
Ttelmah



Joined: 11 Mar 2010
Posts: 19546

View user's profile Send private message

PostPosted: Thu Nov 26, 2015 9:37 am     Reply with quote

I don't see anywhere where it suggests TAD*16 for Tacq?.
E_Blue



Joined: 13 Apr 2011
Posts: 417

View user's profile Send private message

PostPosted: Thu Nov 26, 2015 11:09 am     Reply with quote

You are right, my mistake I saw the ADCs2:0 column as ACQT2:0
_________________
Electric Blue
Ttelmah



Joined: 11 Mar 2010
Posts: 19546

View user's profile Send private message

PostPosted: Thu Nov 26, 2015 3:29 pm     Reply with quote

I had a faint suspicion when I looked at the table.

Anyway, at least you have your answer!. Smile
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group