Effacer les filtres
Effacer les filtres

is it possible to create a high clock rate counter with Simulink?

2 vues (au cours des 30 derniers jours)
Ahmef Alhajsalem
Ahmef Alhajsalem le 18 Mar 2019
Hello everybody,
I need a counter with high Tacktfrequenz (eg 1 MHz) in Simulink. This allows me to turn a PIN on / off with the help of STM32 Nucleo board in μs range. In the lower model, I want to switch off the pin for 20 μs and then turn it on. The process repeats itself as you see by the counter. In order to reach the clock frequency of 1 MHz, the sample time of the free running Counter was set to 0.0000001. which slow and kill the calculation time. So to my question If I let this model run on the STM32 with External Mode in Simulink, would the pin really switched off for 20 μs? Unfortunately in Nucleo Support Package there are no timers and if so then I can not access the value in Simulink
regards

Réponses (0)

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by