Search found 2 matches

by George
Wed May 24, 2023 1:47 am
Forum: General discussion
Topic: Prescaler Input Capture
Replies: 2
Views: 2273

Re: Prescaler Input Capture

dannyf wrote: Wed May 24, 2023 12:52 am Maybe read the datasheet / reference manual?
Image


Image
by George
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 ...

Go to advanced search