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
Posted: Sat Oct 28, 2006 8:55 pm
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).
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