View previous topic :: View next topic |
Author |
Message |
razavi
Joined: 19 Jul 2010 Posts: 10
|
PIC18LF4620 DAC ? |
Posted: Wed Jul 21, 2010 11:04 pm |
|
|
Hi there, Sorry for my newbie question and bad English.
I do have a wireless-ember zigbee edition development kit.
Is it possible to use DAC on PIC18LF4620 device?
I didn't find any example and in the header file there is nothing about DAC.
Regards. |
|
![](templates/subSilver/images/spacer.gif) |
dyeatman
Joined: 06 Sep 2003 Posts: 1924 Location: Norman, OK
|
|
Posted: Wed Jul 21, 2010 11:46 pm |
|
|
Are you asking about a Digital to Analog converter (it doesn't have one) or the Dual Analog Comparators? _________________ Google and Forum Search are some of your best tools!!!! |
|
![](templates/subSilver/images/spacer.gif) |
razavi
Joined: 19 Jul 2010 Posts: 10
|
|
Posted: Thu Jul 22, 2010 12:42 am |
|
|
yeah digital analog converter that seems it doesn't have.
thanks.
dyeatman wrote: | Are you asking about a Digital to Analog converter (it doesn't have one) or the Dual Analog Comparators? |
|
|
![](templates/subSilver/images/spacer.gif) |
razavi
Joined: 19 Jul 2010 Posts: 10
|
|
Posted: Thu Jul 22, 2010 4:03 am |
|
|
Is it possible to generate voltage with ccp ? |
|
![](templates/subSilver/images/spacer.gif) |
mkuang
Joined: 14 Dec 2007 Posts: 257
|
|
Posted: Thu Jul 22, 2010 6:37 am |
|
|
No.
But you can do it with the hardware PWM module followed by a simple RC filter and if you want a low output impedance use an opamp buffer.
Search the forum for PWM and you should find plenty of sample codes. |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19360
|
|
Posted: Thu Jul 22, 2010 9:35 am |
|
|
Accuracy will obviously be limited.
There are also a number of DAC's, that can easily be driven by any PIC. Chips like the DAC081. Or the MAX517 (driver supplied with the compiler), MCP4921 (again with the compiler),
It depends on:
1) What range of voltages you need?.
2) What resolution you want?.
3) What accuracy you want (particularly at the ends of the range)?.
4) What response speed you need?.
etc. etc.. |
|
![](templates/subSilver/images/spacer.gif) |
razavi
Joined: 19 Jul 2010 Posts: 10
|
|
Posted: Thu Jul 22, 2010 6:28 pm |
|
|
thank you for your replies.
I need a one 3V reference and two 1.5 to 4.5 to to motors through an existing controller I need to remote control it via Zigbee wireless.
the doesn't need to be so accurate and response time even can be .1 S.
the resolution from minimum voltage to maximum in 100 resolution will be enough.
Regards. |
|
![](templates/subSilver/images/spacer.gif) |
|