# A PIC18F4550 microcontroller interfaced to a common-cathode 7-segment display via a buffer IC 74HC244 in the...

###### Question:

A PIC18F4550 microcontroller interfaced to a common-cathode 7-segment display via a buffer IC 74HC244 in the figure above.

- When switch SW1 is pressed, the value displayed at the 7-segment will increment by one.

- If the value displayed at the 7-segment is ‘9’, when switch SW1 is pressed, the value will roll over and become ‘0’.

- When switch SW1 is released, the value displayed at the 7-segment remains unchanged.

- External interrupt is used for detecting the state at RB0.

(a)       Draw the table displaying the relation between the decimal digit to be displayed, corresponding segment to turn on and the corresponding hexadecimal number output from Port D of the microcontroller.[10 marks]

(b)       Write the program that performs these tasks. [10 Marks]

+5V PIC18 MCU 300 Ω each STV1 RD5 RD4 10k Ω RD2 RD1 RDO common cathode

#### Similar Solved Questions

##### 24. a) Write a reasonable mechanism, using good arrow notation, for the bromination of phenol to...
24. a) Write a reasonable mechanism, using good arrow notation, for the bromination of phenol to p-bromophenol. Show all the resonance forms of the intermediate and circle the major contributing resonance structure. b) Prepare acetanilide from benzene and acetic acid as the source of all carbons, an...
##### For this problem, do not worry if prices and quantities are not "realistic." Suppose that the...
For this problem, do not worry if prices and quantities are not "realistic." Suppose that the market for photocopies in Washington DC is perfectly competitive, and is given by the following equations: QP = 72-P QS = 5P where is the daily demand for copies in DC and Q is the total supply curv...
##### • Coronary Artery Disease 1.1. Identify the most important client concerns for this condition 2.Discuss three...
• Coronary Artery Disease 1.1. Identify the most important client concerns for this condition 2.Discuss three priorities for nursing care of this client, with these client concerns in mind. Explain how you arrived at the order of importance (Nursing Process, Maslow’s Hierarchy, ABCs, etc....
##### From the table "X" (a), calculate gross profit of each invoice as total sale minus total...
from the table "X" (a), calculate gross profit of each invoice as total sale minus total cost of all units of the invoice. c) Calculate tax on profits for each invoice. Create two columns. One column must show if tax is due for the order (YES or NO). Tax is due if the gross profit of the ord...
##### What is resource debt
What is resource debt...
##### Efficiecy wages
efficiecy wages...
##### 1. An infinite planar source emitting S neutrons/cm'-sec is placed between infinite slab of beryl...
1. An infinite planar source emitting S neutrons/cm'-sec is placed between infinite slab of beryllium and graphite of thickness a and b, respectively, as shown in the picture below. Derive lim)S sides of the source, this problem is not symmetric and the source condition valid. The appropriate bo...