cancel
Showing results for 
Search instead for 
Did you mean: 

AdC help

lazycat1049
Associate II
Posted on May 03, 2008 at 05:59

AdC help

2 REPLIES 2
lazycat1049
Associate II
Posted on May 17, 2011 at 09:49

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 Zhiheng

satnam
Associate II
Posted on May 17, 2011 at 09:49

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);