Question: Just Part B please 4. You will design a pacemaker controller using a Moore FSM. There is one input and one output. The input will

Just Part B please

Just Part B please 4. You will design a pacemaker controller using

4. You will design a pacemaker controller using a Moore FSM. There is one input and one output. The input will be high if the heart is beating on its own. The input will be low if the heart is not beating on its own. If the heart is not beating your machine should pace the heart. If the heart is beating on its own, the input will be high and your output should be low. However, if the input is low, you should pace the heart by giving a 10 ms output pulse every 1 sec. PB0 is output and PB1 is input. Input Output about ls exactly 1s exactly 10ms exactly 10ms a) Show the FSM graph in Moore format. It is desirable and feasible to create a Moor FSM graph for this question using 2 or 3 states at most. b) The structure and the main program are as given. Show the C code that places the FSM in ROM, and specify the initial state in the main program Const struct State uint32 t out uint32 t wait; uint32 t next[21 typedef const struct State State t; uint32 t s; void main (void) t PORTB Init ); SysTick_Inito; //Specify the initial state here while (1) GPIO PORTB DATA R FSMIs] .out; SysTick_Waitlms (FSM[s].wait); Input = (GPIOPORTBDATAR&Ox02) >>1; sFSM[s].next [Input]; - - - 4. You will design a pacemaker controller using a Moore FSM. There is one input and one output. The input will be high if the heart is beating on its own. The input will be low if the heart is not beating on its own. If the heart is not beating your machine should pace the heart. If the heart is beating on its own, the input will be high and your output should be low. However, if the input is low, you should pace the heart by giving a 10 ms output pulse every 1 sec. PB0 is output and PB1 is input. Input Output about ls exactly 1s exactly 10ms exactly 10ms a) Show the FSM graph in Moore format. It is desirable and feasible to create a Moor FSM graph for this question using 2 or 3 states at most. b) The structure and the main program are as given. Show the C code that places the FSM in ROM, and specify the initial state in the main program Const struct State uint32 t out uint32 t wait; uint32 t next[21 typedef const struct State State t; uint32 t s; void main (void) t PORTB Init ); SysTick_Inito; //Specify the initial state here while (1) GPIO PORTB DATA R FSMIs] .out; SysTick_Waitlms (FSM[s].wait); Input = (GPIOPORTBDATAR&Ox02) >>1; sFSM[s].next [Input]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!