2017-04-25 05:11 AM
DS STM32F405xx STM32F407xx, DocID022152 Rev 8, Table 50. I/O AC characteristics :
tEXTIpw Pulse width of external signals detected by the EXTI controller - min.10ns
This hints that there's a pair of edge-sensitive latches for each EXTI input, independent from any internal clock.
RM0090, DocID018909 Rev 13, 12.2.1 EXTI main features says otherwise:
The main features of the EXTI controller are the following:
[...]
detection of external signals with a pulse width lower than the APB2 clock period. Refer
to the electrical characteristics section of the STM32F4xx datasheets for details on thisparameter.Max. APB2 clock is 84MHz so the period is >10ns; but regardless, the DS should not use a fixed value if it is APB-clock dependent.
ST, please clarify.
JW
Solved! Go to Solution.
2017-05-05 11:30 AM
The front-end is asynchronous. Very useful in STOP mode when internal oscillators are OFF :)
2017-04-25 06:30 AM
For me the documentation sounds like EXTI edgedetection is not APB-clock dependent. But e.g. for the F76x DocID029041 Rev
2.14 External interrupt/event controller (EXTI)
...The EXTI can detect an external line with a
pulse width shorter than the Internal APB2 clock period.and Table 67. I/O AC characteristics(1)(2) (continued)
tEXTIpw > 10 ns
contradict. ST, please clarify.
2017-04-25 08:42 AM
No Clive, I am quite sure the edge detection happens asynchronous to the internal clocks. Otherwise the tEXTIpw specification would have the clock in its formula...
2017-04-25 09:37 AM
Thanks Uwe for the comment. This clarifies it, at least for the 'F407: 10ns *is* shorter than APB2 period indeed - my bad.
I believe the 'min 10ns' is a requirement for the external signal source, i.e. the latch captures pulses shorter than 10ns.
Still, I'd love to know if there's an asynchronous latch indeed.
Jan
2017-04-25 09:47 AM
The GPIO on both the F4 and F7 are in the AHB clock domain, the pins are going to have a synchronizer circuit off the back-end of the schmitt trigger to pull them into that domain, and your view of GPIOx->IDR. They may then go into fractional, but synchronous, clock domains for the APB2 (EXTI), at which point the signal is surely guaranteed to be at least half the APB2 period in terms of hold time.
2017-05-05 11:30 AM
The front-end is asynchronous. Very useful in STOP mode when internal oscillators are OFF :)
2017-05-05 03:44 PM
Ahoj,
Thanks, this is good to know.
Jan
2017-07-10 06:38 AM
One more question: where exactly are the EXTI inputs tapped off from the GPIO cell, before the Schmidt or after? In other words, would setting the GPIO to Analog switch off EXTI or not?
Thanks,
Jan