PDA

View Full Version : Help With BS2 and ADC0838?



Litefire
11-10-2006, 04:52 AM
Hey, i'm using the BS2 as part of a robot i'm making, and am planning on using an ADC0838. What i'm planning on doing is using all 8 channels of the chip and comparing them on the BS2.

Does anybody have any code/help for how to communicate between the uP and the ADC? That seems to be where i'm having issues, but the shifted serial interface is giving me issues :(

Thanks for any help!

~~Brian Beatty

p.s. the Data sheet for the 0838 is the same as the one for the 0831 (which can be found under the 0831's page here on parallax)

Paul Sr.
11-10-2006, 06:51 AM
Litefire said...
Hey, i'm using the BS2 as part of a robot i'm making, and am planning on using an ADC0838. What i'm planning on doing is using all 8 channels of the chip and comparing them on the BS2.

Does anybody have any code/help for how to communicate between the uP and the ADC? That seems to be where i'm having issues, but the shifted serial interface is giving me issues :(

Thanks for any help!

~~Brian Beatty

p.s. the Data sheet for the 0838 is the same as the one for the 0831 (which can be found under the 0831's page here on parallax)


Sure do - look down about 12 threads - there is some dialog and sample code for the ADC0834 which should help you.