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 f= or you. http://www.havingasoftware.nl/robots/servo/servo.htm The author controls 12 servos in real time while simultaneously receiving command values at 38,400 baudrate on a pic16f84 running at 20Mhz. Remember, this pic does not have a integrated uart. He uses tw= o state machines: one for the servo and one for the software uart. Quit= e an achievement. 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