2019-07-19 06:40 AM
Hi, I'm using STM32F103. I encountered a problem when using the system timer to generate a delay. The processor runs at 8MHz from reset, well I think, and I'm using that clock to generate a 1Ms delay. So, I've to load the SysTick LOAD register with 8000-1.
But it does't work as I expected. I assumed it would generate 1Ms but actually it generates a 0.1Ms. I literally don't know WHY. My code and the simulated output are below in the picture. Thanks in advance!
Solved! Go to Solution.
2019-07-19 09:38 AM
Sure there's not code in SystemInit() setting the PLL to 72 MHz?
2019-07-19 09:38 AM
Sure there's not code in SystemInit() setting the PLL to 72 MHz?
2019-07-22 11:42 PM
Maybe you are right. I have no idea on how to change the PLL configuration in SystemInit(). I just write some code whenever I need to configure the PLL .