ΣSigmaStudio Ask AI Русский Log in

Strange bug with timer and oneshot

SigmaDSP & SigmaStudio J3627 Aug 14, 2014 00:00 3 replies Original on forum ↗
Thread Summary

Thread Summary

The user encountered an issue with a OneShot timer circuit where the timer output rises to 1 prematurely at turn-on, despite the Timer output driving it not rising until a 10-second delay. The problem was identified as the timer switching to 1 output for one sample, then resetting due to a change in the time delay. The user will explore alternative methods to implement the desired function.
AI Generated Content
Subscribe
J3627 Question
Aug 14, 2014 00:00

Intent was to vary the timer so the first time at turn-on, it only does a short mute, and then for a fault during normal operation, it does a much longer mute. So I made this circuit, and it behaves bizarrely. On turn-on, the OneShot timer rises to 1 after the 2 second delay, even though the Timer output that's driving it doesn't rise to 1 until the 10 second delay. The OneShot is predicting the future?

After turn-on, the OneShot stays forever on, and switching the switch causes the Timer to change after a 10 second delay, which is as expected.

So I think it's a bug? I'll try to find another way to implement the desired function

bug_report

sigma studio

6cf0492d12e5a6559edef7ac1b314a42.png
6cf0492d12e5a6559edef7ac1b314a42.png
6cf0492d12e5a6559edef7ac1b314a42.png-570x335.png
6cf0492d12e5a6559edef7ac1b314a42.png-570x335.png
J3627 Reply
Aug 14, 2014 00:00

Tried another method and it's also having problems.

Readback shows that ABCD is outputting the smaller time constant at turn-on, yet the Timer2 is initialized with the larger one.

Maybe the ABCD block outputs the wrong value for one sample at turn-on or something? Putting a Peak Hold on it doesn't show this happening, though.

16a5d0d9f7a811142b99ff49609732a2.png
16a5d0d9f7a811142b99ff49609732a2.png
16a5d0d9f7a811142b99ff49609732a2.png-532x341.png
16a5d0d9f7a811142b99ff49609732a2.png-532x341.png
J3627 Reply
Aug 14, 2014 00:00

Oh I think I know what's happening. The timer is switching to 1 output, for one sample, but then its time delay changes, which causes its output to go back to 0 and wait for the new time delay to finish. Changing the time delay causes it to act as if it had been triggered with that time delay instead, even if it hasn't been triggered again since it last went high.

Timer w/ External Reset

EZAdministrator Reply
Aug 2, 2018 00:00

This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

Thank you,
EZ Admin