Micro-controllers-FSM –Finite State Machine-Tutorials and Examples-1

Tutorials Overview
Finite State Machine is a tool to model the desired behavior of a sequential system.
•The designer has to develop a finite state model of the system behavior and then designs a circuit that implements this model
•A FSM consists of several states. Inputs into the machine are combined with the current state of the machine to determine the new state or next state of the machine.
•Depending on the state of the machine, outputs are generated based on either the state or the state and inputs of the machine.

Structure

  1. X represents the range of possible input values (2n) 
  2. Y represents the range of output values (2m) 
  3. Q represents the range of the possible states of the system (2k) 
  4. Transfer functions: 
–f: X x Q -> Y
–g: X x Q -> Q


More Links:
Finite State Machine-Tutorials and Examples-2
Mealy and Moore machines
Finite State Machine-Digital Electronics
Embedded programming-Micro controller based Systems

Picture Representation:



  1. FSM = (X, Y, Q, f, g) 
  2. –If there is no state in the Q range (Q≡Ø, the circuitry has no history), then: 
  3. g: X x Ø->Ø, there is no state transition function 
  4. f: X x Ø -> Y is becoming f: X -> Y 
  5. –In this case, the FSM is equivalent to an CLC 
  6. FSM| Q≡Ø = CLC = (X, Y, f)

Asynchronous vs. Synchronous
  1. Async FSM – the next state becomes the present state after the   delays through the delay elements 
  2. Sync FSM – obtained by replacing the delay elements di with    memory elements (registers). The wi bits of the next state will be  written in the registers (memory elements) only on the clock (on  edge or level) is applied.

Sync FSM with immediate outputs



The FSM where the outputs, after they have been calculated, are used immediately (of course in the stable period of the state interval), is called an immediate state machine.

Note:
The FSM where the outputs, after they have been calculated, are used immediately (of course in the stable period of the state interval), is called an immediate state machine.

Sync FSM with delayed outputs


The next state is assigned as present state on the next clock cycle. Similarly, we can proceed with the outputs, obtaining the delayed state machine. Each bit of the output is passed through a memory element.

Note:

The next state is assigned as present state on the next clock cycle. Similarly, we can proceed with the outputs, obtaining the delayed state machine. Each bit of the output is passed through a memory element. Through this memory elements, whenever the t+1 clock cycle is applied, the values calculated by CLC (function f) for t interval are assigned to the output (Y(t+1) := Y(t) ). By doing this we can obtain outputs unaffected by combinatorial hazard.

Related

Mealy and Moore machines - Micro-controllers - FSM

Mealy and Moore machines(Micro-controllers -FSM) A.Moore machine –Associates its outputs with states –The outputs are represented either within the vertex corresponding to a state or adjacent to...

Micro-controllers-FSM –Finite State Machine-Tutorials and Examples-2

•Events: –Wake up at fixed time every day–Weekends: you don’t need alarm, so you wake up, turn off the alarm and resume sleep•FSM modelling this chain of events, with: –Three states:•Asleep •Aw...

Post a Comment

SPAMMING will not be Appreciated.

emo-but-icon
:noprob:
:smile:
:shy:
:trope:
:sneered:
:happy:
:escort:
:rapt:
:love:
:heart:
:angry:
:hate:
:sad:
:sigh:
:disappointed:
:cry:
:fear:
:surprise:
:unbelieve:
:shit:
:like:
:dislike:
:clap:
:cuff:
:fist:
:ok:
:file:
:link:
:place:
:contact:

Hot in weekRecentComments

Hot in week

Recent

C Programming - Data Structure Interview Questions Answer

We have started series of C programming Q&A for job interview for freshers.Computer / IT Engineering Professionals and Students alike will be benefited.We recommend our user to go through pre...

C Programming Question Answer

We have started series of C programming Q&A for job interview candidates.Engineering Professionals and students alike will be benefited.We recommend our user to go through previous post to enha...

Java Objective Multiple Answer Questions Bank

We have chosen Java Oracle J2EE, J2SE, Net-beans, JVM ( Java Virtual Machine ) as our readers choice.We have created Objective Type Multiple Answer Question Collection that are frequent in job inte...

Java Question Bank Objective Q&A

Here we have collected frequently asked question in job interviews.We have chosen Java as our readers choice.You will find these helpful.We encourage our Readers to send in their suggestion. If re...

C Question Bank

We have started series of C programming Question bank for job interview candidates.Engineering Professionals and students alike will be benefited.We encourage our readers to provide feedback and as...

Comments

Anonymous:

Technology is always being the vital part of evolution either mobile phones or computer all are the part of it. Electronics have made things so easy and reliable for human being s. very few schools in...

Anonymous:

A detailed and complete knowledge guide for fresher's to crack their interviews in Embedded Programming. Looking for a job contact <a href="http:/celebratejobs.com/>celebratejobs</a&...

YouLoseBellyFat:

visual basic example codes

App Development Mumbai:

It was very useful for me. Keep sharing such ideas in the future as well. This was actually what I was looking for, and I am glad to came here! Thanks for sharing the such information with us.

Anonymous:

Thanks for Appreciations.We love to hear again from you.

Our Channel

Contact Us

Name

Email *

Message *

item