SM Diagram State machine Name: Binky Prefoc: SM1 Period: 100 Variables and funct
ID: 3668688 • Letter: S
Question
SM Diagram State machine Name: Binky Prefoc: SM1 Period: 100 Variables and functions /Define user variables and functions for this nputs: A7-A0 static unsigned char i Outputs: B7-B0 ms LEDOf LE B0-1 SM Code #include "ring . h" switch (SM1 State) 3 atatic unsigned char 1 case SM1 LEDofE: 34 35 36 37 38 39 40 41 42 43 unsigned char SM1_cik Timer!SR () B0-0 14+ break 5 void { SH1 Cik-1 case SH1 LEDon: B0-1 1++2 break enm SM1 States f SM1 LEDotf, sMi LEDonSM1 State: 10 11 ETickFct Blinky 12 13 14 15 26 17 18 19 20 21 default: switch (SM1 State) break: case -1 45 46 47 48 49 50 51 52 53 54 SHi State SM1 LEDoff: break: case SM1 LEDofE int main () { it ((-3) & AO) const unsigned int periods1inky 100 TimerSet (periodBlinky) Timeron SMi State SM1 LEDon breaki case SI LEDon: if (1-8) 23 24 25 26 SM1 State-1: 56 57 58 59 60 61 62 L) while() TickFct_BlinkyO while (!SM1 Cik) break 28 29 30 31 default: SH1 State- SM1 LEDOfE:Explanation / Answer
1) 2
2) 8
3)State actions
4) default condition
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.