Activities For this assignment you will write a main routine

Activities: For this assignment, you will write a main routine which implements a finite stale machine. You will use the LKDs to indicate the state and output functions and the switches to provide the nickel and dime inputs. You will assign state numbers to the individual states and light Dl, D2, and D3 to indicate the state number. (1 recommend 0.1.2.3, ..) Your initial state number will be 000, or all three LEDs unlit. You will use D4 to indicate when a product has been dispensed. If change is to be issued, your program should flash D1, D2, and D3 momentarily before they all return to the unlit condition. You will simulate a nickel input using switch BTN1 (RA6) and a dime input using BTN2 (RA7). You will find that you need to use the delay function to ensure that you can observe the illumination of the LEDs and to correctly read the switches, as we will not be using interrupts to defect a change of input state.

Solution

Insufficient data. Please let know which processor is required and the actual task to be provided to run the routine.

 Activities: For this assignment, you will write a main routine which implements a finite stale machine. You will use the LKDs to indicate the state and output

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site