MICROPROCESSOR SYSTEMS

MICROPROCESSOR SYSTEMS
2 Programing Tasks…. Subject: MICROPROCESSOR SYSTEMS..

Task 1: Real-time clock (30 marks)

The ‘delay’ function as used in the

workshops is limited because it depends on approximate

timing based on how long the processortakes to execute the ‘NOP’ instruction,
and the

limitations ofthe size of an integer means that the maximum delay will be approximately 65
seconds. Furthermore, the processor

cannot do anything else while the delay is going on, and

any interrupts run during the ‘delay’ will cause the delay to be longerthan
intended.

The Atmel ATmega168 does provide the facility to maintain more accurate and longer
timings through the use ofthe crystal

oscillator and the timer/counter circuitry in the

processor.

Yourtask is to work out howto use these components so that programs can be
written to

accurately trigger events at least up to 1 hour after a ‘timer’ is ‘set’. The function should allow
forthe timer

interval to be set in minutes and seconds.

Your solution should include the following:

1. Overall description ofthe principles of operation

of your solution

2. Description of all timer/counters, registers, and interrupts used and theirfunction
3. Details of all configuration

information to get the processorto perform this function

(e.g. what needs to be written to different configuration registers, including

WHY

particular bits are set or cleared)

4. Description ofthe overall algorithm(s) to implement the function

Note: This can be in the form

of pseudocode. Code fragments (lines of code) can be

used to demonstrate where appropriate.

Note: You do NOT have to write the whole program

forthis assignment.

Task 2: Interfacing a 7-segment LED display (20 marks)

7-segment LED displays are commonly used in microcontroller

applications. The datasheet

forthe Avago HDSP-5601 LED display is attached. Yourtask is to ‘design’ an interface
between the Atmel

ATmega168 microcontroller and this particular display.

1. Referto the datasheet, pick out all the relevant interface data (this is a very
important

practical skill!) and clearly list them.

Note: Make sure you get details ofthe right model.

2. Produce a circuit diagram with

details of all elements required to allowthe processor

to drive this particular LED display properly. You should provide copies of

the

datasheets for any elements you may choose to include in your design (except passive
elements such as resistors and capacitors).

3.

Describe how your circuit elements address the interfacing requirements. Please
ensure that you consider both the Atmega168 and LED display

requirements

specifications, and justify any decisions made, including any calculations if required.
4. Write a C subroutine that will

enable the display ofthe digits ’0? to ’9? and characters

a’ to ‘f’ (for hex numbers) on the LED display (specified by a

parameter passed to

the subroutine). Note: Assume you are using the NerdKit as in the labs.
ORDER THIS ESSAY HERE NOW AND GET A DISCOUNT !!!

Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our Guarantees

101papers.com is always working towards customer satisfaction. Our professional academic writers always aim at producing comprehensive papers that possess quality and originality at pocket-friendly prices. Students are assured that all their private information is safe with us.

Money-Back Guarantee

101papers.com provides a system where students can request for money-back in case they cancel the order or in the rare instances of dissatisfaction. The refund policy adheres to the company’s term and conditions on money-back.

Read more

Zero-Plagiarism Guarantee

While providing the best professional essay writing services, we guarantee all our students of plagiarism-free papers. All papers produced by our professional academic writers are checked against all web resources and previously completed papers to avoid plagiarism.

Read more

Free Revision Policy

In our urge to provide the best professional essay writing services, we guarantee students of free revision policy. The free revision policy is a courtesy service where students can request for unlimited for their completed papers. We always aim at achieving 100% customer satisfaction rates. The free revision policy is one among many of our major advantages.

Read more

Privacy Policy

At 101papers.com, every student is entitled to total security. Our professional academic writers are always committed to protecting all private information of our customers. We do not share any personal information with third parties. Additionally, we provide safe systems for all online transactions.

Read more

Fair-Cooperation Guarantee

Working with us is the greatest step towards achieving all your academic goals. We always deliver the best professional essay writing services as promised. We, therefore, expect all students to work cooperatively with us, as we work towards achieving our goal, your satisfaction. This way, all services will be delivered accurately and on time.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency