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

DAC PROBLEM on 16f877

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



Joined: 07 Jan 2006
Posts: 64
Location: Braga

View user's profile Send private message Send e-mail MSN Messenger

DAC PROBLEM on 16f877
PostPosted: Thu Feb 02, 2006 2:19 pm     Reply with quote

Is possible to use analogs ports to output 0 ..5 v on a PIC 16F877 ?
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Thu Feb 02, 2006 2:34 pm     Reply with quote

No. The analog ports on 16F877 (and I think on the rest of the PICs to) are either analog inputs or digital I/O. However, aside from buying a separate DAC chip, you can build a cruide DAC out of a PWM output, a low-pass filter and feedback to the PIC's A/D. This technique has been discussed in this forum:

http://www.ccsinfo.com/forum/viewtopic.php?t=19899
http://centauri.ezy.net.au/~fastvid/picsound.htm
Eugeneo



Joined: 30 Aug 2005
Posts: 155
Location: Calgary, AB

View user's profile Send private message

PostPosted: Fri Feb 03, 2006 12:40 am     Reply with quote

Take a look at the Mchip TC1321
I used this quite a while ago but it worked great.

It's a 8 pin soic with a 12 bit res.
No opamp/fet required.
SPI


And you can set it up in about 1 hour

http://www.microchip.com/ParamChartSearch/chart.aspx?branchID=11028&mid=11&lang=en&pageId=79
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