MICROCONTROLLER FOR MECHATRONIC SYSTEMS

fiercebunElectronics - Devices

Nov 2, 2013 (4 years and 7 days ago)

70 views

Microcontroller For Mechatronic Systems


EC1407

Page
1

of
5

Version: Draft 1.0

Page
1

of
5

Release 2.0



SINGAPORE POLYTECHNI
C

SCHOOL OF ELECTRICAL

& ELECTRONIC ENGINEE
RING


MICROCONTROLLER FOR
MECHATRONIC SYSTEMS


Course(s):

Diploma in Mechatronics

Year / Stage:

2 FT B

Module Code:

EC1407

Effective Academic Year:

AY0
8
/0
9



Instructional Hours


Lecture (
L):

30

Tutorial (T):

15

Laboratory / Workshop (P):

30

Total:

75

Credit units:

5



Module Aims



The module teaches the basic concepts of microcomputer and the programming and application of
microcontroller. Upon completing the module, students should
be able to use microcontroller to
perform simple control functions of a real world system.



Teaching Methods / Learning Tasks


Instruction will take place through a combination of lectures, tutorials and laboratories. Theoretical
aspects of the course wi
ll be taught weekly through lectures and tutorials which are of 2 hours and 1
hour duration respectively. Laboratory sessions will also be conducted weekly on a 2 hourly basis
and each experiment that the students perform builds on the theoretical concepts

they learned in their

lectures and tutorials.



Means of Assessment


The assessment for this module has the following components:

1.

Laboratory Tests

30
%

2.

Common Test

25
%

3.

Semestral Examination

35
%

Microcontroller For Mechatronic Systems


EC1407

Page
2

of
5

Version: Draft 1.0

Page
2

of
5

Release 2.0


4. General Performance

10%


Recommended

Text


Module booklet titled “Microcontroller Technology”




References


1.

Motorola ,
M68HC11 Reference Manual
,

Motorola Inc, 1991.

2.

Miller, Gene H,
Microcomputer Engineering
,

Prentice Hall, 1993

3.

Kheir, Michael ,
The M68HC11 Microcontroller


Appl
ications in Control Instrumentation and Communication, Prentice Hall, 1997.



Special Requirements (if any)


The prerequisite module is Electronics (EC1403).



Table of Specifications




Topics

Abilities (%)


Total
(%)

K

C

A/HA

A.

Microcomputer Fund
amentals

2

3

0


5

B.

Introduction to Microcontroller

2

3

1

6

C.

Addressing Modes

2

7

0

9

D.


Instruction Set

0

16

0

16

E.

Assembler & Assembler Directives

2

4

0

6

F.

Writing Assembly Language Programs

0

2

18

20

G.*

Parallel Input/Output Ports and

Interfacing

4

6

13

23

H.*

Serial Communication Interface

3

4

6

13

I.

Resets

1

1

0

2


Total

16

46

38

100







Microcontroller For Mechatronic Systems


EC1407

Page
3

of
5

Version: Draft 1.0

Page
3

of
5

Release 2.0


* Values of integrity and team work are emphasised during discussion of design questions.



Notes:

1.

The letters K, C, A/HA in the tabl
e of specifications denote respectively, the Knowledge,
Comprehension, and Application/Higher than Application levels of Bloom's Taxonomy in the cognitive
domain.

2.

In the detailed syllabus which follows:



all objectives should be understood to be prefixed

by the words: "At the end of instruction, the
learner should be able to…"



L: T: P: DLT denotes lecture hours, tutorial hours, practical hours and equivalent directed learning
time respectively.



Detailed Syllabus



Learning Outcomes

L

:

T

:

P

A

M
ICROCOM
PUTER
F
UNDAMENTALS






1

Understand number systems and the structure and operation

of a microcomputer

2

:

2

:


2

1.1

Convert base 2 and base 16 number systems and explain their
arithmetic.






1.2

Explain two’s complement number, signed and unsigned

num扥rs
.






1.3

Describe main elements of a microcomputer system: CPU, Memory,
Input/Output units and the bus system.






1.4

Calculate memory size.






1.5

Describe microcomputer, microprocessor and microcontroller.














B

I
NTRODUCTION
TO
M
ICROCONTROLLER






2

Understand the architecture and instruction execution of
microcontroller

3

:

1

:

3

2.1

