Professional Documents
Culture Documents
1131 Mohdyazidbinkamis2006
1131 Mohdyazidbinkamis2006
This thesis is submitted in partial fulfillment of the requirements for the Degree in
Bachelor of Electrical (Telecommunication) Engineering
November, 2006
iii
ACKNOWLEDGEMENT
Alhamdulillah, thank to Allah S.W.T for the guidance and knowledge bestowed
upon me, for without it I would not have been able to this far.
To all my friends who have helped and support me along the way, I thank you from the
bottom of my heart. I wish you all the best in life and hope that our friendship will last
forever.
v
ABSTRACT
This project also about an e-learning platform for the Third Year Laboratory,
Faculty of Electrical Engineering especially for Microprocessor Laboratory. E-learning
is way delivering information, enhancing communication, and training for student.
Student had difficulty to get much information about the laboratory and understand
about the experiment. The objective of this e-learning is to develop a system that
enhances the understanding of FKE student and performance in this field of study in
their subject. This e-learning was conceived with vision to develop a system where the
student will able to get knowledge about laboratory’s in FKE. To achieve this objective,
the platform has been built with element such as labsheet, visual experiment and new
information about the laboratories. The platform has been built with PHP, Apache,
MySQL, Macromedia Dreamweaver MX 2004, Adobe Photoshop, Swift 3.00, and
Macromedia Flash MX.
vi
ABSTRAK
TABLE OF CONTENTS
TITLE i
DECLARATION ii
DEDICATION iii
ACKNOWLEDGMENT iv
ABSTRACT v
ABSTRAK vi
TABLE OF CONTENTS vii
LIST OF TABLES xii
LIST OF FIGURES xiii
LIST OF SYMBOLS xvi
LIST OF ABBREVIATIONS xvii
LIST OF APPENDICES xix
1 INTRODUCTION
2 MICROPROCESSOR
3.1 Introduction 19
3.2 Symbols 20
3.3 Assembly Language Statement Format 22
3.4 Assembler Directives 24
3.5 Data Movement Group 24
4.1 Introduction 25
4.2 Hardware 26
4.3 Firmware 28
4.4 System Description 29
4.4.1 68 000 CPU 29
ix
5.1 Theory 36
5.1.1 Microprocessor Laboratory 36
5.1.2 The Flight 68K Microprocessor Board 36
5.1.3 I/0 Theories and Application 37
5.1.4 Function 37
5.1.5 PI/T Address 39
6 ANALYSIS EXPERIMENT
7 CONCLUSION
7.1 Conclusion 55
7.2 Suggestions 56
8 E-LEARNING PLATFORM 57
10.1 EasyPHP 71
10.1.1 Running EasyPHP 72
10.1.2 PHP Configuration File 73
10.1.2.1Error Reporting 73
10.1.2.2 Register Global 73
10.1.2.3EasyPHP Status Program 75
10.2 Macromedia Dreamweaver MX 2004 75
10.2.1 Easy Text Entry 77
10.2,2 Click and Drag Table Setup 78
10.3 Flash, Swift 3D and Adobe Photoshop 79
11 RESULT 81
12 CONCLUSION
12.1 Summary 84
12.2 Problems Encountered 85
12.3 Benefits 86
12.4 Future Enhancements 87
REFERENCES 89
xii
LIST OF TABLES
LIST OF FIGURES
APPENDIX C
C1 Introduction 116
C2 Organization 117
C3 Lab Rule 118
C4 Activities 118
C5 Facilities 119
C6 User Manual 119
C7 Schedule 120
C8 Division Group 120
xvi
LIST OF SYMBOLS
B Byte
W Word
L Longword
+ Addition
- Subtraction
* Multiplication
/ Division
() Parentheses
X [n:m] Bit n-m of X
(x) Content of X
→ Left operand is moved to right operand
↔ Exchange left and right operands
$N N in hexadecimal
N (no designator) N in decimal
@N N in octal
%N N in binary
xvii
LIST OF ABBREVIATIONS
LIST OF APPENDICES
A The Labsheet 91
B Answer 102
C Result for E- Learning (WEB PAGE) 116
1
CHAPTER 1
INTRODUCTION
The problem about previous labsheet laboratory is most the students not quite
understand about their experiment. The student can’t write the programming and take a
lot of time to finish the programming. They also do not know about how to use Flight
68K Board and Flight 68K Application Board. The previous labsheet also have many
instruction based and descriptive method. That means the students fully follow all the
instruction without make any reference before start the experiment and make students do
not understand what the experiment about. From that, it will make a problem and many
2
mistakes during experiment and the lecturer will take time to explain about the
experiment. Plagiarism of the laboratory report becomes habitual among the students. To
decreased the problem, the experiment like investigate will make students more thinking
and creative. Experiment like mini project will improve skill in writing report, thinking,
and analysis. The flowchart of Microprocessor Laboratory Project show in Figure 1.1
and the step to write/edit program show in Figure 1.2.
Using electronic media for learning and teaching is widespread. E-learning offers
opportunities for staff to convey material in variety of ways and ultimately on ‘anytime,
anyplace’ basis. E-learning materials can range from simple act of putting information
on line to simulations of real life. This means that distance learning (both off and on
campus) is a realistic possibility, with student able to take part in discussions via email
and online discussion forums, and at the same time being able to remotely access
materials and information. These materials do not need to be static web pages, as
technologies such as broadband improve audio and video may be made available on a
faculty Intranet allowing students to get knowledge about the equipment, software, and
anything about the laboratories in faculty.
There are several main objective involved in this project but the root of
the project is to improve the education standard and performance among the FKE
students. The objective of this e-learning is to develop a system that enhances the
understanding and easier to FKE student get information about laboratory
experiment and improving knowledge about electrical subject. It also provides a
learning platform in which the students read, understand, visualize and try
mastery checks to test their understanding in this particular field.
START
FINISH
START
CONCEPT
Programming Specification
ERROR?
Assembler
Programming(file.bin)
Run Programming
ERROR?
FINISH
CHAPTER 2
MICROPROCESSOR
Advances in the very large scale integration (VLSI) technology have made it
possible to fabricate a powerful central processing unit (CPU) into a single-chip
microprocessor. Because so much electronic circuitry is available in a small
microprocessor, it is capable of performing complex tasks at a high speed. The
processing power and complexity of microprocessors have been increasing dramatically,
and this trend is continuing. Figure 2.1 illustrates the rapid growth of Motorola's
microprocessor family. As can be seen from the figure, the growth started from the
MC6800, originally introduced in 1974, to the MC68000 and its derivatives with a
performance improvement of more than 10 times. [1]
The MC6800 is an 8-bit microprocessor in which both data bus and accumulators
are 8 bits wide. Its instructions can operate only on byte operands. In addition to
expanded instruction set and addressing modes, its successor, the MC6809, can perform
16-bit arithmetic operations using a single instruction. However, the data bus of the
9
MC6809 remains 8 bits wide. The MC68000 increases the width of data registers to 32
bits and also expands the data bus to 16 bits. This architectural improvement
substantially increases the speed, especially for 32-bit data operations. Meanwhile, the
maximum memory capacity has been increased to 16 megabytes from the 64 kilobytes
of both MC6800 and MC6809. [1]
The M68000 family consists of several microprocessors, all of which use the same
basic instruction set and machine code formats. Therefore, each microprocessor
maintains upward user code compatibility within the family. The major members of this
microprocessor family and their key features are summarized below. [1]
MC68020: The 32-bit member in the family. Both the data and address buses are 32 bits
in width. The MC68020 also has an on-chip instruction cache memory,
and instructions to provide coprocessor interface.
MC68030: An enhanced version of the MC68020. The MC68030 has a virtual memory
management logic and a data cache in addition to the instruction cache.
MC68040: The third generation 32-bit member in the family, The MC68040 includes
separated memory management units for data and instruction, expanded
on-chip caches, and a floating-point arithmetic unit.
program counter (PC) to keep the location of the next instruction to be executed, an
instruction register (IR) to hold the current instruction being executed, an arithmetic
logic unit (ALU) to perform the operation as specified in the current instruction, and a
status register (SR) to indicate condition code settings.
Each step requires one or more clock cycles to complete, with the clock signals being
generated by a clock circuit.
The processor communicates with other system components through the system
bus. Normally, the processor is connected to the bus through a bus interface, which
includes data transceivers, address drivers, and interrupt management logic to resolve
simultaneous interrupt requests.
13
The system bus is a set of conductors that can be divided into three groups,
the address bus, data bus, and control bus, according to function. Each location in
the memory or each programmable register in an I/0 interface has a unique address
assigned to it. During a data transfer, the processor sends out the address over the
address bus and the data bus is used to transfer the data.
The data bus of the MC68000 is 16 bits wide. This allows a 16 bit data word
to be transferred in one bus cycle. In addition to a word, the MC68000 can also
read/write a byte (8 bits) or a longword (32 bits) from/to a given address. However,
reading or writing a longword requires two bus cycles.
The control bus is used by the processor to issue a bus command, such as
read or write, and by memory or I/0 devices to return an acknowledge signal. A
typical control bus also provides lines for I/0 devices to send interrupt requests.
15
register has an address assigned called an I/O port and is accessed as a memory
location to the MC68000.
2.3.3 Linker
CHAPTER 3
3.1 Introduction
3.2 Symbols
Figure 3.1 shows a sample program in assembly language along with the
assembled machine code. In many cases, especially for a multiprogramming system, the
user does not know where the program will be loaded for execution. The assembler can
be directed to assemble a program into relocatable code. In this situation, the assembler
assumes the beginning address of the program to be zero and assigns each instruction an
address that is relative to the program origin. The relative address of each instruction and
the third column gives the machine code. When the program is loaded into memory for
execution, the relative addresses that have been referenced as operands in the program
must be converted to physical or absolute addresses.
Consider that the sample program is to be loaded into memory starting at location
002000 for execution. Now, the symbols ARRAY and SIZE correspond to actual
addresses 002000 and 002030, respectively. Therefore, the immediate operand
#ARRAY in the instruction and the operand address SIZE in the MOVEM instruction
must be adjusted accordingly from the machine code given in Fig. 3-1. Among other
things, a linker performs this relocation operation as follows. [1]
21
1 000000 SECTION 0
2 000000 ARRAY DS.L 12
3 000030 000C SIZE DC.W 12
4 0000 0002 CONST EQU 2
5 000032 227C 0000 0000 START MOVEA.L #ARRAY,A1
6 000038 3238 0030 MOVE.W SIZE,D1
7 00003C 5341 SUBQ.W #1,Dl
8 00003E 4282 CLR.L D2
9 000040 143C 0002 MOVE.B #CONST,D2
10 000044 22C2 LOOP MOVE.L D2,(Al)+
11 000046 D482 ADD.L D2,D2
12 000048 51C9 FFFA DBF D1,LOOP
13 00004C 4E72 2000 STOP #$2000
14 END START
The result is given in Figure 3.2 along with a duplicate of the source code for
comparison. The figure also shows the correct machine code if the program is to be
loaded starting at location 032500 for execution. A symbol such as ARRAY and SIZE,
whose associated value (not the content) is relative to the program origin, is called
relocatable. On the other hand, the operand #CONST represents a fixed value 2, which is
not dependent on the location of the program. Such a symbol, whose value will not
change when the program is relocated, is called absolute. For this reason, perhaps a more
appropriate name for absolute addressing mode is direct memory addressing mode.
22
For a simple system, a user may have control over where to load a program for
execution. In this case the assembler can be directed to assemble the program with its
first instruction starting at a given address. The resulting machine code is called absolute
code; it will execute properly if and only if it is loaded into memory starting at the same
address as specified. Therefore, an absolute code is inflexible as far as memory
allocation is concerned but requires no relocation.
The label field is optional. When present, it is a user defined symbol representing
the address associated with the instruction. This address can then be referenced
symbolically by other instructions in the program. Since a label identifies a particular
statement, the same symbol may not appear in more than one label field. A label, which
may have up to eight alphanumeric characters, must begin in column I with a letter and
be terminated by a space. The comment field is also optional. If present, it begins with a
space which separates the operand and comment fields. If column I of a statement line is
an asterisk *, the entire line is treated as a comment. Comments will be ignored by the
assembler and will not affect program execution. However, they will be shown in the
assembly listing, making the program more readable.
The operator field may contain a mnemonic code for an MC68000 instruction, an
assembler directive also known as a pseudo instruction, or a macro call. For those
instructions that can handle more than one operand size, a postfix is required to specify
the operation size. If a postfix is not given in the operator field, the assembler assumes
the size option to be word. [1]
The ORG (origin) directive sets the program origin. The location counter to the
value evaluated from the operand expression. The statement following the ORG
directive will be assigned the address as specified in the operand field. The machine
code is generated with all addresses being assigned absolute values. Therefore, the
program will execute properly as long as the machine code is loaded into memory
starting from the same location, as specified in the ORG statement. For a simple system,
this absolute programming is typical because no link is required. It is possible for a
program to have more than one ORG directive in order to load a program into several
separate
The MC68000 has a total of 56 instructions and provides nine data transfer
instructions. The instructions in this group are used to load data into a data register or
memory location, to load an address into an address register, and to move status to or
from the status register. Also included in the group are instructions to transfer data to or
from multiple registers.
25
CHAPTER 4
4.1 Introduction
The Flight 68K is designed to provide the perfect introduction to the world of
16/32 bit microprocessors by way of the very popular Motorola MC68000. The Flight
68K is of simple and efficient design and very easy to use. It will enable the newcomer
to the 68000 to quickly get to grips with the subject, leading him along in a clear and
precise manner.
The Flight 68K has been carefully designed to ensure that as the user’s
confidence grows and his applications become more demanding and sophisticated, the
Flight 68K, which includes two serial ports and several 8 bit digital I/0 ports, can grow
still further and expand with him. This is ensured by the on board memory expansion
capabilities and the external expansion bus.
26
4.2 Hardware
The Flight 68K is based around the full 16 bit bus version of the 68000 and
contains two devices from the 68000 peripheral families.
27
Memory consists of three pairs of sockets (byte wide memories must be used in
pairs because of the 16-bit data bus). One pair is for EPROM’s which contain the
monitor and assembler/disassembles firmware, (for turnkey applications these could be
replaced by the user's application firmware).
Another pair of sockets is for RAM. The Flight 68K is supplied with two 8k
RAM's giving a total of l6k bytes. The RAM may be expanded to 256k bytes by using
larger devices. The RAM can be used for data storage or programs. The bottom 1k bytes
are used by the monitor firmware, leaving 15k bytes (255k bytes using larger devices)
free for the user. The third pair of memory sockets is spare and can accept various types
of memory, EPROM or RAM, expanding the total system RAM up to 512K bytes. [2]
The power requirements of the Flight 68K are simply an unregulated 9 volt DC
supply capable of delivering 700mA. The various voltages required by the system are
derived from this on the card.
4.3 Firmware
A 64k byte firmware package is provided with the Flight 68K making the board
into a 'mini' development system. It comprises comprehensive monitor, line by line
assembler and disassemble. Demonstration programs for use with the Flight Multi
Applications Board, and test programs to ensure the board is fully functional.
The monitor program provided with the Flight 68K has been made as simple as
possible to use. Each of the 53 different commands available is invoked by a simple two
letter code, no further information has to be provided on the command invocation line.
The monitor is user friendly and easy to use, and does not require many hours of
learning before constructive use of the board can begin.
The occasional user will benefit from the 'help' command which simply lists
each of the commands along with a brief description. In most cases no further reference
to this manual will be required, once the detailed description of the commands has been
studied.
The line by line assembler will be invaluable to the user with just the Flight 68K
and a PC/terminal and no host development system, it accepts 68000
assembler language instructions and assembles them a line at a time, making program
entry simple and quick. For demonstrations and test programs it will even be found
faster and more convenient than using a host computer will full cross software facilities.
29
The heart of the Flight 68K is the Motorola MC68000 Central Processing
Unit. Block Diagram of the Flight 68K is show in Figure 4.2. This unit has a 16
bit data bus and a 24 bit address bus which is capable of accessing a linear
address space of 16 megabytes. It is driven by a 10 MHz clock generated by a
CMOS oscillator. [2]
The FLIGHT-68K is fitted with two 27256 32k byte EPROM's which
contain the 64k byte monitor firmware. These sockets can accept 27256 (32k)
and 27512 (64k) EPROM's if the appropriate link is made on LK5. [2]
These two sockets are blank when the Flight 68K is delivered and are for
the user to expand the memory as desired. These sockets will accept static RAM.
Link LK7 must be set to accommodate the particular size of memory it is desired
to use. [2]
31
This, like the 68230, is another member of the 68000 peripherals family.
It provides two serial interfaces, which are used by the monitor firmware for the
two serial interfaces of the Flight 68K, Port A (P2) and Port B (P3).
PORT A
RS232
Interface
Auxiliary I/O
Connector
Auxiliary
RAM 16K Bytes
(upto 256K Bytes)
Expansion
Connector
Power Supplies
The Applications Board may also be used with the BBC Micro using a
special cable, and can be interfaced to any IBM compatible PC via a Flight 48
line I/O board. Flight 68k Application Board is show in Figure 4.3.
The board allows digital Input and Output through the PI/T (Parallel
Interface/Timer 68230) device. The PI/T has 3 ports (port A and port B, C), which the
port can be programmed as input or output. The Flight Application Board uses port A as
input and port B as output. [3]
Declace that the port A as input and the port B as the output. Declare the
PI/T is show in Table 4.2
MOVE.B #$80,PACR
MOVE.B #$00,PADDR ; SET PORT A AS INPUT
MOVE.B #$80,PBCR
MOVE.B #$FF,PBDDR ; SET PORT B AS OUTPUT
CHAPTER 5
5.1 Theory
Programming The Flight 68K Board and The Flight Application Board
use four main equipment. The equipment is Flight 68K Microprocessor Board,
Flight 68000-MKII Training System User Manual, Flight 68K Application Board
and Microelectronic Application Module User Manual.
5.1.3 I/0 Theory and Application using Flight 68000 Application Board
The board allows digital Input and Output through the PI/T (Parallel
Interface/Timer 68230) device. The PI/T has 3 ports (port A and port B, C),
which the port can be programmed as input or output. The Flight Application
Board uses port A as input and port B as output. A 40 channel cable is used for
the connection between the PI/T on the Flight Board and the Flight Application
Board. Using SW2, port A can be selected to be connected to the switch or the
A/D. Using SW4 Port B can be selected to be connected to the heater, DAC and
DC Motor. The 8-bit LED is always connected to port B. Refer to the
Microelectronic Application Module User Manual for the complete information.
5.1.4 Function of the select Switches (SW2, SW3 and SW4) on the
Application Board:
PORT A: Input
Output Port B
Motor #Bit
Movement
7 6 5 4 3 2 1 0
Spins Forward 1 0 x x x x x x
Spins Backward 0 1 x x x x x x
Stop the Motor 0 0 x x x x x x
e) Heater (R12):
To control the HEATER (R120 by software, Set SW2 pin 2 to
motor and SW4 pin3 to - HEAT. Data sent to port B will control
the Heater. The heater function is show in Table 5.2.
7 6 5 4 3 2 1 0
On Heater x x 1 x x x x x
Off Heater x x 0 X X X X X
c. Make sure that the directory is by default is C:\flt68k. If not, change the
directory using the command cd\flt68k as show in Figure 5.2 after the
command prompt.
Example C: \FLT68K\ >edit a: progl.asm if you are using a floppy disk Example
C:\FLT68K\>edit e: progl.asm if you are using a removable thumb disk which is
at drive E.[2]
41
d. Enter "DIR <drive letter>: \PROG1. *" command to check all the files that
has been created after a successful cross-assembling.
Upload the successfully cross assembled binary code (. BIN S-Format file) into
the Flight 68000 System User Memory.
Print (or copy) the display on the HYPERTERMINAL window, for the steps
taken to upload
But before you can upload any program, you must have a connection between the
PC standard input/output (keyboard/screen) with the Flight 68K system, software
and hardware wise. [3]
b. Connect the serial cable (straight connections cable) between the LK2
connector on the Flight 68K Board and the COM port on the PC.
II. Interacting with the Flight 68K system from the PC (software wise).
a. Push the reset button on the once Flight 68K board and press the
ENTER button on the keyboard of the IBM PC 3 times. Make sure that
the HYPERTERMINAL is the active window.
Note: Repeat this step anytime you want to start over any new beginning of Flight
68K command prompt. The User RAM memory content will not be erased.
memory. The default base memory for upload data is $400400. Entering
the offset will allow you to set the base address other than the default
address.
b. Send the PROG.BIN file from the Hyper Terminal to the Flight 68000
memory by choosing Transfer/Send Text File in the Hyper Terminal
Environment as show in Figure 5.4. Wait until the "Load Complete"
appears that indicate the upload process is complete.
CHAPTER 6
6.0 Introduction
The simplest control functions, are to read the state of a switch (ON or
OFF), and to output a signal to turn on a light (LED). In this chapter we learn to
read the state of the 8 bit DIL Switch (SWI) to be found in the 'OUTPUT
SWITCHES' section and to output data to the 8 colored LED's in the 'LED
OUTPUT' section. The experiment 1 flowchart is show in Figure 6.1
Initialize
Read Switches
Output to
LEDs
The DIL switches it is possible to examine the state of the 8 switches, and
make decisions based on the switch pattern, the outcome of the decision can be
indicated by turning on an appropriate LED.
Assume switch bit 0 and switch bit 7 represent two safety interlock
switches on a large mechanical press, only when both these switches are operated
(i.e. safety guards in place) can the press be enabled (indicated by the LSB Green
LED). Disable the press as soon as either switch is broken and indicate by
lighting the MSB red LED. The experiment 2 flowchart is show in Figure 6.2
Initialize
Disable Press
Read Safety Sw
Enable
Both Process
Set?
Using a set of SIN tables for data, output a sine wave in 10 degree steps,
observes the analogue output (at P2 Out) with an oscilloscope and measure its
frequency. The experiment 3 flowchart is show in Figure 6.3.
Initialize
Increment pntr
All
and byte count
done
MOTOR CONTROL
A motor can be controlled simply i.e. ON or OFF, when it will either stop
or run at its maximum speed. The experiment 4 flowchart is show in Figure 6.4.
Initialize
Forward
Delay Stop
Reverse
TEMPERATURE CONTROL
This program trys bit by bit from zero, and is known as Successive
Approximation. The slowly ascending values can be seen on the LED display,
also this value is represented on the Bargraph if the Bargraph is set 'ON'. The
experiment 6 flowchart is show in Figure 6.5.
51
Initialize
D/A = 0
Compare with
analogue input
Display
FF >
value
Increment D/A
BARGRAPH
TIME SEQUENCES
It is often necessary to control how long certain actions last, this can be
achieved using software delays, or more accurately by the use of a timer. The
need to time actions is no better illustrated than by Traffic Lights.
The LED's on the application board are nicely arranged in two groups of
4, being Red, Yellow, Green, plus a further Yellow (ideal for a pedestrian
crossing). Using these two sets of four lights we can easily simulate the traffic
lights at a busy cross roads, one set representing the main road, the other set the
minor road.
53
TIME SEQUENCES
Initialize
Set Table Base
No. of Entries
Table Data
To LED’s
Increment table
pointer
The LDR use to measure ambient light and the LED's to represent the
number of lights turned on. Assume an input value of 16 = I unit of light. Vary
the light falling on the LDR. Also set SW3 to VOLTS and notice how the LED's
vary with variation of VR6. The experiment 10 flowchart is show in Figure 6.7.
Initialize
ADC input
DO
=0
Divide D0/D1
Output value
from table
to LED’s
Add D0 to ptr
CHAPTER 7
7.1 Conclusion
Overall, the project of this project that Built an Experiment Module for
microprocessor is reached and full fills the target. All the experiments paper that has
been done is coming from the programming that have done successfully. This project
also has error and weakness while preparing the complete experiments module. Some of
the weakness that is:
• There are less of quality in experiments module such as the figure and
flow charts
56
7.2 Suggestions
• Show the important of using the Flight 68k system as a teaching material
of microprocessor because of it effective and help the students to
understand about microprocessor.
CHAPTER 8
E-LEARNING PLATFORM
Educations throughout the world, whether in rural or urban area, increasingly are
considering developing e-learning techniques as part of their academic programs. These
will be the way to conquer the space between lecturers and students. Conquering space
and time, a daunting venture in the past, is becoming more commonplace as computer,
communication and e-learning technologies are being used to bring learning virtually to
any place on earth and at any time.
With sufficient access and support, lecturers will be able to help their students
comprehend difficult to understand concepts in the microprocessor. The lecturers can
provide the students with access to information and resources in the platform and meet
their student's individual needs. If we take advantage of the opportunities presented to
us, technology will enhance learning and improve student achievement for all the
students. [7]
E-learning is a term that has been widely used for the past several years. As all
inclusive term, e-learning has served well the physical separation and synchronous
learning network of teaching and learning (as shown in Figure 8.1). However in recent
years the term has been popular particularly in the World Wide Web. While used
interchangeably, e-learning puts the emphasis on the learner. Indeed the concept has
been popular for all forms of education, distance or otherwise. [7]
59
• The quasi separation of teacher and learner throughout the period of the
learning process.
• The influence of an educational organization for the planning of courses
of study and preparation of materials, and for providing academic and
students support services.
• The use of technology and media (print or computer) to carry the content
of the course and to provide mechanism for interaction.
• The provision of two communication and interaction.
60
Using electronic media for learning and teaching is widespread. E-learning offers
opportunities for lecturers to convey material in a variety of ways and ultimately on
'anytime, anyplace' basis. E-learning materials can range from the simple act of putting
lecture notes on line to simulations of real life. This means that distance learning (both
off and on campus) is a realistic possibility, with students able to take part in class
discussions via email, and at the same time being able to remotely access materials and
information. These materials do not need to be static web pages, as technologies such as
broadband improve audio and video may be made available on a faculty Intranet
allowing students to review material already covered, or prepare for lectures and
tutorials. For example, engineering students may have grouses regarding the high
voltage technology subject, and they can view the visual aids and read notes at the their
own pace and at times which suit them. [7]
Online learning can be beneficial for students with disabilities. For example, a
student unable to attend lectures as a result of a disability may be able to participate via
remote learning. Another example may be in the case of a student with a hearing
impairment who finds it difficult to lip-read and keep up in lectures. The student could
download the lecturer's notes and Macromedia. Flash visual aids (or any other relevant
software) and review the subjects covered.
Thus, teaching methods must be held to high standards, whether the classroom is real or
virtual. [7] Web based training is in its infancy, but we know what's needed to make
online learning effective:
Web based learning relies on using the Internet as the primary communications
vehicle for collecting and disseminating instructional resources. Computer workstations
designed to store billions of bytes of information on networks distributed throughout the
world provide the materials, lecturer materials and blackboard illustrations that is
developed in typical course of instructions. These workstations also provide the
communications vehicles through which students and teachers engage in ongoing
discussions on instructional topics. [8]
64
COURSE
LECTURER INTERNET MATERIALS
STUDENT
INTERNET INTERNET
OTHER
RESOURCES
Figure 8.3 illustrates the main components of the web-based learning, which e-
learning platform for power students. In web based applications, students using a
variety of computer configurations.
65
CHAPTER 9
Lets use this opportunity to focus on more than wires and screens.
Lets send a message to the country that educators are looking at the delivery of the
education from the perspective of how content will impact students. The internet is
Research has revealed that there are numerous opportunities to enhance learning
through the use of technology, The National Academy of Science report on the new
science of learning, How People Learn: Brain, Mind, Experience, and School, finds that
new and emerging technologies have the potential to enhance learning and the
development of new knowledge in many exciting ways. New and emerging technologies
also offer opportunities to individualize instruction and assessment in promising ways
for all students. [7]
66
The Internet, more so than any technology that has preceded it, provides
students with access to a vast array of information and resources far greater than
could ever be provided within the four walls of a classroom. Creative uses of the
Internet allow for the establishment of "virtual" communities of learners,
collectives of lecturers and students from literally around the world assembling
to learn from each other and to tackle real world problems
69
There are several important features in this e-learning platform to help the
engineering students to enhance their understanding in the microprocessor. To achieve
this objective several important features have been developed in this e-learning platform.
These features are important to achieve the vision of e-learning in this platform. The
following explains the important features:
i. Reference Module
ii. Programming
iii. Visual
There are several tools and methods used in developing this platform. These
tools will be explained the following chapters. The tools are:
i. Macromedia Dreamweaver
ii. Macromedia Flash
iii. Adobe Acrobat
iv. Swift 3D
V. Adobe Photoshop
70
CHAPTER 10
As seen in the earlier chapter, referring to the planning model for e-learning, the
important part besides criteria such as goals, evaluation and application, it is the
hardware and software. The software is a very important part to make sure that the goal
of our application is achieved. In this e-learning project I have used Macromedia
Dreamweaver and easyPhP as the foundation of the platform.
71
10.1 EasyPHP
EasyPHP is a combination of common free web server software put together into
an easy to install package. Normally to download and install each separate component
can take a long time, plus is a headache to configure them to work together properly.
Figure 10.1 show about how to run the ‘easyphp setup.exe’ file.
In just one point release, EasyPHP has made many great changes to make using
the package easier. Improved installation, localization, and user interface. The PHP
extension manager works much better. Server configuration files are now kept in a
single easy to find location. This install guide is becoming less of a necessity.
When EasyPHP starts up as show in Figure 10.2, the icon appears in your
system tray. Double click on this icon to open up the EasyPHP status screen, or
right click for more options.
Right clicking on the EasyPHP taskbar icon brings up the shortcut menu
as show in Figure 10.3. This is how to start, stop, and configure EasyPHP and the
servers. [9]
This controls which errors PHP cares about, and whether they are
shown to the screen or not. Figure 10.4 show the error reporting.
This tells PHP whether or not to set form, url, and cookie
variables as local variables. Prior to PHP this was always done, however
it isn't good for security so they changed it. Figure 10.5 show the register
global.
74
The status screen is fairly straight forward with only a few buttons
and options. [9] Easyphp status program is show in Figure 10.6
Although much of the World Wide Web's glitz comes from multimedia
elements such as images and sounds this platform is primarily a text-based
medium. Dreamweaver recognizes this and makes the text cursor at the default
tool. To ad text, just click in the Dreamweaver's main workplace, the document
window and start typing.
78
Dreamweaver has improved for integration with the graphics engine, Swift 3D.
Now, images derived from the Flash and Swift 3D is identified as such, both in the
Property Inspector and in the Assets panel. [11]
CHAPTER 11
RESULT
To achieve the vision of e-learning, several elements have been developed in this
platform. This e-learning platform has been developed in user friendly interface with
enhanced Graphical User Interface (GUI). In this chapter, the user manual for the e-
learning platform will be explained.
All the main pages in the platform will be explained clearly in the following
segments. The flowchart on titles and the subtitles is showing in Figure 11.1.Refer the
Appendix C for all e-learning has been done. The main pages of the platform are:
i. Home
ii. Introduction
iii. Organization
iv. Lab Rule
v. Activities
vi. Facilities
vii. User Manual
viii. Experiment
ix. Schedule
x. Division Group
83
Home Introduction Organization Lab Facilities Activities User Experiment Schedule Division
Rule Manual Group
CHAPTER 12
CONCLUSION
12.1 Summary
Through this e-learning platform is it also very time and cost effective. To do
corrections, alteration and addition to the lab sheet or the information, the lecturer can
easily do it in the e-learning platform. The technician does not have to print it in this, the
pieces of papers and give to the students. Students just download the lab sheet or any
information about the laboratory from the e-learning. Through this e-learning platform
85
the students can e-mail immediately to the lecturer or technician if their have a problem.
By doing this the students can save time and continue with their work.
This e-learning platform would provide an infrastructure where the students and
lecturers can share knowledge, thoughts and ideas and most importantly share their
knowledge. By enhancing the level of communication, the platform will be able to help
the students to gain more knowledge. With the information that is gained from the
e-learning platform, the students will not face any difficulties during the lab session.
What is a system without some problems? To create a system that is stable, the
job of the developer is to make his/her life harder in order to make the life of the user
easier. E-learning Platform for Microprocessor Laboratory' was developed in few
months and among the problems that I accounted was:
Creating the visual and image was also tedious, because I had to understand the
advanced processes involved first before creating the visual and image. To create
effective visual and image I used Macromedia Flash, Swift 3D and Adobe Photoshop
which is presented with animation. I suffered a great deal of time developing the visual
and in the end it worked out for the best and the visual and image play in the
Macromedia Dreamweaver platform flawlessly
12.3 Benefits
Through the e-learning platform the students will be able to collaborate with the
lecturer or technician to enhance their understanding in the Microprocessor. Enhancing
the student's understanding in this field is able enhance the student's performance in this
particular field. Increased in understanding among the students will be able to create a
quality and qualified graduate in the Microprocessor. Increased level of understanding
and education will make the students able to convey the knowledge during the working
life to the technological needs. With the knowledge in the students, every lecturer aim is
achieved. The learning platform is a great appeal to the world of learners where
education sis the most important element to create future leaders.
To use this e-learning platform, the students can be at any remote area, and all
the students needs is a computer with Internet connection, which is an anywhere and
anytime basis. The whole learning process is not constrained to their individual
locations, but they can be at any remote area and still use the system.
• Teleconference-A real time system where the students can see the
experiment by using the real time system with the help of audio and
video.
88
REFERENCES
[2] R.F. Coates, updated by Eur Ing. J.H.R. Selby C. M.I.E.E (1997). “The Flight
68K MKII User Manual”. Third Edition, Flight Electronics International
Ltd.
[9] Muhamad Bin Kasan, Nur Syuhadah Bt. Rusni. “Asas Pembangunan Laman
Web dan Laman Web Lanjutan(DINAMIK)”. Space UTM dan Advanced
IT Institute(AITI), Fakulti Sains Komputer dan Sistem Maklumat.
[11] Sham Bhangal, Amanda Farr, Patrick Rey (2001),”Foundation Flash 5”.
Second Edition, Friends of Ed Publications
MICROPROCESSOR LABORATORY
92
OBJECTIVE:
2. Learn and develop skills on how to program and test the result on the
Application Board.
EQUIPMENT:
INTRUCTION:
One group will do one of the ten questions which will be assigned by the technician of
the Microprocessor laboratory. Each group is required to confirm with the technician the
questions that will be assigned (and will be recorded).
The group must make the initiative to find the solution of the question give by referring
to the manuals available in the Microprocessor laboratory. Student are free to refer to the
"Application Board Experiment manual" and modify programs from the manual to
accomplish the objective of completing the Laboratory assignment but students are not
allowed to copy programs from other groups. Each group will be interviewed to
determine the originality of the program and final marks will be based on the outcome of
the interview.
In order to program the PI/T, the following address must be used for each respective
register: Declare this EQUATES of your program. Please refer to the Flight 68000-MKII
Training System User Manual
PREREQUISITES
2. You will have to use your creativity with the theory learned in the SEE 3223
course, and from the above manuals.
94
GENERAL QUESTION
The FLT-68K board
2) Give the chip number of the device which is used to store the monitor program.
4) Give the chip number of the device which is used for Stack Area.
7) Give the chip number of the device which is used for Asynchronous 1/0.
10) What is the command which we can use to get the list all available command in the
monitor program together with summary of the command?
12) Determine the memory space on the which you can upload the program assuming
you are going to reserve 1024 byte for the stack?
13) What problem would you expect if you upload program in the memory area from
$4040OOh-$40FFFF?
14) By default when you use the LT command, what is the default starting address of the
memory for the file upload?
15) When you use the LT command, if you enter 100 as the offset, what is the starting
address of the memory for the file upload?
20) Give the reason why you need upload the 68000 binary file to the FLT-68K board in
order to execute the program?
21) Why don't we just build the program on the program on the FLT-68k board?
23) The FLT-68K board receives command and display output via a dumb terminal.
How do you connect the dumb terminal to the FLT68K board?
Question 1
The simplest control functions, are to read the state of a switch (ON or OFF), and
to output a signal to turn on a light (LED). In this chapter we learn to read the state of
the 8 bit DIL Switch (SWI) to be found in the 'OUTPUT SWITCHES' section and to
output data to the 8 colored LED's in the 'LED OUTPUT' section.
Write a program, how would you alter the program, so that when a switch is set, the
respective LED goes OFF?
Question 2
Assume switch bit 0 and switch bit 7 represent two safety interlock switches on a
large mechanical press, only when both these switches are operated (i.e. safety guards in
place) can the press be enabled (indicated by the LSB Green LED). Disable the press as
soon as either switch is broken and indicate by lighting the MSB red LED.
You can only exit from this program by pressing the reset switch on the FLT-68K, Write
a program, how could you make use of one of the other bits on the DIL switch to exit
back to the prompt F>?
97
Question 3
To convert a digital output from the computer into an Analogue value, for instance you
could generate a series of tones by changing the digital output values in such a way that
the analogue signal represented a sine wave. Using a set of SIN tables for data, output a
sine wave in 10 degree steps, observes the analogue output (at P2 Out) with an
oscilloscope and measure its frequency.
Write a program, how could you vary the frequency in a fairly crude fashion?
Question 4
Motor Forward/Reverse
A motor can be controlled simply i.e. ON or OFF, when it will either stop or run
at its maximum speed.
Write your own routine for a 5 secs Fwd/Rev, then 2 secs pause?
98
Question 5
The heater on the Applications Board by outputting Bit 5 on Port B, as the heater
element (R12) heats up, so the voltage output of the temperature sensor touching it will
increase. If we select this output with the analogue selector switch, then by means of an
A/D Converter (see Chap X) we have a direct measure of temperature. The temperature
sensor chosen has an output of 10 mV per degree K.
Ensure HEAT (SW4) is turned off until a temperature control program is running, to
avoid the heater resistor getting very hot.
Question 6
This program trys bit by bit from zero, and is known as Successive
Approximation. The slowly ascending values can be seen on the LED display, also this
value is represented on the Bargraph if the Bargraph is set 'ON'.
Write a program, what effect does this have on the total conversion time?
99
Question 7
The bargraph (U10) is essentially a bank of 10 LED's, it is driven by U11 (LM3914) this
device samples a voltage input signal, as the signal exceeds certain preset levels it will
output a signal to light one of the LED's on the Bargraph, the higher the voltage, the
more LED's will be turned on.
Write a program as before to read the DIL switches, and output digital values to the
LED's and DAC. The Analogue output of the DAC will be represented by lighting up
the Bargraph. Plot a graph of switch digital value against number of LED's alight on die
Bargraph. What is the average accuracy of die bargraph segment to segment?
Question 8
Time Delay
It is often necessary to control how long certain actions last, this can be achieved using
software delays, or more accurately by the use of a timer. The need to time actions is no
better illustrated than by Traffic Lights.
The LED's on the application board are nicely arranged in two groups of 4, being Red,
Yellow, Green, plus a further Yellow (ideal for a pedestrian crossing). Using these two
sets of four lights we can easily simulate the traffic lights at a busy cross roads, one set
representing the main road, the other set the minor road.
Explain how you could measure a delay, using the applications board, and a stop watch
and to find suitable values for 10mS, and 100mS?
100
Question 9
For the traffic lights, first you must determine the sequence of lights, and how long each
sequence is required. A typical busy junction might be:-
The bit value represents the output pattern to turn on the required LED's.
The easy way to carry out a repetitive task is to set all the data up in a table, and advance
through the data step by step, until the end of the table is reached, when it can be
repeated. The table can contain both the required LED pattern, and the time that pattern
is to be maintained.
Using the other yellow LED's (bits 0 and 4) to represent pedestrian crossings (LED on,
when it is safe to cross, and flash during last 5 seconds), generate a new program to
include a pedestrian facility?
101
Question 10
The LDR use to measure ambient light and the LED's to represent the number of lights
turned on. Assume an input value of 16 = I unit of light. Vary the light falling on the
LDR. Also set SW3 to VOLTS and notice how the LED's vary with variation of VR6.
SW2 MOTOR - ON, SW3 set to VOLTS, Follow the ideas at the program 23, use the
setting of VR6 to control rotational speed of the motor (hint vary mark space ratio of
motor drive signal). Try for ratios of 10/1 to 10/10?
102
APPENDIX B: ANSWER
GENERAL QUESTION
2) Give the chip number of the device which is used to store the monitor program.
Answer: 27256
3) What is the size of the ROM available in the FLT-68K board? Answer: 64 Kbytes
4) Give the chip number of the device which is used for Stack Area. Answer: 64256
5) What is the size of the RAM available in the FLT-68K board? Answer: 64 Kbytes
7) Give the chip number of the device which is used for Asynchronous 1/0.
Answer: MC68681
8) Give the chip number of the device Parallel 1/0. Answer: MC68230
10) What is the command which we can use to get the list all available command in the
monitor program together with summary of the command? Answer: HE
11) What do you understand by the word 'upload program'? Answer: To load a
program into a memory space in a host computer from a terminal.
12) Determine the memory space on the which you can upload the program assuming
you are going to reserve 1024 byte for the stack? Answer: $400400 to $40FBFF
13) What problem would you expect if you upload program in the memory area from
$4040OOh-$40FFFF? Answer: There is no space for STACK area
14) By default when you use the LT command, what is the default starting address of the
memory for the file upload? Answer: $400400
15) When you use the LT command, if you enter 100 as the offset, what is the starting
address of the memory for the file upload? Answer: $400500
Question 1
ORG $400400
Question 2
ORG $400400
Question 3
ORG $400400
DC.B 85 * 200
DC.B 64 * 210
DC.B 46 * 220
DC.B 31 * 230
DC.B 17 * 240
DC.B 8 * 250
DC.B 3 * 260
DC.B 0 * 270 (0 -1)
DC.B 3 * 280
DC.B 8 * 290
DC.B 17 * 300
DC.B 31 * 310
DC.B 46 * 320
DC.B 64 * 330
DC.B 85 * 340
DC.B 108 * 350
END
This will produce a sine wave output with a frequency of approx 7.7 KHz
Now by adding some NOP instructions into the program loop will slow it down and hence
reduce the frequency. The addition of 3 NOP's will reduce the frequency to approx. 5.8 KHz
A delay loop could be used to slow down the signal even more. No appreciable increase in
speed can be achieved unless die table is reduced to one point every 20 degrees, and the
resultant degradation of the signal is acceptable.
108
Question 4
ORG $400400
Question 5
ORG $400400
Question 6
ORG $400400
Question 7
ORG $400400
Question 8
ORG $400400
Values off approx 55180 for 100mS and 5518 for l0mS should be found.
113
Question 9
ORG $400400
Question 10
ORG $400400
END
SW2 MOTOR - ON
SW3 set to VOLTS
116