Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE ASSEMBLY LANGUAGE AND KEEP IT UNDERSTANDABLE WITHOUT COPYING PREVIOUS WORK THANKS. Also show the random function generator Project: You are to build a simple

image text in transcribed

USE ASSEMBLY LANGUAGE AND KEEP IT UNDERSTANDABLE WITHOUT COPYING PREVIOUS WORK THANKS. Also show the random function generator

Project: You are to build a simple Dice display for ONLY 1 dice using 7 LEDs and resistors along with our PIC processor. The program will cycle through a table in RAM that contains 16 "random" states of the dice. Obviously there are six possible dice states 1, 2, 3, 4, 5, and 6. Arrange the LEDs so that they form a dice-like structure. An easy implementation is to save in RAM the 16 "random" states that you get and cycle through them using the indirect addressing option. Each state can then be "hardcoded" as a separate subroutine to be able to be displayed on the LEDs. Use pins CO-C1 and BO....B6 of the PIC. Obviously you will need 7 pins now to represent the dice states. Introduce a delay of only 2 seconds between states Once all 16 states are cycled through, flash the ALIVE LED twice, each time for 2 seconds and repeat in an infinite loop. Also, you will be provided with one 7-segment display. Connect it to the unused PIC pins of your choice and show an incremental count of each of these dice random states, ie. 1, 2, 3, 4....16 as they cycle through. So you will need to use same logic as Project 4 where you need the 7-segment to show the two digits in succession and then clear up etc. When you cycle through those 16 states the sum resets and you start from the beginning Producing the 16 random states will be the main challenging part of this exercise. To do this, search the internet or any book on numerical recipes in C or similar for a simple random number-generating routine. If you can not do this task, alternatively you can decide on 16 random numbers yourselves BUT you will lose significant credit from the project. Assume a positive hardware connection for the LEDs, just like the left-center and right LEDs of the board are currently connected. You will use a 1KOhm resistor or smaller. ebug the program in a modular way

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Draw a schematic diagram of I.C. engines and name the parts.

Answered: 1 week ago