Describe the microcontroller as a single chip IC with CPU, memory,
I/O unit and other add
-
on units.






2.2

Explain the programming model.






2.3

Define the memory model and memory map.






2.4

Convert assembly language instructions to opcode and operands for
CPU to execute.






2.5

Explain the procedure of CPU fetching and executing an instruction
from the memory.






2.6

Calcula
te instruction execution time and size.













C

A
DDRESSING
M
ODES






3

Understand different instruction addressing modes.

3

:

1

:

3

3.1

Define address modes.






Microcontroller For Mechatronic Systems


EC1407

Page
4

of
5

Version: Draft 1.0

Page
4

of
5

Release 2.0



Learning Outcomes

L

:

T

:

P

3.2

Explain various addressing modes used with instructions; immediate,
direct, e
xtended, index and relative addressing modes.






3.3

Identify the different sizes and clock cycles of a instruction with
different addressing modes.













D

I
NSTRUCTION
S
ET






4

Understand assembly language instruction.

6

:

3

:

4

4.1

Explain

the functions of data movement instructions, arithmetic
instructions, logic instructions, shift/rotate instructions, data testing
instructions, jump and branch instructions and subroutine instructions.






4.2

Use instructions under different addressing

modes to achieve simple
operations.













E

A
SSEMBLER AND
A
SSEMBLER
D
IRECTIVES






5

Understand the assembler and the functions of assembler

directives.

2

:

2

:


2

5.1

Describe the assembler and its number bases representation.






5.2

Expl
ain the format of an assembly language program in terms of label,
opcode, operand and comment.






5.3

Explain the functions of assembler directives.






5.4

Use assembler directives to manage memory.













F

W
RITING
A
SSEMBLY
L
ANGUAGE
P
ROGRAM
S






6

Write assembly language programs.

5

:

2

:

4

6.1

Explain the use of the flowchart and pseudo language in writing a
structured program.






6.2

Demonstrate the use of count up/down loop, sensing loop
programming for completing a process.






6
.3

Analyse assembly language programs.






6.4

Demonstrate the use of subroutines in a program.






6.5

Describe stack usage during subroutine calls and registers data
preservation.













G

P
ARALLEL
I
NPUT
/O
UTPUT
P
ORTS AND
I
NTERFACING






7

De
sign a system using parallel Input/Output ports and external
devices.

4

:

2

:

3

7.1

Describe the system modes and system connections.






7.2

Describe single
-
chip mode I/O registers of the microcontroller.






7.3

Identify the features of different I/
O ports and explain how some I/O
pins can be configured as input or output pins.






Microcontroller For Mechatronic Systems


EC1407

Page
5

of
5

Version: Draft 1.0

Page
5

of
5

Release 2.0



Learning Outcomes

L

:

T

:

P

7.4

Explain the instructions for reading from input ports and for writing to
output ports.






7.5

Explain the ways of connecting switches and LEDs to a
microcontrolle
r.






7.6

Explain the use of bit instructions in I/O programs.






7.7

Write programs involving reading from switches and control LEDs.






7.8

Explain the ways of connecting 7
-
segment LED displays to a
microcontroller.






7.9

Write programs to d
isplay single digits of display.






7.10

Describe the voltage and current ratings of I/O pins.






7.11

Interface microcontroller to high power load using transistor driver.






7.12*

Design a simple microcontroller system with I/O devices to perfo
rm
control functions.













*

Demonstrate personal integrity and teamwork by producing original
designs













H

S
ERIAL
C
OMMUNICATION
I
NTERFACE
(SCI)






8

Use SCI unit in a microcontroller for data communication.

4

:

1.5

:


1

8.1

Defi
ne serial data format, transmission speed and the RS232 standard.






8.2

Explain the functions and the settings for SCI registers.






8.3

Explain the procedure to program SCI to transmit and to receive data.






8.4*

Design a simple system with mic
rocontroller exchanging data with a
serial device.













*

Demonstrate personal integrity and teamwork by producing original
designs.













I

R
ESETS






9

Understand resets features.

1

:

0.5

:

0

9.1

Describe the reset conditions of regis
ters.






9.2

Describe the reset pin connection.






9.3

Explain the importance of initialising the reset vectors.














Two Laboratory Tests:

0

:

0

:

4


Make
-
up or revision for laboratory:

0

:

0

:

4









Total Running Time:

30

:

15

:

30