Page 2 of 2

Re: Beginner questions

Posted: Wed Jun 13, 2012 3:07 am
by aimatt
Tectu wrote:Feel free to post the servo code under the forum "Code Samples" would like to see it :)



~ Tectu



Here you go: viewtopic.php?f=4&t=474

Re: Beginner questions

Posted: Wed Jun 13, 2012 3:24 am
by aimatt
Giovanni wrote:Hi,

It is portable across similar STM32 devices, F2 and F4 are practically the same, L1/F0 are similar but mapping can change, F1 are different.

That "2" is the number of the alternate function for that pin, there is a table in the datasheet with all possible mappings: "Table 6. Alternate function mapping".

Giovanni


Giovanni, it's nice to hear it will be pretty portable. I am looking at the datasheet: http://www.st.com/internet/com/TECHNICA ... 039084.pdf but I only see Table 5 (not table 6) and for example, USART2_TX is on PA2, but listed as the first alternate function, rather than the 7th. Is it based on a particular version of the datasheet?

Re: Beginner questions

Posted: Wed Jun 13, 2012 7:09 am
by Giovanni
That document is the user manual for the Discovery board, you have to look into the STM32F407 datasheet.

Giovanni

Re: Beginner questions

Posted: Thu Jun 14, 2012 4:39 pm
by aimatt
Aha! That explains it. Thank you!!!!