Download ABEL Design Manual
Transcript
State Machines @DCSET state_diagram Count State 0: State 1: State 2: State 3: State 4: State 5: State 6: State 7: State 8: State State State State 9: 10: 11: 12: State 13: State 14: State 15: if ( SenA & !SenB ) then 0; if (!SenA & SenB ) then 4; if ( SenA == SenB ) then 1; goto 2; goto 3; goto 4; GreenA = YellowA = goto 5; YellowA = RedA = RedB = GreenB = goto 8; goto 0; goto 0; Off; On ; if (!SenA if ( SenA if ( SenA goto 10; goto 11; goto 12; GreenB = YellowB = goto 13; YellowB = RedB = RedA = GreenA = goto 0; goto 0; "Power up RedA = YellowA = GreenA = RedB = YellowB = GreenB = goto 0; & SenB ) then 8; & !SenB ) then 12; == SenB ) then 9; Off; On ; Off; On ; Off; On ; Off; On ; Off; On ; and preset state Off; Off; On ; On ; Off; Off; end Figure 4-15 @DCSET-compatible State Machine Description (Continued) ABEL Design Manual 71