cancel
Showing results for 
Search instead for 
Did you mean: 

Reading Problem from ADC

manoritesameer
Associate II
Posted on July 29, 2014 at 00:53

Hello, 

       I am reading from an external ADC in parallel interface(16 bits). I dont know what is wrong, only my port PE0 and PE1 are talking to the controller at 1V and rest all others taking at 3V. when I remove the connection from the ADC the ADC outputs as 3V signal, but when I connect to controller it goes back to 1V.

here is how I have configured

GPIO_InitStruct.GPIO_Mode = GPIO_Mode_IN;

GPIO_InitStruct.GPIO_Speed = GPIO_Speed_100MHz;

GPIO_InitStruct.GPIO_OType = GPIO_OType_PP;

GPIO_InitStruct.GPIO_PuPd = GPIO_PuPd_UP;

GPIO_Init(GPIOE, &GPIO_InitStruct); 

Thanks

#discovery #stm32f4 #gpio
5 REPLIES 5
Posted on July 29, 2014 at 02:31

  GPIO_InitStruct.GPIO_Pin = GPIO_Pin_All;

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
manoritesameer
Associate II
Posted on July 29, 2014 at 18:10

Thanks  clive,

      I have already done that, The problem stills stays... I replaced the ADC, even then.

Posted on July 29, 2014 at 18:27

On what board? The STM32F4-DISCO?

PE0/PE1/PE2 clash with LIS302DL

Post enough code that your test methodology can be adequately reviewed. Ideally a complete/concise example that can be compiled.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
manoritesameer
Associate II
Posted on July 29, 2014 at 18:39

oh yes, So does that mean I cannot use the PE0 n PE1 pins? Should I move it to a different port.

Posted on July 29, 2014 at 18:54

Well, it means you'll have to determine if the chip is interfering with your signals, or not, and if you want to remove the chip, or relocate your GPIO. As all the other GPIO Bank E pins are available in a linear fashion, I'd be tempted to remove the chip. But these are design/implementation decisions you need to make.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..