Gaston Gagnon a =E9crit : >=20 > Samo Benedicic a =E9crit : >=20 > > Does anybody know for any tutorial regarding state > > machines and how to implement them in assembler? > > >=20 > This is not a tutorial but studying this clever example might do it= for > you. >=20 > http://www.havingasoftware.nl/robots/servo/servo.htm >=20 > The author controls 12 servos in real time while simultaneously > receiving command values at 38,400 baudrate on a pic16f84 running a= t > 20Mhz. Remember, this pic does not have a integrated uart. He uses = two > state machines: one for the servo and one for the software uart. Qu= ite > an achievement. >=20 The following links gives a basic description of state machine in a multitasking context. State machines are compared to Timeslicing with simple example. http://www.bknd.com/cc5x/multitasking.shtml Gaston -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics