EasyManuals Logo
Home>ST>Microcontrollers>STM32G431

ST STM32G431 User Manual

ST STM32G431
2126 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1163 background imageLoading...
Page #1163 background image
RM0440 Rev 4 1163/2126
RM0440 Advanced-control timers (TIM1/TIM8/TIM20)
1226
In down-counting mode, the detection is conditioned by a preliminary transition from 1 to 0.
This is to cope with narrow index pulses in gated A and B mode, as shown on Figure 350
below, to avoid any false error detection in case the encoder dithers between TIMx_ARR
and 0 immediately after the index detection.
Figure 350. Down-counting encode error detection
An index error sets the IERRF interrupt flag in the TIMx_SR status register. An index error
interrupt will be generated if the IERRIE bit is set in the TIMx_DIER register.
Functional encoder Interrupts
The following interrupts are also available in encoder mode
Direction change: any change of the counting direction in encoder mode will cause the
DIR bit in the TIMx_CR1 register to toggle. The direction change sets the DIRF
interrupt flag in the TIMx_SR status register. A direction change interrupt will be
generated if the DIRIE bit is set in the TIMx_DIER register.
Index event: the Index event sets the IDXF interrupt flag in the TIMx_SR status register.
An Index interrupt will be generated if the IDXIE bit is set in the TIMx_DIER register.
MSv62358V1
tim_ti1
tim_ti2
IERRF
Index
tim_ti1
tim_ti2
IERRF
Counter 2 1 0 7 0
5
Counter 2 1 0 7 6
4
5
Error detected Error asserted
No error: transition from 0 to
TIMx_ARR following an index
No error: transition from 0 to
TIMx_ARR without index, but not
following a transition from 1 to 0
7 6
Index

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32G431 and is the answer not in the manual?

ST STM32G431 Specifications

General IconGeneral
BrandST
ModelSTM32G431
CategoryMicrocontrollers
LanguageEnglish

Related product manuals