2016-08-25 05:29 AM
Hi all,
I'm still relatively new to development on MCU. So I'm hoping to get some help to start.
I need to measure time between pulses in 20 nanoseconds resolution or less. I then need to transfer the measured value to a host machines (preferably via Ethernet or USB).
Can anyone comment if any of the STM32 MCUs would be able to do this measurement?
If yes, can you give me a starting point where to start in regards to measuring the pulses?
If no, which other solutions that would be suitable for my use?
Thanks in advance.
2016-08-25 06:13 AM
The PWM Input mode can make such measurements. Get yourself a NUCLEO-F411RE, clocking at 100 MHz you'd get 10ns from 16-bit and 32-bit counters.
2016-08-26 08:19 AM
Hi s.hidayat,
STM32F4xx and STM32F7xx are suitable for your case. You can first select the device and the board (STM32F407x device, ). I recommend two firmware ressources:* TIM_PWMInput example available in almost all STM32CubeFx packages. Forat this path:STM32Cube_FW_F4_V1.12.0\Projects\STM32F4-Discovery\Examples\TIM\TIM_PWMInput* TIM_EXTCLK_ETR example in which calculates the ppm of input signal using external clock. This examples and the theorie behind is well described in details in the application note. The package theat contains the example is at this Link -Hannibal-2016-08-30 06:32 PM
Hi Hannibal,
Thanks for the suggestions.A few more question. The pulse shall be ~50us and the pulses are at least 1us aparts. I need to send the time stamps of the pulses or the duration between pulses to another machine for processing (preferably via Ethernet or USB). I need at least 2.56Mbps between the processing machine and the MCU board.Will these be achievable with a STM32F4xx evaluation board?Does any of the evaluation boards have Ethernet interface?I was looking at this one here from Olimex. What do you think?http://www.digikey.com.au/catalog/en/partgroup/stm32f407-evaluation-board-stm32-e407/33818Thanks in advance. Appreciate your help.2016-08-30 06:46 PM
Hi Hannibal,
Just found out that I could add expansion board with Ethernet to the discovery board.I would appreciate if you could give a quick comment in the combination of the STM32F4DISCOVERY and STM32F4EXT-BB would suit my need.Thanks.2016-09-01 01:27 AM
Hi s.hidayat,
Yes, the base board STM32F4DIS-BB would be the suitable expansion board for you. You find related web page at this . -Hannibal-