Get Adobe Flash player
FacebookTwitterGoogle+
English Arabic French German Italian Portuguese Russian Spanish

Did you know?

The first use of water to generate electricity was in 1882 on the Fox river, in the USA, which produced enough power to light two paper mills and a house.
 

Help us stay online:

small donate

 

statemachinelogoControl systems that manage electrical or mechanical systems must often be able to generate, or respond to, sequential events in the system. This ability to use time as part of the driver equation is in fact one of the important abilities of a microcontroller that makes it such a good control for electrical and mechanical systems. However, implementing multiple sequences can become long and involved if a linear coding style is used.

A simple construct, called a state machine, simplifies the task of generating a sequence by breaking the sequence into a series of steps and then executing them sequentially. While this sounds like an arbitrary definition of a linear piece of code, the difference is that the individual sections, or steps in the sequence, are encoded within a SWITCH/CASE statement.

Read more...

 

1State Machine or Time sliced multi-tasking system

 

A state machine is recommended for most solutions where there is non time-critical tasks to perform. However, the time sliced multi-tasking is useful when:

   1. There is multiple tasks.
   2. Some of the tasks are low-priority, and can execute in the background, being interrupted by higher priority tasks. For example, low-frequency PWM with 300ms of mathematical calculations happening every 1 second.

 

Read more...

Subcategories

  • hardware related

     

    Here are places useful advices related to hardware. These are all text that are product of many years of experience in work with electronics. You could also call this section of www.electronics-base.com tips and tricks. If you read it you will definitely not be sorry because it will save you much time in later debugging errors you could have avoided.

     

  • software related

     

    Here are places useful advices related to software and firmware. These are all texts that are product of many years of experience in work with electronics. You could also call this section of www.electronics-base.com tips and tricks. If you read it you will definitely not be sorry because it will save you much time in later debugging errors you could have avoided.

     

  • Analog filter design

     

    In every signal measurement you must condition signal first for correct measurement. This is done by using analog filters. Here you will find complete guide step by step of how to design analog part of your project and get best results. In easy way you will be able to do this job like a pro.