> So I have decided to make an FSM compiler, you define the FSM in a > structured language, and the resulting ASM makes the pic behave as > described. > > Is there any need for this? What would be the advantage over coding the FSM in another HLL, let's ay C or Jal? IMHO all the features of a normal HLL would be needed, both inside the FSM 'event-handling' and outside it (initialisation, interrupt handling). And the logical of a FSM is very simple. So if your plan makes any sense at all it would be as an add-on to a HLL, maybe as a preprocessor, but I would never use it, learning a new tool would be more trouble than coding the FSM myself. (NB I have coded lot's of FSM's, for instance datacommunication protocols). Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- 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