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

Drawback of these electromechanical and mechanical computers, Drawback of t...

Drawback of these electromechanical and mechanical computers The basic drawback was: Inertia/friction of moving components had limited speed. The data movement usin

Utilization count - processor, The Utilization Count shows the status of ea...

The Utilization Count shows the status of each processor in a specific mode i.e.  Overhead mode, busy mode, and idle mode with respect to the progress in time as shown in Figure.

Display the map centered on the users location, Question: a) The follo...

Question: a) The following is a description of the navigation options in a mobile web site which provides public bus time slots for a city. It is an interesting service for m

What is multi-threaded unix kernel, Q. What is multi-threaded unix kernel? ...

Q. What is multi-threaded unix kernel? Multi-threaded UNIX kernel: We know threads are light-weight processors demanding minimal state information comprising the processor stat

Difference between aggregation and association, Difference between aggregat...

Difference between aggregation and association Aggregation is a particular form of association, not an independent concept. Aggregation acts semantic connotations. If two objec

binary division program for signed integer, The program division.c is avai...

The program division.c is available for download as part of this assignment. It is a binary division program which works for signed integers. It contains a function, div32, which d

Basic software, Basic Software: The basic software is also referred to...

Basic Software: The basic software is also referred to as utilities. Basic software packages are available for performing operations such as data entry and validation, sorting

Algorithm to insert a key in b-tree, Algorithm to insert a key in B-tree is...

Algorithm to insert a key in B-tree is as follows: 1.  First search is completed for the place where the new record must be put. As the keys are inserted, they are sorted into

In order to concatenate strings only for output purposes, In order to conca...

In order to concatenate strings only for output purposes which command can be used in conjunction with the 'Write' statement. NO-GAP command.

Why some languages are not decidable, Why some languages are not decidable ...

Why some languages are not decidable or even Turing - recognizable?  The  reason  that  there  are  uncountable  many  languages  yet  only  countably many  Turing  machines.

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