Skip to main content
lazycat1049
Associate III
May 3, 2008
Question

AdC help

  • May 3, 2008
  • 2 replies
  • 682 views
Posted on May 03, 2008 at 05:59

AdC help

This topic has been closed for replies.

2 replies

lazycat1049
Associate III
May 17, 2011
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 III
May 17, 2011
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);