Forum Discussion
Altera_Forum
Honored Contributor
18 years agosuggest you write a small FSM, if you could not find fitting code.
S0 (off) S1 (switch to on and withhold for timer to verify) S2 (on) S3 (switch to off and wtihhold for timer to verify) S0 / S1 S3 \ / S2