2011-06-06 12:35 AM
Hi,
Lets say i want to connect analog signal to ADC channel12 (which is default pin is PORTC-2). Should i configure GPIOC-2 mode as: GPIO_Mode_AIN or GPIO_Mode_AF_OD/PP? I suppose GPIO_Mode_AIN, so when do i use GPIO_Mode_AF_OD/PP? Thanks - Udi #gpio-mode2011-06-06 12:51 AM
''when do i use GPIO_Mode_AF_OD/PP?''
When you have an
A
lternateF
unction that requiresO
pen-D
rain orP
ush-P
ull drive; eg, a USART or I2C...?2011-06-06 02:53 AM
http://www.st.com/stonline/faq/faqview.php?ids=1222
AFIO clock should be enabled when doing remap for peripheral pin (and not if it use its default pin), therefore i asked if the same thing goes for GPIO mode. Specifically, ADC channel pin should be used as GPIO_Mode_AIN or GPIO_Mode_AF?Thanks - Udi
2011-06-06 02:21 PM
2011-06-09 01:08 AM
Thanks Donald, It makes sense.