Reading Problem from ADC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-07-28 3: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 #gpio- Labels:
-
GPIO-EXTI
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-07-28 5:31 PM
GPIO_InitStruct.GPIO_Pin = GPIO_Pin_All;
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-07-29 9:10 AM
Thanks clive,
I have already done that, The problem stills stays... I replaced the ADC, even then.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-07-29 9: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.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-07-29 9:39 AM
oh yes, So does that mean I cannot use the PE0 n PE1 pins? Should I move it to a different port.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-07-29 9: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.
Up vote any posts that you find helpful, it shows what's working..
