What is the "primary channel"?
Posted: Fri Nov 23, 2018 3:47 am
Hi,
I'd like to use the 32-bit capture unit to log the timestamp of the event.
It seems that only TIM2 and TIM5 support 32-bit counter.
The docs say:
But most channels of Timer(2) are allocated to port A where I need for other purpose.
So only Timer(2) channel 3 (pin Y9) and channel 4 (pin Y10) could be used.
However, I read following statement in docs:
Can I rely on the capture functionality brought by Timer(2) channel 3 (pin Y9) and channel 4 (pin Y10)?
Thanks for any comments.
I'd like to use the 32-bit capture unit to log the timestamp of the event.
It seems that only TIM2 and TIM5 support 32-bit counter.
The docs say:
Because I don't care the LED intensity, Timer(2) looks promising to my application.Timer(2) and Timer(3) are used for PWM to set the intensity of LED(3) and LED(4) respectively. But these timers are only configured for PWM if the intensity of the relevant LED is set to a value between 1 and 254. If the intensity feature of the LEDs is not used then these timers are free for general purpose use. Similarly, Timer(5) controls the servo driver, and Timer(6) is used for timed ADC/DAC reading/writing. It is recommended to use the other timers in your programs.
But most channels of Timer(2) are allocated to port A where I need for other purpose.
So only Timer(2) channel 3 (pin Y9) and channel 4 (pin Y10) could be used.
However, I read following statement in docs:
My question is what is the "primary channel"? (got no clue from the chip's manual)Note that capture only works on the primary channel, and not on the complimentary channels.
Can I rely on the capture functionality brought by Timer(2) channel 3 (pin Y9) and channel 4 (pin Y10)?
Thanks for any comments.