Design a simple digital clock

Assignment Help Assembly Language
Reference no: EM131571

Part A: Clock

Use a timer interrupt to design a simple digital clock. This clock will count only minutes and seconds, and start at 00:00 every time your program starts. The display on the screen should read

mm:ss

The display should be kept on one line, and should only update once a second.
There will also be a ticking sound on the speaker once every second.

How should you design the clock? The specific method you use is up to you. Here are a few suggestions to get started:

• You can count interrupts to count seconds. For instance, if you use a 32 ms rate, one second is roughly 31 interrupts.

• When your clock reaches 59:59, reset the whole thing to 00:00 and start counting again.

• Also note that the speaker is on PORTA, pin 5.

Part B: Timer

Use the input capture to control the digital clock. In this part, there will be two switches to control the clock, one for starting the clock and one for stopping the clock. When the start button is pressed, it will reset the clock (set to Clock to 00:00) and enable the timer to start counting. On the other hand, when the stop button is pressed, it will disable the timer (stop the clock). It will be convenient to use the pushbutton switches on the FOX11 board to do this. One of the switches is already on PORTA and so can be used with the input capture feature. Your instructor will show you how to wire a PORTC switch over to PORTA for the second switch.

Reference no: EM131571

Questions Cloud

Library management system : Prepare a module which can exhibit the Library Management System
Balance sheet and income statement of the company : A preliminary analytical review of the company's most recent balance sheet and income statement
Describe the revenue - costs and profit : Describe the revenue, costs, and profit that Starbucks expected when it entered this market.
Determine the present value of the offers : Determine the present value of each of the three offers and then show which one has the highest present value.
Design a simple digital clock : Design a simple digital clock
Determine the analytical solution for the maximum stress : Determine the analytical solution for the maximum stress of the beam shown; compare with stress results from SolidWorks.
Learn redirecting standard output : Learn redirecting standard output (stdout) to a file using the output redirection operator
Determine the expected payoff of the game : Determine the expected payoff of the game
Determine the probability distribution : Determine the probability distribution for demand using the given data.

Reviews

Write a Review

Assembly Language Questions & Answers

  Create a assembly language subroutine

Create a assembly language subroutine MULSUM that takes an array named A containing n bytes of positive numbers, and fills two arrays, array B containing n words and array C containing n long words

  Write a function in linux assembly

Write a function in Linux assembly

  Analog measurements

Prepare an assembly program for the correctly measures the wind direction

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd