2011-06-11 10:17 PM
Hi,
I'm very new to ST Microcontrollers, is there anywhere i can find a ref manual on basic programming techniques on STMs. I'm good in C but i would like to know how to how to handle I/Os on these.. i.e, how to assign a input port, and how to output something on a port... can anyone please help me ?2011-06-12 01:43 AM
1. ARM says about Cortex, CMSIS (core access library) and toolchains - No more Assembler, everything in C!
2. Download the peripheralhttp://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/FIRMWARE/stm32f10x_stdperiph_lib.zip
and take a look at the firmware . Surely you must understand the peripheral functions und features to program them properly. Read the and .2011-06-12 06:17 AM
As noted the web resources are quite extensive.
I found the first edition of Joseph Yiu's book to be quite instructive. Doing IO on the GPIO pins is fairly similar to most other platforms, perhaps some books on Embedded programming, platforms, interfacing, techniques, etc might be more helpful than stuff specifically about the STM322011-07-05 11:32 PM
SImply go through the std peripheral library example avaialble at
. you will get example of most of the peripherals. For more details go through HW CONFIG function under each example carefully all the initiallization etc is availble under this. Simply download the firmware from internet and look into the library folder. you will get the desired things over there2011-07-05 11:45 PM
''basic programming techniques on STMs''
Basic programming techniques will be the same whatever microcontroller you're using. Keil (an ARM company) give a good list of general embedded progamming books: - they are not (all) specific to the Keil tools! The things that are specific to the STM32 are to do with its hardware implementation - which is described in the User Manual. See the 'Resources' tab at for all the documentation - including Datasheets, Reference Manuals, Application Notes, etc,... Also see this recent thread on the forum: