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

PIC18LF4620 DAC ?

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



Joined: 19 Jul 2010
Posts: 10

View user's profile Send private message

PIC18LF4620 DAC ?
PostPosted: Wed Jul 21, 2010 11:04 pm     Reply with quote

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.
dyeatman



Joined: 06 Sep 2003
Posts: 1933
Location: Norman, OK

View user's profile Send private message

PostPosted: Wed Jul 21, 2010 11:46 pm     Reply with quote

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!!!!
razavi



Joined: 19 Jul 2010
Posts: 10

View user's profile Send private message

PostPosted: Thu Jul 22, 2010 12:42 am     Reply with quote

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?
razavi



Joined: 19 Jul 2010
Posts: 10

View user's profile Send private message

PostPosted: Thu Jul 22, 2010 4:03 am     Reply with quote

Is it possible to generate voltage with ccp ?
mkuang



Joined: 14 Dec 2007
Posts: 257

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

PostPosted: Thu Jul 22, 2010 6:37 am     Reply with quote

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.
Ttelmah



Joined: 11 Mar 2010
Posts: 19506

View user's profile Send private message

PostPosted: Thu Jul 22, 2010 9:35 am     Reply with quote

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..
razavi



Joined: 19 Jul 2010
Posts: 10

View user's profile Send private message

PostPosted: Thu Jul 22, 2010 6:28 pm     Reply with quote

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.
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