Posted on May 17, 2011 at 13:32I already started with ADC of STM32 How can I calculate the Sample Time (@72 MHz). How long is one cycle (1/72Mhz?)? How do I chose the adequate samling time. I have to several different signals. Some motor currents (d...
Posted on May 17, 2011 at 13:12Quote:The device driver library you are using might might already have a function called __get_PRIMASK(void).Thank you - this was exactly what I was looking for. I searched for a flag like IEN or GIEN but did not expec...
Posted on May 17, 2011 at 13:12I found the macros __enable_irq() and __disable_irq() to set/clear the I-flag in PSR. How can I read the I-flag from C-language to do something like the following? Code:{ int IFlagTemp; IFlagTemp = __read_irq(); //th...