Question: #include /* common defines and macros */ #include /* derivative information */ #pragma LINK INFO DERIVATIVE mc9s12dg256b #include main asm.h /* interface to the assembly

#include /* common defines and macros */

#include /* derivative information */

#pragma LINK INFO DERIVATIVE "mc9s12dg256b"

#include "main asm.h" /* interface to the assembly module*/

byte char2 16seg[26] = {CODE for Letters A-Z in alphabetical order};

char mess[10] = {E,A,R,N, ,A,N, ,A};

void main(void) {

ALL NECESSARY PORT AND BOARD INITIALIZATIONS

for(;;) { //Your Co

#include /* common defines and macros */ #include /* derivative information */

Shown below is a 16 segment display, which for implementation purposes is controlled by a single 16 bit port named K. The individual segments can be individually lit up by setting a pin on PORTK high (i.e. setting PTK0 high corresponds to lighting up segment A while setting PTK16 high corresponds to lighting up segment P). 16 segment displays are used to display text based messages, with each letter on the 16 segment display also shown below. An array of four 16-segment displays are being used to display a message, with the individual segments being controlled by PORTW pins 0-3. To enable the right most segment, PORTW must be set with pins 1-3 high and pin 0 low, and to enable the left most segment, PORTW must be set with pin 3 low and pins 0-2 set high. Start your code from inside the infinite loop (thus assuming all initializations provided) and assuming a fully initialized array from part a, provide the code to have the following message scroll across the 4 segments: EARN ANA Shown below is a 16 segment display, which for implementation purposes is controlled by a single 16 bit port named K. The individual segments can be individually lit up by setting a pin on PORTK high (i.e. setting PTK0 high corresponds to lighting up segment A while setting PTK16 high corresponds to lighting up segment P). 16 segment displays are used to display text based messages, with each letter on the 16 segment display also shown below. An array of four 16-segment displays are being used to display a message, with the individual segments being controlled by PORTW pins 0-3. To enable the right most segment, PORTW must be set with pins 1-3 high and pin 0 low, and to enable the left most segment, PORTW must be set with pin 3 low and pins 0-2 set high. Start your code from inside the infinite loop (thus assuming all initializations provided) and assuming a fully initialized array from part a, provide the code to have the following message scroll across the 4 segments: EARN ANA

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!