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

DAC(Digital to analog converter)

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



Joined: 25 Nov 2007
Posts: 48

View user's profile Send private message

DAC(Digital to analog converter)
PostPosted: Mon Nov 26, 2007 3:10 pm     Reply with quote

Hello all;
I am searching for the resource about DAC(Digital to analog converter)
If you have, would you please give me the link ?

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Nov 26, 2007 3:51 pm     Reply with quote

Yes, look at the list of CCS drivers. Find a DAC that is in the list.
Then you will already have a working driver for the DAC chip. You don't
need to write a driver. For example, look at the MCP4921.
http://www.ccsinfo.com/content.php?page=devicedatasheets
You can also download the data sheet for the DAC chip from this page.
Guest








PostPosted: Tue Nov 27, 2007 4:19 am     Reply with quote

Hımm,
thanks for this but I am searching for something tutorial which explains the main points about this on circuits.
For example, there exists a output buffer and network circuits in the DAC.
So, what is the relationship between them ?
I am searching for a source which answer such question.

Thanks
Ttelmah
Guest







PostPosted: Tue Nov 27, 2007 5:34 am     Reply with quote

There is not an 'output buffer', in a lot of ADC's. The answer for this, is always to look at the device data sheet.
As with ADC's, there are a lot of different types, depending on applications. Basically, the simplest, is a linear resistor network, with MOSFET switches, connecting to the nodes between the resistors. The mosfets allow the selectable 'tap', to be software positioned to the required location. Downside is that it means a lot of resistors, and a lot of switching FETs. Plus side is that accuracy is only dependant on the accuracy to which the resistors can be made, and with such a design it is always guaranteed that a higher selection, will give a higher output Second (commoner) type, uses a R-2R network. Have a look at avr-asm-tutorial .net, who have a tutorial about this network, and building a simple DAC with it. As the number of bits grows, this puts increasingly costly accuracy requirements on the resistors involved.
You will also find types that use other 'tricks', to give higher ranges (PWM for example, or linear networks, then feeding R-2R networks), and modifications to the selected values, to give non linear responses for audio applications.
Since the systems all involve some form of resistor network, or capacitor charge/discharge (for the PWM designs), a buffer is then needed to prevent the result changing with load. In many cases this is integrated, but in some it is not.
In some ways the best way to understand a DAC, is to build a simple one, and play with it. It is basic very low level electronics.

Best Wishes
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Tue Nov 27, 2007 8:47 am     Reply with quote

Google "R2R networks" to see how the simplest type of DAC works. Then build one with a PIC and a few resistors. Then add a comparator and some PIC code to build a ADC.
_________________
The search for better is endless. Instead simply find very good and get the job done.
Guest








PostPosted: Tue Nov 27, 2007 5:10 pm     Reply with quote

Sorry, I implied the DAC, not ADC. Again sorry for this conflict.
adrian



Joined: 08 Sep 2003
Posts: 92
Location: Glasgow, UK

View user's profile Send private message

PostPosted: Wed Nov 28, 2007 6:27 am     Reply with quote

If you want to start with the basics try here:
http://www.analog.com/library/analogDialogue/archives/39-06/Chapter%203%20Data%20Converter%20Architectures%20F.pdf
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