Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A numerical keypad and a common cathode 7-segment display with the following arrangement are to be interfaced to an 8051 microcontroller (Figure Q4b). i. Write

image text in transcribed

A numerical keypad and a common cathode 7-segment display with the following arrangement are to be interfaced to an 8051 microcontroller (Figure Q4b). i. Write a subroutine to continuously scan the keypad and return the position of the column and row of the key pressed into R1 and R2 respectively. [8 marks] ii. Given the row information is stored in R1, while the column information is stored in R2. Write a subroutine to display the key pressed character ('.', '-', '0', ' 1 '...' 9 ') to the 7 -segment display. [7 marks]

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_2

Step: 3

blur-text-image_3

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

Transactions On Large Scale Data And Knowledge Centered Systems Xxviii Special Issue On Database And Expert Systems Applications Lncs 9940

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Qimin Chen

1st Edition

3662534541, 978-3662534540

More Books

Students also viewed these Databases questions

Question

Design a health and safety policy.

Answered: 1 week ago