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 support@ccsinfo.com

Analysis of the ADC converter of the 18F458
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
vever001



Joined: 15 May 2010
Posts: 21

View user's profile Send private message

PostPosted: Tue Dec 14, 2010 4:38 pm     Reply with quote

Thanks a lot for your answers it really helps me Wink

So I suppose I shouldn't use the adc_done interruption since it isn't as precise/accurate as a simple delay.

I have one more question:
Do I need to do something except changing the instruction #device adc=10 to #device adc=8 if I want to use the A/D module as a 8 bit converter ?

Thanks for your help
vever001



Joined: 15 May 2010
Posts: 21

View user's profile Send private message

PostPosted: Tue Dec 14, 2010 7:54 pm     Reply with quote

Are you sure it needs 30 + instructions to quit the instruction handler ?
Because I see the retfie instruction who seems to quit the instruction (handler ?).

Ttelmah wrote:

Tacq, _can_ be programmed into the chips on the latter PICs.


What do you mean by programming the Tacq ?
It is just a delay...I don't really understand and what's the advantage...
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Dec 14, 2010 8:11 pm     Reply with quote

Quote:
Are you sure it needs 30 + instructions to quit the instruction handler ?

See this thread which explains the CCS interrupt handler code:
http://www.ccsinfo.com/forum/viewtopic.php?t=29173

You can see the code for yourself by looking at the the .LST file.
Look at address 0004 for 16F PICs, or at address 0008 for 18F PICs.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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