From 0f206f09bfdc2f86a9d1715d42bbf2a69973e766 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 13 Jan 2019 15:34:01 +0900 Subject: TIM3 working stably now --- driver_fw/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver_fw') diff --git a/driver_fw/main.c b/driver_fw/main.c index 324ca11..730065c 100644 --- a/driver_fw/main.c +++ b/driver_fw/main.c @@ -70,7 +70,7 @@ int main(void) { TIM1->BDTR = TIM_BDTR_MOE | (0xc0 | (63-32))<CR1 |= TIM_CR1_CEN; - TIM1->ARR = 1000-1; /* Set f=1.0kHz/T=1.0ms */ + TIM1->ARR = 400-1; /* Set f=2.5kHz/T=0.4ms */ xfr_8b10b_encode_reset(&txstate.st); txstate.current_symbol = txstate.next_symbol = xfr_8b10b_encode(&txstate.st, K28_1) | 1<<10; -- cgit