Download as pdf or txt
Download as pdf or txt
You are on page 1of 10

Student Workbook EE-07310: Microprocessor based Embedded Systems

LABORATORY SESSION # 6
6 LED Train using Software Delay [Open Ended Lab]

6.1 EQUIPMENT & MATERIAL REQUIRED

- __________________________________
- __________________________________
- __________________________________
- __________________________________
- __________________________________
- __________________________________
- __________________________________
- __________________________________
- __________________________________
- __________________________________
- __________________________________

6.2 PRE-LAB PREPARATIONS

_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________

6.3 PROCEDURE

_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________

46
Student Workbook EE-07310: Microprocessor based Embedded Systems

_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________

6.4 OBSERVATION & RESULTS

- Complete ‘main.c’ code

47
Student Workbook EE-07310: Microprocessor based Embedded Systems

48
Student Workbook EE-07310: Microprocessor based Embedded Systems

Figure 6.1: Complete code from Keil µVision

- Picture of hardware without connecting with the discovery board

49
Student Workbook EE-07310: Microprocessor based Embedded Systems

Figure 6.2: Hardware setup without connecting the discovering board

- Hardware pictures after connecting with STM32 discovery board

50
Student Workbook EE-07310: Microprocessor based Embedded Systems

Figure 6.3: Hardware setup after connecting the discovering board

- Successful creation of HEX file

Figure 6.4: 0 Errors, 0 Warnings

- Screenshots of debugging session

Before Start

51
Student Workbook EE-07310: Microprocessor based Embedded Systems

Figure 6.5: Debugging session

- Hardware pictures with final results

Figure 6.6: Complete hardware setup in working mode

52
Student Workbook EE-07310: Microprocessor based Embedded Systems

6.5 LEARNING OUTCOMES

What do you learn from this lab?


_____________________________________________________________________
_____________________________________________________________________
____________________________________________________________________

6.6 EXERCISE QUESTIONS


- Modify the program to generate different delays (100ms, 500ms, 1s) among
the toggling of LEDs
Calculations for value of variable ‘i’ for
i. 100ms

ii. 500ms

iii. 1s

Figure 6.7: Modified code block for i. 100ms, ii. 500ms, and iii. 1

i. ii. iii.

Figure 6.8: Oscilloscope screenshots for i. 100ms, ii. 500ms, and iii. 1s

53
Student Workbook EE-07310: Microprocessor based Embedded Systems

This open–ended lab also qualifies as a Complex Engineering Problem as it meets the
criterion 1 and criterion 3.

S# Attribute Complex Problems = 1 & (2 | 3 | 4 | 5 | 6 | 7 | 8 | 9)

Engineering problems which cannot be resolved


1 Preamble without in-depth engineering knowledge, and have ☒
some or all of the characteristics listed below:

Range of conflicting Involve wide-ranging or conflicting technical,


2 ☐
requirements engineering and other issues.

Have no obvious solution and require abstract


3 Depth of analysis required thinking, originality in analysis to formulate suitable ☒
models.

Requires research-based knowledge much of which is


Depth of knowledge at, or informed by, the forefront of the professional
4 ☐
required discipline and which allows a fundamentals-based,
first principles analytical approach.

5 Familiarity of issues Involve infrequently encountered issues ☐

Are outside problems encompassed by standards and


6 Extent of applicable codes ☐
codes of practice for professional engineering.

Extent of stakeholder
Involve diverse groups of stakeholders with widely
7 involvement and level of ☐
varying needs.
conflicting requirements

8 Consequences Have significant consequences in a range of contexts. ☐

Are high level problems including many component


9 Interdependence ☐
parts or sub-problems.

54
Student Workbook EE-07310: Microprocessor based Embedded Systems

GENERALIZED LAB RUBRICS


Component with Above Meeting Approaching Below Weight / Score
Used
Taxonomy Expectation (4) Expectation (3) Expectation (2) Expectation (1) 100 (1–4)

Is able to build a Is able to assemble a Is only able to Is not able to


given setup neatly given setup using copy a given assemble a given
and timely using correct hardware setup using setup using
correct hardware components after correct hardware correct hardware
Building
components and / minor revisions components components  30
(Hardware) – P4
or can reorganize /
adapt to new /
special
requirements

Recording Is able to record Is able to record Is only able to Is unable to


Measurements accurate accurate record accurate record accurate

(Hardware / measurements all measurements most measurements on measurements
Software) – C3 the time of the time some occasions

Is able to Is able to Is not able to Is unable to


formulate/develop evaluate/conclude evaluate/conclude comprehend
theories in correctly about correctly about investigation
addition to investigation investigation parameters
Investigation
evaluating/conclu parameters by parameters by
(Hardware / ☐
ding correctly assessing data assessing data
Software) – C5
about
investigation
parameters by
assessing data

Design / Is able to design / Is able to design / Is able to Is unable to


Development of develop the develop the solution partially design / partially design /
Solution solution of a given of a given problem develop the develop the  40
(Hardware / problem and add solution of a solution of a
Software) – C6 features to it given problem given problem

Is adept in the use Is able to use the Is able to use the Is unable to use
of software tool software tool software tool but the software tool
Software Usage
and can access effectively by cannot access all ☐
(Software) – C3
advanced features accessing all the the required
required features features

Is able to Is able to complete a Is able to Is unable to


efficiently given task using partially partially
complete a given required complete a given complete a given
task using programming task task
Programming advanced language constructs
Language programming / methods /
 30
(Software) – C3– language commands
C6 constructs /
methods /
commands and/or
add features to the
original task

55

You might also like