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

need help on MCP4921 DAC

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



Joined: 06 Apr 2008
Posts: 19
Location: SINGAPORE

View user's profile Send private message

need help on MCP4921 DAC
PostPosted: Mon Jan 18, 2010 10:40 pm     Reply with quote

Hi,

I want to use MCP4921 a 10bit DAC. I want to connect it to PIC16F877A.

But I have confuse on PIN CS on MCP4921.. Is it have to connect to pin RC0 or RC1 or RC2 or RE1?

Someone who had use MCP4921 please help me?

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jan 18, 2010 11:08 pm     Reply with quote

CCS has a driver. Are you using it ?
Quote:
c:\program files\picc\drivers\mcp4921.c


The mcp4921.c driver file lists some default pins for the DAC signals.
You can change these pins to other pins if you want to.
Code:

#define DAC_CS     PIN_B0
#define DAC_CLK    PIN_B1
#define DAC_DI     PIN_B2
#define DAC_LDAC   PIN_B4
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