Demonstration of a micro controller system, Computer Engineering

Assignment Help:

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<    }
  }  
}


Related Discussions:- Demonstration of a micro controller system

Basic of C, write algorithm and draw flowchart for exchange the values of t...

write algorithm and draw flowchart for exchange the values of two variables.

Perfect fundamental logic - artificial intelligence, Perfect fundamental lo...

Perfect fundamental logic - artificial intelligence: However, while it's theoretically  possible to do definite intelligent things (like prove some easy mathematics theorems a

Application area of artificial intelligence, 1. The State of the Art: What ...

1. The State of the Art: What can AI do today? A concise answer is difficult because there are so many activities in so many subfields. Here we sample a few applications other

Explain the term- scan insertion, Explain the term- Scan Insertion Sca...

Explain the term- Scan Insertion Scan Insertion is completed by a tool and results in all (or most) of your design's flip-flops to be changed by special "Scan Flip-flops". Sca

Why isdn handles data pertaining, ISDN handles data pertaining to? ISDN...

ISDN handles data pertaining to? ISDN handles data pertaining to all digital services.

Explain about mainframes computer, Q. Explain about Mainframes computer? ...

Q. Explain about Mainframes computer? Mainframes, capable of executing in excess of 53 MIPS, are high-performance, general- purpose computers supporting very large databases, r

Which technique allows executing a program not in memory, A set of techniqu...

A set of techniques that allow executing a program which is not entirely in memory is called ? Ans. virtual memory which allows executing a program that is not entirely in me

Prepare a decision tree, A part of an aircraft engine can be given a test b...

A part of an aircraft engine can be given a test before installation.  The test has a 75% chance of revealing a defect if it is present, and the same chance of passing a sound part

Define a macro definition consists of, A macro definition consists of ? ...

A macro definition consists of ? Ans. A macro Definition have: A macro prototype statement, one or various model statements and also Macro pre-processor statements

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd