File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
examples/NonReg/HardwareTimer/HardwareTimer_OutputInput_test Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 88 Designed to work on Nucleo_L476RG
99 TIM1 ch1N and ch2 are used for output generation (TIM1_CH1N_PIN, and TIM1_CH2_PIN).
1010 It is important that both channel are on the same timer, in order to check influence on channel dependant API.
11- Management of interruption is done with variable incrementation .
12- TIM8 ch1/ch2 are used to measure frequence and duty cycle of TIM1_CH1N output generated signal
13- TIM8 ch3/ch4 are used to measure frequence and duty cycle of TIM1_CH2 output generated signal
11+ Management of interruption is done with variable increment .
12+ TIM8 ch1/ch2 are used to measure frequency and duty cycle of TIM1_CH1N output generated signal
13+ TIM8 ch3/ch4 are used to measure frequency and duty cycle of TIM1_CH2 output generated signal
1414
1515 Regular channel and complementary channel (TIM1_CH1N) are tested.
1616
6161#define OUTPUT_DUTY1 20 // percentage
6262#define OUTPUT_DUTY2 30 // percentage
6363
64- #define TEMPO_BEFORE_MEASUREMENT 500 // milisecondes
64+ #define TEMPO_BEFORE_MEASUREMENT 500 // millisecondes
6565#define TOLERANCE 10 // Percentage
6666#define EXPECTED_INTERRUPT_COUNT ((TEMPO_BEFORE_MEASUREMENT * OUTPUT_FREQUENCY) / 1000 )
6767
@@ -594,4 +594,4 @@ void loop()
594594 while (1 )
595595 {
596596 };
597- }
597+ }
You can’t perform that action at this time.
0 commit comments