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,
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
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
Yourtask is to work out howto use these components so that programs can be
accurately trigger events at least up to 1 hour after a ‘timer’ is ‘set’. The function should allow
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
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
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
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
datasheets for any elements you may choose to include in your design (except passive
elements such as resistors and capacitors).
Describe how your circuit elements address the interfacing requirements. Please
ensure that you consider both the Atmega168 and LED display
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 !!!
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.
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
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
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
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
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