2008-05-02 08:59 PM
2011-05-17 12:49 AM
Hello,
For Adc configuration, do i need to configure the ip connected enable in the gpio setting? and what is that for? Thanx! Regards, Gan Zhiheng2011-05-17 12:49 AM
This is all you need to do in GPIO for ADC
// 4.0 to 4.5 as ADC input pin GPIO_DeInit(GPIO4); GPIO_ANAPinConfig(GPIO_ANAChannel0, ENABLE); GPIO_ANAPinConfig(GPIO_ANAChannel1, ENABLE); GPIO_ANAPinConfig(GPIO_ANAChannel2, ENABLE); GPIO_ANAPinConfig(GPIO_ANAChannel3, ENABLE); GPIO_ANAPinConfig(GPIO_ANAChannel4, ENABLE); GPIO_ANAPinConfig(GPIO_ANAChannel5, ENABLE);