aboutsummaryrefslogtreecommitdiff
path: root/driver_fw
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2019-01-13 15:34:01 +0900
committerjaseg <git@jaseg.net>2019-01-13 15:34:01 +0900
commit0f206f09bfdc2f86a9d1715d42bbf2a69973e766 (patch)
tree39b14b5fd4c367b26c95e947d296ddb47e726f0c /driver_fw
parent7b5ca8102b10009b305a5b5c3e1978cb351858c5 (diff)
download8seg-0f206f09bfdc2f86a9d1715d42bbf2a69973e766.tar.gz
8seg-0f206f09bfdc2f86a9d1715d42bbf2a69973e766.tar.bz2
8seg-0f206f09bfdc2f86a9d1715d42bbf2a69973e766.zip
TIM3 working stably now
Diffstat (limited to 'driver_fw')
-rw-r--r--driver_fw/main.c2
1 files changed, 1 insertions, 1 deletions
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))<<TIM_BDTR_DTG_Pos; /* Enable MOE on next update event, i.e. on initial timer load.
Set dead-time to 100us. */
TIM1->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;