digitalPulse() on stm32f3discovery #176
Replies: 6 comments
-
Posted at 2013-09-30 by mattrco Hi Frida, if you surround your code block with three backticks on lines above and below it, it should format the code properly. Just realised that isn't on the formatting help tab so I'll add it in. (You don't need |
Beta Was this translation helpful? Give feedback.
-
Posted at 2013-09-30 by Frida What about line breaks in the code? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2013-09-30 by mattrco They should be fine too, as long as it's formatted correctly between three backticks like this: https://help.github.com/articles/github-flavored-markdown#syntax-highlighting (ignore the word 'ruby')
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2013-09-30 by Frida Thank you, I had to use pre and code. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2013-09-30 by Frida In software version 1.40, the limit is at 976
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2013-10-01 by @gfwilliams Hi Frida, So I think you actually mean: This is expected... So what happens is that digitalPulse sets the pin to 1, then starts a timer in the background, which sets the pin low after 1200ms = 1.2 seconds. If you then call digitalPulse again, it waits for the first timer to finish before it starts the next pulse. Rather than hang the device, it only waits around a second for the pulse before giving up and raising an error. Perhaps it should produce a better error message, but I think the behaviour is right. If you typed digitalPulse is for short 'pulses' that need to be very accurate. For longer pulses, use setTimeout instead. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2013-09-30 by Frida
I have an error on my "stm32f3discovery" card that I have detected when I make some "digatalPulse ()" after another.
If I make a digital pulse that is greater than 1004, and after that has a digital pulse big or small, I get the error.
The last digital pulses in the series, may well be greater than 1004.
Software version 1.39.
My function: without error
My function: with errors
And the error:
/ / ************************************
/ /> te ()
/ / ERROR: INTERNAL: Timeout on Utility hours
Beta Was this translation helpful? Give feedback.
All reactions