Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Within the Microelectronics centre we support the following microcontrollers 68HC11, 80C51 and the PIC16C5xx series; we have a set of software tools and emulators to help debug high and low level software /hardware designs. Within the demonstration we shall see a elementary program to chase lights on a parallel port (The knight rider car). The code is available in machine code and C as shown later. You will see the use of the compiler and assembler (IAR program) on a 68HC11 target machine.
         
C code Program
 
void main()
 
{
/* Author Mr James Mc Carren 
      Date :  1 st March 1996
   Fuctions used : delay
   Purpose : To Chase lights on port A 
   Target : 68HC11 microcontroller
   Version : 1.0
   Modifications : None 
*/
  unsigned char *Paddr,*Padr;
  unsigned char data;
  int x,i,del;
/* Declare the port a pointers */
 
  Padr = (unsigned char *)0x0;
  Paddr = (unsigned char *)0x1;
/* Port A all outputs */
 
  *Paddr =0xff;
  for(;;)
  {
    data = 0x1;
    for (i=0;i<=7;i++) /* Shift  8 times */
    {
    for (del = 0;del<=0x3fff;del++); /* Very long delay */
    *Padr = data<    }
  }  
}

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9620285

Have any Question?


Related Questions in Computer Engineering

Question topic business informationsearching relevant

Question: Topic: Business Information Searching relevant scholarly journal articles, research and discuss the following prompts. Include a minimum of two (2) scholarly journal articles relevant to each prompt for a total ...

1 what is the boolean expression for an and gate2 what is

1. What is the Boolean expression for an AND gate? 2. What is the Boolean expression for an OR gate? 3. What is the Boolean expression for a NOT gate?

Question having a strong statistical picture of data is

Question : Having a strong statistical picture of data is important to being able to properly identify trends in statistical analysis. In R, how can an analyst identify appropriate sample distributions and test for norma ...

Identify at least two 2 factors that have led to the

Identify at least two (2) factors that have led to the explosive growth of digital crime over the past a few decades. Next, describe the most common forms of digital crime, and give your opinion as to why those forms you ...

Question you are to write a report on the malware assigned

Question: You are to write a report on the malware assigned to you in the "Week 6 Malware assignment by individual student" document. Your report, written in Microsoft Word with 12 point type and 1 in margins, must have ...

Submit a report in which you plan a strategy for

Submit a report in which you plan a strategy for introducing or improving a mobile Web site in your organisation (or an organisation with which you are familiar). Your report must outline how your choice of strategy will ...

Situation you are designing a system with a requirement to

Situation: You are designing a system with a requirement to provide direct access to 10,000 records. The data file grows at a rate of 5% per year. Evaluate the effect of a static hashed file with a load factor of .45. 1. ...

Stuck in the mud is a popular dice game in uk the game uses

Stuck in the mud is a popular dice game in UK. The game uses five (5) 6-sided dice to play. The players play in turns. Choose one player to start the game. The player will roll all five (5) dice. If the player rolled any ...

Explain how amazon and walmart companies use information

Explain how Amazon and Walmart companies use Information and Communication Technologies (ICT) in their competitive strategies. Highlight the differences in their use of ICT.

Question suppose that a table has 9 columns it is known

Question : Suppose that a table has 9 columns. It is known that we only need to provide values for 4 columns explicitly to insert a new row successfully. Assume that there are n columns with default values and there are ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As