Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C code To generate a pattern on the LEDs that scrolls to the right at a slow enough rate to be visually perceptible, The

Using C code image text in transcribed
To generate a pattern on the LEDs that scrolls to the right at a slow enough rate to be visually perceptible, The 1st Switch changes the pattern and the 2nd Switch changes the speed of scrolling To become familiar with the 4 ports of the 8051, reading digital input from the dip switches and writing digital output to drive the 8 LEDs of the development board 9 OPERATION Switch 1 in the Off position will generate a pattern of OxFA and in the On position a pattern of Ox50. Switch 2 in the Off position will generate a slow scrolling rate and in the On position a faster scrolling rate. Port 0 takes binary Input from the switches while Port 1 drives the LEDs. Scrolling can be achieved using a logical right shift. A delay loop will have to be written in order to slow down the scrolling of the LEDs. Switch 2 will determine how many times the delay loop cycles which will essentially change the scrolling speed. A larger value will take longer than a smaller value Switch 1 doesn't have to update the new pattern immediately. This can simplify the coding with some implementations. Pattern wrap around is also not necessary To generate a pattern on the LEDs that scrolls to the right at a slow enough rate to be visually perceptible, The 1st Switch changes the pattern and the 2nd Switch changes the speed of scrolling To become familiar with the 4 ports of the 8051, reading digital input from the dip switches and writing digital output to drive the 8 LEDs of the development board 9 OPERATION Switch 1 in the Off position will generate a pattern of OxFA and in the On position a pattern of Ox50. Switch 2 in the Off position will generate a slow scrolling rate and in the On position a faster scrolling rate. Port 0 takes binary Input from the switches while Port 1 drives the LEDs. Scrolling can be achieved using a logical right shift. A delay loop will have to be written in order to slow down the scrolling of the LEDs. Switch 2 will determine how many times the delay loop cycles which will essentially change the scrolling speed. A larger value will take longer than a smaller value Switch 1 doesn't have to update the new pattern immediately. This can simplify the coding with some implementations. Pattern wrap around is also not necessary

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

Modern Datalog Engines In Databases

Authors: Bas Ketsman ,Paraschos Koutris

1st Edition

1638280428, 978-1638280422

More Books

Students also viewed these Databases questions

Question

d. Who are important leaders and heroes of the group?

Answered: 1 week ago