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

ADC on PIC16F91xx

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



Joined: 27 Apr 2005
Posts: 3
Location: Italy

View user's profile Send private message Visit poster's website

ADC on PIC16F91xx
PostPosted: Thu May 05, 2005 3:21 am     Reply with quote

I got some problem using AD converter on PIC16F913. Crying or Very sad

It works unlike the other pic devices.
I set the ANSEL reg, the ADCON0/1, but it doesn't work correctly. Evil or Very Mad

Somebody use AD on this device's family Question

Daniele
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu May 05, 2005 12:52 pm     Reply with quote

Quote:
I got some problem using AD converter on PIC16F913.
It works unlike the other pic devices.

What is your version of the CCS compiler ?
The version number is at the top of the .LST file, which is generated
when you compile a program. The version will be a number such as:
3.191, 3.223, 3.224, etc.

Quote:
I set the ANSEL reg, the ADCON0/1, but it doesn't work correctly.

This sounds like you are setting the A/D registers directly.
You're not using CCS functions, such as:

setup_adc_ports()
setup_adc()
set_adc_channel()
read_adc()

If you want to skip the CCS functions and write your own code,
then you need to carefully study the data sheet.
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