Question: The school children are planning to play the LUDO game. But, the children forgot to bring the dice to the play date. The children come
The school children are planning to play the LUDO game. But, the children forgot to bring the dice to the play date. The children come to you to ask for help. You, a very great tech geeky guy, wants to help them by writing the program on PICF microcontroller to accomplish the same task.
Now your task is to write an MPLABX XC program to perform rolling a dice operation. The functionality is described as follows: When the push button SW is pressed, the segment display should show random values from to That is every time the child presses the SW a new value between and should show up in the segment display.
Pushbutton should be connected to PORTB
segment Display should be connected to PORTC
Constraints: A userdefined function random should be used to calculate the random number and then be invokedcalled from the main function. This is to improve modularity in your programming. Also provide Proteus schematic digram with componet name.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
