Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this task you are required to display time on a I 2 C based seven segment display. The time should at 0 0 :

In this task you are required to display time on a I2C based seven segment display. The time should at 00:00(minutes, seconds) when the microcontroller is started and internal timing should be used to keep the time. You may use millis function for this purpose.
In the simulator you should be using HT16K33 Backback 7-segment display. This device has multiple commands to control its behaviour and a system to setup output of the device. To initiate the device, you must send following commands either in a single transmission or one by one to the device:
0x21: Turn on clock
0xE?: Set brightness ? should be replaced by the brightness value. Use 0xEF for full brightness.
0x81: Enable display
In order to update the display, you should first send the starting section. The controller supports up to 16 sections each having 16 segments in it. However, in our device we have 5 section, first and last two have 8 segment digits (7-segments +.), middle section (: sign) only has 1 segment at bit 1. After sending the starting section, without ending the transmission, send 2 bytes per section (2nd bytes do not matter as each section is 8 bits) to set their state. This will allow you to control segments on each 7-segment display. Once the data is written, end the transmission to request device to apply your changes. If you want to change all sections at once, you need to send 0 and then 10 bytes to set the state of each section.
Draw your circuit and write your program on this page. Use the back of the paper if necessary.
image text in transcribed

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

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are the challenges associated with tunneling in urban areas?

Answered: 1 week ago

Question

What are the main differences between rigid and flexible pavements?

Answered: 1 week ago

Question

What is the purpose of a retaining wall, and how is it designed?

Answered: 1 week ago

Question

How do you determine the load-bearing capacity of a soil?

Answered: 1 week ago

Question

what is Edward Lemieux effect / Anomeric effect ?

Answered: 1 week ago