2014-07-28 03:53 PM
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 configuredGPIO_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 #gpio2014-07-28 05:31 PM
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_All;
2014-07-29 09:10 AM
Thanks clive,
I have already done that, The problem stills stays... I replaced the ADC, even then.2014-07-29 09:27 AM
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.2014-07-29 09:39 AM
oh yes, So does that mean I cannot use the PE0 n PE1 pins? Should I move it to a different port.
2014-07-29 09:54 AM
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.