High-resolution timer (HRTIM)
Capture 1
Counter
Compare 2
Compare 1
Compare 3
The auto-delayed compare is only valid from the capture up to the period event: once the
counter has reached the period value, the system is re-armed with compare disabled until a
capture occurs.
DELCMP2[1:0] and DELCMP4[1:0] bits in HRTIM_TIMxCR register allow to configure the
auto-delayed mode as follows:
•
00
Regular compare mode: HRTIM_CMP2xR and HRTIM_CMP4xR register contents are
directly compared with the counter value.
•
01
Auto-delayed mode: compare 2 and compare 4 values are recomputed and used for
comparison with the counter after a capture 1/2 event.
•
10 or 11
Auto-delayed mode with timeout: compare 2 and compare 4 values are recomputed
and used for comparison with the counter after a capture 1/2 event or after a compare 1
824/2083
Figure 189. Auto-delayed overview (compare 2 only)
DELCMP2[1..0]
00
!00
Autodelayed
Compare 2
RM0440 Rev 1
Add
DELCMP2[1..0]
10
11
RM0440
Trigger: CPT1,
CMP1 or CMP3
MS32266V1
Need help?
Do you have a question about the STM32G4 Series and is the answer not in the manual?