Hi,I am using stm32f0. I try to microsecond delay function. But, I observe that TIMx->CNT not increasing.I probably mistake on configutration function. But I could not solved. In 29 line, UF flag not to be setHere is my code; void ledconfig(){
GP...
Here is my code, but its not working correctly
void DelayMicros(uint32_t micros) {
uint32_t multiplier;
multiplier = SystemCoreClock / 4000000;
micros = micros * multiplier - 10;
/* 4 cycles for one loop */
while (micros--)...
I am using STM32F030C8T6TR. An external 8 mhz oscillator was connected to the OSC_32_IN-OUT input by mistake, not to the OSC_IN-OUT pins on the board I have. Hardware cannot be changed. Can I reconfigure the pin with software or How can I use it? I a...
I have a lot of different flags in project, I wonder which style definition reads faster by processor .Definition 1
typedef struct{
__IO uint8_t flag1 ;
. //other flags
}Flag_t ;
Definition 2
typedef struct{
...
I want to change system clock as a PLL(using HSE) 20 Minute after systemInit. thats why I must change it in main function not system_stm32f0.c file. Here is my code, Not working properly. I dint do anything interrupt function.void ClockInit(void){ ...
The goal is obtain 1 second with 10 MHz high accuracy crystal oscilator. Without any time shifting acording to starting point(When the timer starts).Thanks
I try to count 1second 10 MHz high accuracy crystal oscilator with stm32f030cst6.Timer starts GPS based clock falling edge(starting paint of my system, Line 65). However, the system is constantly shifting from the starting point Thats my calculation...