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

A/D conversion help

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



Joined: 28 Oct 2006
Posts: 4
Location: india

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

A/D conversion help
PostPosted: Sat Oct 28, 2006 4:16 am     Reply with quote

Hi,

m using pic184550 uc, and cs4334ks d/a converter.

using the function
value = read_adc(ADC_START_AND_READ);

i send value to portB directly , on oscilloscope the output is showing but ambiguous.
can you tell me how to send each bit serialy to a single PIN .


Thanks
jma_1



Joined: 08 Feb 2005
Posts: 147
Location: Wisconsin

View user's profile Send private message

PostPosted: Sat Oct 28, 2006 8:55 pm     Reply with quote

Greetings,

I'm not sure I understand your question. The cs4334 ks is a two channel digital to analog (da)converter chip which receives data serially from a microprocessor. The read_dc(adc_start_and_read) sets up the analog to digital converter inside the pic microchip (read analog value at a micropressor pin). These are not related (one internal d/a measurement; one external serial write). Check out the datasheet for the cs4334 for setting up how to communicate with the chip (clock - internal or exteranl; two's complement data format, channel - L or R, etc).

Cheers,
JMA
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