From 32177827a18d36d9cb744256e23f92c3a8600900 Mon Sep 17 00:00:00 2001 From: Arti Zirk Date: Sun, 22 Aug 2021 22:39:34 +0300 Subject: [PATCH] Change 7 segment refresrate to 2ms --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index c8db0c4..538a4db 100644 --- a/main.c +++ b/main.c @@ -140,7 +140,7 @@ static void tim_setup(void) timer_set_mode(TIM2, TIM_CR1_CKD_CK_INT, TIM_CR1_CMS_EDGE, TIM_CR1_DIR_UP); timer_set_prescaler(TIM2, (rcc_apb1_frequency*2) / 1000000 - 1); // set timer tickrate to 1mhz - timer_set_period(TIM2, 3000); // 1 ms + timer_set_period(TIM2, 2000); // 2ms timer_enable_irq(TIM2, TIM_DIER_UIE); // start displaying 7 segment numbers