EmbeddedRelated.com
Forums

ADC on RCM6710

Started by "S S...@gmail.com [rabbit-semi]" June 10, 2016
I'm add ADC type ADS7870 on RCM6710. I'm use pin :
PB0 for SCLK, PE0 for Busy, PD4 for SDI, PD5 for SDO and PE3 for CS.
I'm already modify ADCCS-LOW and ADCCS_HIGH on ADC_ADS7870.LIB to PE3,
other pin already same. On RCM67xx.LIB, port already setting for
output and input.
Running sample program AD_CAL_CHAN.C with random voltage but result all 0.

I'm test sample program and ADC library use RCM4200 and running well.

Maybe have special setting in RCM6710 ?

Thanks.
Stev

Posted by: S Sutikno



Stev,

It's likely you need to do more set up in order to use the ADS7870 with an RCM6710, especially if you aren't connecting it to the Rabbit module exactly the same way as the RCM4200.

For troubleshooting, you could try connecting a logic probe to your I/O lines to confirm the SPI clock and data are going out, that chip select is enabled properly, and that the device is responding with data. Focus on what isn't working (in that order) and you'll probably find where you need to make changes in your I/O configuration.

-Tom
On Jun 9, 2016, at 10:15 PM, S Sutikno s...@gmail.com [rabbit-semi] wrote:

> I'm add ADC type ADS7870 on RCM6710. I'm use pin :
> PB0 for SCLK, PE0 for Busy, PD4 for SDI, PD5 for SDO and PE3 for CS.
> I'm already modify ADCCS-LOW and ADCCS_HIGH on ADC_ADS7870.LIB to PE3,
> other pin already same. On RCM67xx.LIB, port already setting for
> output and input.
> Running sample program AD_CAL_CHAN.C with random voltage but result all 0.
>
> I'm test sample program and ADC library use RCM4200 and running well.
>
> Maybe have special setting in RCM6710 ?
>
> Thanks.
> Stev
Thanks Tom, already solved.
Stev

On Tue, Jun 21, 2016 at 6:30 AM, Tom Collins t...@tomlogic.com [rabbit-semi]
wrote:

> Stev,
>
> It's likely you need to do more set up in order to use the ADS7870 with an
> RCM6710, especially if you aren't connecting it to the Rabbit module
> exactly the same way as the RCM4200.
>
> For troubleshooting, you could try connecting a logic probe to your I/O
> lines to confirm the SPI clock and data are going out, that chip select is
> enabled properly, and that the device is responding with data. Focus on
> what isn't working (in that order) and you'll probably find where you need
> to make changes in your I/O configuration.
>
> -Tom
> On Jun 9, 2016, at 10:15 PM, S Sutikno s...@gmail.com [rabbit-semi]
> wrote:
>
> I'm add ADC type ADS7870 on RCM6710. I'm use pin :
> PB0 for SCLK, PE0 for Busy, PD4 for SDI, PD5 for SDO and PE3 for CS.
> I'm already modify ADCCS-LOW and ADCCS_HIGH on ADC_ADS7870.LIB to PE3,
> other pin already same. On RCM67xx.LIB, port already setting for
> output and input.
> Running sample program AD_CAL_CHAN.C with random voltage but result all 0.
>
> I'm test sample program and ADC library use RCM4200 and running well.
>
> Maybe have special setting in RCM6710 ?
>
> Thanks.
> Stev