electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

function of a state machine?


Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> function of a state machine?
Author Message
rosemary2005



Joined: 03 Nov 2005
Posts: 35


Post05 Nov 2005 9:53   

function of a state machine?


hi

anyone pls reply me soon

What is the function of a state machine?
Choice 1
A state machine bases system response on events and the current status of the system.
Choice 2
A state machine provides debugging symbols and ensures exceptions are more difficult to occur.
Choice 3
A state machine queues different tasks and executes them from the highest priority to the lowest.
Choice 4
A state machine ensures that code is more portable between real-time operating systems.
Choice 5
A state machine ensures thread priorities increase depending on the state of inputs to the system
Back to top
Google
AdSense
Google Adsense




Post05 Nov 2005 9:53   

Ads




Back to top
contagiouseddie



Joined: 10 May 2004
Posts: 60
Helped: 3


Post05 Nov 2005 10:17   

Re: function of a state machine?


rosemary2005

There's no 1 exact choice that could answer your question. But, the nearest choice would the choice 1 & choice 2. I think you shouldn't include choice 4 and 5 as they are basically methods to execute a embedded system processes rather than working as a function of state machine. This means that usually the processes in an embedded system are either executed in priority-based, round-robin based, or some hybrid method. Hence, these are not the reasons for the creation of state machine.

State machine allows processes to be executed in a more organised matter. I develop embedded system and at the place where I work, there is this practice of creating state machines for almost every possible processes and even for small functions. State machine are usually implemented using switches (if you are using C as programming language). It is true as you have mentoned in one of your choices, state machine ensures exceptions are less likely to occur. In this case, whenever these exceptions do occurs, most probably a reset of state machine would occur.

If you want to get more ideas on this state machine. Read this book "Embedded Systems Building Blocks" by Jean J. Labrosse. It's available for download here.

Good luck.
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> Microcontrollers -> function of a state machine?
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
fuction call within state machine.execution time of function (2)
explain finite state machine and Infinite state machine? (1)
state machine (3)
State machine (5)
STATE MACHINE (3)
State machine (7)
state machine (11)
State machine (5)
Asynchronous state machine (2)
CPLD 4 state machine (4)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS