Search found 2 matches
- Wed May 24, 2023 1:47 am
- Forum: General discussion
- Topic: Prescaler Input Capture
- Replies: 2
- Views: 2273
- Tue May 23, 2023 2:26 am
- Forum: General discussion
- Topic: Prescaler Input Capture
- Replies: 2
- Views: 2273
Prescaler Input Capture
Hi!
I use example HardwareTimerPWMInput from A_STM32_Examples :
Timer2.pause();
Timer2.setPrescaleFactor(72);
Timer2.setInputCaptureMode(TIMER_CH1, TIMER_IC_INPUT_DEFAULT);
Timer2.setInputCaptureMode(TIMER_CH2, TIMER_IC_INPUT_SWITCH);
Timer2.setPolarity(TIMER_CH2, 1);
Timer2.setSlaveFlags ...
I use example HardwareTimerPWMInput from A_STM32_Examples :
Timer2.pause();
Timer2.setPrescaleFactor(72);
Timer2.setInputCaptureMode(TIMER_CH1, TIMER_IC_INPUT_DEFAULT);
Timer2.setInputCaptureMode(TIMER_CH2, TIMER_IC_INPUT_SWITCH);
Timer2.setPolarity(TIMER_CH2, 1);
Timer2.setSlaveFlags ...