You are on page 1of 10

Student Workbook EE-07310: Microprocessor based Embedded Systems

DEPARTMENT OF ELECTRICAL ENGINEERING

Student Workbook/Manual

EE-07310: Introduction to Embedded Systems

Name JARAR KHAN


Registration # BSEE01153167
Section A
Session BATCH 15

Last Revision: Fall 2018

1
Student Workbook EE-07310: Microprocessor based Embedded Systems

LABORATORY SESSION # 3
3 Configuration of STM32F100xx GPIOs as an Output
3.1 EQUIPMENT & MATERIAL REQUIRED

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

3.2 PRE-LAB PREPARATIONS

_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________

3.3 PROCEDURE

_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________

2
Student Workbook EE-07310: Microprocessor based Embedded Systems

Figure 3.1: Screenshot of the Keil µVision code

_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________

3
Student Workbook EE-07310: Microprocessor based Embedded Systems

4
Student Workbook EE-07310: Microprocessor based Embedded Systems

Figure 3.2: Debug session environment

Figure 3.3: (a) Peripherals selection and (b) Port C peripheral window

_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
____________________________________________________________________

5
Student Workbook EE-07310: Microprocessor based Embedded Systems

3.4 OBSERVATION & RESULTS

- Blinking of LED at PC8 in debugger

Figure 3.5: Pin PC8 blinking

6
Student Workbook EE-07310: Microprocessor based Embedded Systems

- Blinking LED on discovery board

Figure 3.6: PC8 blinking on discovery board

7
Student Workbook EE-07310: Microprocessor based Embedded Systems

- Oscilloscope waveform of PC8

Figure 3.7: PC8 blinking on discovery board

_____________________________________________________________________
_____________________________________________________________________

3.4 LEARNING OUTCOMES

What do you learn from this lab?

_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________

8
Student Workbook EE-07310: Microprocessor based Embedded Systems

3.5 EXERCISE QUESTIONS

- Investigate the outcome of program if the data type of variable ‘i’ in for loop
is changed from ‘int’ to ‘char’.

_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________

- Masking is used in the code. Compare the simple assignment of values to the
register with the masking approach.

_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________

- How can you enable and disable the clock for GPIOA, GPIOB and GPIOC
simultaneously?

_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________

- What is the purpose of ‘#define’ directives at the start of the file?

_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________

9
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
 20
(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 ☐
(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  10
(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 /
 40
(Software) – C3– language commands
C6 constructs /
methods /
commands and/or
add features to the
original task

10

You might also like