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

need a cost efficient 8 bit DAC

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



Joined: 29 Aug 2004
Posts: 12

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

need a cost efficient 8 bit DAC
PostPosted: Wed May 18, 2005 9:24 am     Reply with quote

could some one guide me for selecting a cost efficient 8 bit DAC
that needed single power supply.
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: Wed May 18, 2005 10:25 am     Reply with quote

My favorite is MAX517/MAX518. Single/dual channel, I2C interface.

If you want something really cost efficient, you could run PWM output into an RC filter. It will make a poor man's DAC. However, this approach is a lot less precise.
DragonPIC



Joined: 11 Nov 2003
Posts: 118

View user's profile Send private message

PostPosted: Wed May 18, 2005 12:25 pm     Reply with quote

kender wrote:

If you want something really cost efficient, you could run PWM output into an RC filter. It will make a poor man's DAC. However, this approach is a lot less precise.


and monitor it with an ADC channel.
_________________
-Matt
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 May 19, 2005 3:09 am     Reply with quote

Quote:
and monitor it with an ADC channel.


DragonPIC,

Could you post the code, which runs this closed loop?

Thanks,
Nick
DragonPIC



Joined: 11 Nov 2003
Posts: 118

View user's profile Send private message

PostPosted: Thu May 19, 2005 12:40 pm     Reply with quote

I guess I could scronge up the code I created for out HV PS. This was done on a small 12F675 and isn't the way I would do it on a larger PIC (with a PWM), so it wouldn't make such a good example. It pulses a switching circuit and the resulting voltage is read back from a voltage divider. The ripple is kept to a minimum by a cap. and the fact that I can vary how often I pulse it by reading the result back with the ADC.

Also, not my design so I wouldn't feel right posting the code.
_________________
-Matt
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