3512 views|1 replies

156

Posts

1

Resources
The OP
 

[Nucleo G071 Review] SYSTICK & Comparison of Two Commonly Used Low Power Modes [Copy link]

The SYSTICK timer of the microcontroller is very commonly used. The most powerful thing about this timer is that it can be used for accurate timing regardless of whether it is a bare metal program or an RTOS program. In the ARM system, without calling the TIM timer, SYSTICK is an ideal timer with simple initialization and calling. To initialize the SYSTICK timer, you need to use an int timing factor: int fac_us; Then set the clock source and division value of the SYSTICK peripheral: HAL_SYSTICK_Config(HAL_RCC_GetHCLKFreq()/1000); HAL_SYSTICK_CLKSourceConfig(SYSTICK_CLKSOURCE_HCLK); HAL_NVIC_SetPriority(SysTick_IRQn, 0, 0); fac_us=64; Write the timing function: void Delay_us(int nus) { int temp; SysTick->LOAD=nus*fac_us; SysTick->VAL=0x00; SysTick->CTRL=0x05; do 5] { temp=SysTick->CTRL; } while((temp&0x01)&&!(temp&(1<<16))); SysTick->CTRL=0x00; SysTick->VAL=0x00; [size=5 ]} void Delay_ms(int nms) { for(int i=0;i
This also needs to take into account the current of the previous stlink. It is more accurate to remove the short-circuit cap.

[Nucleo G071 Review] SYSTICK & Comparison of Two Commonly Used Low Power Modes


IMG_20190118_091720.jpg (795.39 KB, downloads: 0)

IMG_20190118_091720.jpg

IMG_20190118_091734.jpg (757.62 KB, downloads: 0)

IMG_20190118_091734.jpg

IMG_20190119_184059.jpg (810.29 KB, downloads: 0)

IMG_20190119_184059.jpg
This post is from stm32/stm8

Latest reply

This also needs to take into account the current of the previous stlink. It is more accurate to remove the short-circuit cap.  Details Published on 2019-1-21 09:16
 

2625

Posts

6

Resources
2
 
This also needs to take into account the current of the previous stlink. It is more accurate to remove the short-circuit cap.
This post is from stm32/stm8
 
Personal signature

希望做一些大家觉得好用的东西!

 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list