7.7.1 Guessing Game Logic Design Mplab
need solution for the guessing game assignment. need to know how to...
need solution for the guessing game assignment. need to know how to do it in detail
CASE WESTERN RESERVE UNIVERSITY Case School of Engineering Department of Electrical Engineering and Computer Science EECS 281. Logic Design and Computer Organization (4) Guessing Game Due: May 6, 2017 Laboratory (50 pts + 50 pts Extra Credit) In order to get the extra credit, your code should be working properly. In this assignment, we will use MPLab to develop and simulate an assembly language program for the PIC microcontroller that plays the guessing game, as described in Section 7.7.1 of the Wakerly textbook, 4 th ed. The assembly language program is to be tested using MPLab to apply the sequence of inputs given below. This state machine has 4 inputs and 5 outputs. Students should use the PIC16F84A. The required pin assignments are given in the following table. Required Pin Assignments Inputs Right Outputs Function PIC Function PIC G1 RA0 L1 RB0 G2 RA1 L2 RB1 G3 RA2 L3 RB2 G4 RA3 L4 RB3 ERR RB7 A high output is used to turn on a light while a low output signifies that the light is off. Programs should initialize to state S1 and include a delay of ~1.0 second from one state to the next in the rotating light pattern. This delay could be created in different ways, for example, using a simple program loop, or using a timer with or without interrupts. It need not be precise, but should be accurate to ±0.05 seconds. You may choose your processor clock frequency to adjust the state delay. The program should be tested using a stimulus workbook ("lab13.sbs") that has been posted on Canvas with this assignment. Given the above timing, this stimulus makes a wrong guess, a correct guess, then simultaneous correct/wrong guess. Your solution to this homework should include your documented assembly language code and stopwatch/watch displays to demonstrate that your game responds properly to stimulus. This example shows a stopwatch/watch display following the first wrong guess. Your solution should show this stopwatch/watch display following each state change. This can be done most easily by setting breakpoints immediately following each state change in your code, then running the processor, which will automatically stop at each state change. You need to use a processor frequency of 100kHz.
2 pages
## SCL Builder Setup File: Do not edit!! ## VERSION: 3.60.00.00 ## FORMAT: v2.00.01 ## DEVICE: PIC16F84A ## PINREGACTIONS ms No Repeat RA0 RA1 RA2 RA3 -- 0 0 0 0 0 -- 2500 0 0 0 1 -- 3500 0 0 0 0 -- 6500 0 0 1 0 -- 7500 0 0 0 0 -- 9500 1 1 0 0 -- 10500 0 0 0 0 -- & ## ADVPINREGACTIONS -- & -- COND1 Any
2 pages
Stimulus Window for HW 13: You can open a New Workbook from Debugger Stimulus New Workbook and type the following inputs for the Pin/Register Actions.
1 page
Answer & Explanation
Unlock full access to Course Hero
Explore over 16 million step-by-step answers from our library
Get answer
Our verified expert tutors typically answer within 15-30 minutes.
7.7.1 Guessing Game Logic Design Mplab
Source: https://www.coursehero.com/tutors-problems/Electrical-Engineering/10570362-need-solution-for-the-guessing-game-assignment-need-to-know-how-to-do/
Posted by: barajasyoub1995.blogspot.com

0 Response to "7.7.1 Guessing Game Logic Design Mplab"
Post a Comment