Question: 2. Given the following Moore FSM implementation in C const struct State uint8_t out; // Output to PTO uint8_t wait; 1/ Wait time in 500ns

2. Given the following Moore FSM implementation in C const struct State uint8_t out; // Output to PTO uint8_t wait; 1/ Wait time in 500ns units const struct State next [4 // Next states typedef const struct State StateType; #de fine #de fine #de fine #de fine SO si S2 S3 &fsm [0] &fsm [1] &fsm[2] &fsm [3] StateType fsm[4] 0x00, 80, 1S0, si, S0, S2), 0x01, 200, 1si, s2, si, S3, 0x10, 80, 1S2, S3, S2, S0) 0x00, 200, 1S3, S0, S3, S1 StateType cState; 1/ Current State a) Draw a FSM diagram for the implementation provided. The diagram must capture all the information included in the implementation. b) Assuming SO is the initial state, and the 2-bit input is from Port E pins 1 and 0 what output sequence is produced upon this sequence of inputs on (PE1 PEO): 01,11,11,10,00,11)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
