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

Engineering maths, calculate dy/dx if y=[x-cos(1/cos(xe/2x))]/x

calculate dy/dx if y=[x-cos(1/cos(xe/2x))]/x

DFD, Define software architecture and describe which types of architectures...

Define software architecture and describe which types of architectures can be used in Email or Facebook applications

Method of spirit duplicating, Method : The master from which the copies wi...

Method : The master from which the copies will be taken is first prepared from a special non-absorbent glazed sheet of paper and special carbon paper which acts as the reproducing

Difference between the std and class module in vb, Std Global within the p...

Std Global within the project.  Class Global throughout the all project only thing is we require to set the type lib. Class Modules can be Instantiated.

Write a cgi program that keeps a list of computers, Write a CGI program tha...

Write a CGI program that keeps a list of computers that have contacted the server. If comp1 is contacting first time it will display the message: "This is the first contact fr

What is mmu, What is MMU? MMU is the Memory Management Unit. It is a sp...

What is MMU? MMU is the Memory Management Unit. It is a special memory control circuit used for executing the mapping of the virtual address space onto the physical memory.

Show the decimal equivalent of a binary number, Q. Show the Decimal equival...

Q. Show the Decimal equivalent of a binary number? In binary numbers we have two digits 0 and 1 in addition they can also be signified as a string of these two-digits known as

Computer architecture, 6.How can we improve the performance of pipeline pro...

6.How can we improve the performance of pipeline processing

What is master slave kernel, Q. What is Master slave kernel? Master sl...

Q. What is Master slave kernel? Master slave kernel: In this model just one of processors is assigned as Master.  The master is in charge for subsequent activities:  i)

Define the difference between static ram and dynamic ram, Define the differ...

Define the difference between static RAM and dynamic RAM? The RAM family comprises two important memory devices that are static RAM (SRAM) and dynamic RAM (DRAM). The main diff

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