Question: Purpose This lab is a comprehensive exercise for HCS12 parallel port (7-segment displays) and assembly codes. A number is first tested by using idiv; if

Purpose

This lab is a comprehensive exercise for HCS12 parallel port (7-segment displays) and assembly codes. A number is first tested by using idiv; if it is an odd number, then an odd will be displayed at drive 7-segments; otherwise, an even is displayed. This lab is able to train students with the ability of operating the Dragon board, familiarizing with the parallel ports, and debugging assembly programs.

Material and Equipment

Dragon12+USB Evaluation board including a USB cable and an adaptor

MiniIDE software

Requirements:

Program an assembly code to test a given number using idiv. If it is an odd number, display an odd (lower case) on the 7-segment displays; if it is an even number, show an EUEn on the 7-segment displays. You need to use ports B, and P. Please draw a flow chart to show your logic flow.

Procedure

Draw a flow chart to show the logic flow

Program the assembly codes on MiniIDE

Operate MiniIDE software and the Dragon12+USB Board to input the codes you made

Build, load and run the codes to see what the 7-segment will display.

Debug until it is successful.

NOTE: The 7-segments are connected to port B in the following pattern:

a --> PB0,

b --> PB1,

c --> PB2,

d --> PB3,

e --> PB4,

f --> PB5,

g --> PB6.

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!