質問編集履歴
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
TIM2->PSC = 9999;//PreSCalerに10000を設定(0~9999=10000クロックで1カウント)
|
42
42
|
|
43
|
-
TIM2->CCR1 = 799;//
|
43
|
+
TIM2->CCR1 = 799;//Capture/CounterRegister1に799を設定(0~799=800カウント)ARRの50%
|
44
44
|
|
45
45
|
|
46
46
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
TIM2->PSC = 9999;//PreSCalerに10000を設定(0~9999=10000クロックで1カウント)
|
42
42
|
|
43
|
-
TIM2->CCR1 =
|
43
|
+
TIM2->CCR1 = 799;//timerのCapture/ConpareRegister1を0に初期化
|
44
44
|
|
45
45
|
|
46
46
|
|