Hello.
Can someone gives any idea about the implementation of a basic Finite State Machine model for a VCD / DVD player? My idea would be something like this :
Code:
State OFF ---> Power ---> State ON / TRAY CLOSE
State ON / TRAY CLOSE ---> Power ---> State OFF
State ON / TRAY CLOSE ---> Eject ---> State TRAY OPEN
State TRAY OPEN ---> Eject ---> State ON / TRAY CLOSE
State ON ---> Play ---> State PLAYING
State PLAYING ---> Pause ---> State PAUSED
State PLAYING ---> Forward ---> State FORWARD PLAY
State PLAYING ---> Backward ---> State BACKWARD PLAY
State PAUSED ---> Play ---> State PLAYING
State FORWARD PLAY ---> Play ---> State PLAYING
State BACKWARD PLAY ---> Play ---> State PLAYING
State PAUSED ---> Forward ---> State FORWARD PLAY
State PAUSED ---> Backward ---> State BACKWARD PLAY
State PLAYING ---> Stop ---> State ON
State PAUSED ---> Stop ---> State ON
State FORWARD PLAY ---> Stop ---> State ON
State BACKWARD PLAY ---> Stop ---> State ON
State PLAYING ---> Power ---> State OFF
State PAUSED ---> Power ---> State OFF
State FORWARD PLAY ---> Power ---> State OFF
State BACKWARD PLAY ---> Power ---> State OFF
I'm sorry if I'm quiet dumb at this, this might be the worst form to represent an FSM model, but it's the best way I can think of now. I would appreciate any suggestion, improvement or correction.