This is the place for any magazine-related discussions that don't fit in any of the column discussion boards below.
4 posts • Page 1 of 1
Does anybody have any general tips or experience doing this, or ideas for directly going from a Moore or Mealy machine diagram or flowchart to a programming flowchart? <p>Douglas
I've done a fair amount of state machines in CPLDs. I use a state register and some combinational logic to determine the next state.<p>In a microcontroller solution, This may not be as efficient as using an if-else-if of switch architecture. Within the execution of each state, the next state is loaded into the state register.<p>Are you implementing it in assembly or C?
I've reasoned it out. For applications where asynchronous aspects are required at low frequencies, the PIC will work fine. However, at high frequencies, this aspect may be better implemented on a traditional FSM. Additionally, the flow chart created for the FSM can be almost exactly implemented into the PIC word for word, with each state being a label in assembly language, this is for a Moore machine and low speed Mealy machines. It's a real time saver!
Users browsing this forum: No registered users and 13 guests