Posted on May 17, 2011 at 13:36tkjmail, C is supposed to be C. I assume that any ARM C compiler follows ARM rules on scratch registers and parameter passing. I have a (some would say regrettable) tendency to code low-level peripheral registers in as...
Posted on May 17, 2011 at 13:36See section 4.2 (Bit-banding) in http://infocenter.arm.com/help/topic/com.arm.doc.ddi0337g/DDI0337G_cortex_m3_r2p0_trm.pdf. Save it on your computer for easy access. All bits in the 20000000-200FFFFF range have bit ban...
Posted on May 17, 2011 at 13:35Forget the fraction part. Here’s how: all STM32 USART sections use a 16x the baud rate clock. Therefore load the 16-bit clock divisor with x/(16*baudRate) where x = the input frequency. In many cases the input frequenc...
Posted on May 17, 2011 at 13:35Find “Search Keyword�? box on st.com main page. Type RM0008. Press enter. Right click on first found item and “save link target as...�?. QED - Latin for Quite Easily Done.