Question: 3.1 Pre-Project Responsibilities You need to create a table listing the bit patterns required to be written to port A to display all digits from

3.1 Pre-Project Responsibilities

You need to create a table listing the bit patterns required to be written to port A to display all digits from 0 to 9. Also, this table should include the pattern needed to be written to port A, so that all LEDs in the common-anode hex display module are turned on (for testing purposes). You must generate a flow chart for LED control algorithm (see Section 4.1) and write a pseudo (C-like) code.

4.1 Counter You are required to program the HC(S)12 microcontroller to generate LED sequences: 1) Start displaying value 9 and count down in s teps of 3 (i.e. display: 9, 6, 3, 0) 2) Count up in steps of 2 up to and including value 8 3) Start displaying value 0 and count up in steps of 1 up to and including 9 4) Turn on all hex segments and inline LEDs. 5) Repeat starting with the first sequence The counter must display on both the inline green LED display and the commonanode hex display. For the inline green LED display, you must output the results of your counter in binary. Your code must contain two procedures (which you must write) to be used to control the in-line LEDs and the 7-segment LEDs. Each procedure must accept a byte type parameter, and return no parameters. Each procedure will be responsible for displaying on the LEDs the value passed to it by the calling statement.

3.2 Pre-Project Deliverables

You must submit a short document that includes:

7-Segment display table (as described in Section 3.1)

Flow chart of your algorithm (to show how the Counter in Section 4.1 works)

Pseudo code (to convert your flow chart to C-like code)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!