Hi
Im learning to program a Netduino 2 board in C++ and I'm having a hard time understanding certain parts of the STM32F2xx MCU manual:
(http://www.st.com/st.../CD00225773.pdf).
(I was unsure where to post this topic. The STMicroelectronics requires a company name, and I'm just a student. I apologize if this was posted in the wrong subforum.)
Page 146 - 151 of the Manual describes the MCU GPIO register. I'm quite new to MCU's and the manuals terminology and I don't quite understand how to read the section 6.4.1 as well as the following sections.
First of: In the table what does 'rw' mean and what does the syntax [1:0] (in lines such as MODER[1:0]) and the numbers 31 to 0 above the table represent?
Also could anyone explain the line "Bits 2y:2y+1 MODERy[1:0]: Port x configuration bits (y = 0..15)"? (first line beneath the table). The way I read it if I for instance would want to configure PA0 of the GPIO to analog mode I would write:
GPIOA_MODER0 = 0b11; // sets PA0 to analog mode
Have I misunderstood the concept completely? And if so, as a example, what would be the right syntax for setting the pin PA0 to analog?