0% found this document useful (0 votes)
108 views14 pages

Student Workbook/Manual: EE-07310: Introduction To Embedded Systems

The document is a student workbook for a course on microprocessor-based embedded systems using the STM32F100xx microcontroller. It outlines the learning outcomes and labs covering topics like developing code in Keil IDE, configuring GPIO pins, software delays, timers, PWM, LCD interfacing, serial communication and more. Lab 1 introduces the development environment, equipment needed, and procedures to set up the STM32F100xx trainer and discovery boards, connect them to the PC and configure the ST-Link Utility and Keil IDE. Figures show the board layouts and successful code execution with an LED blink.

Uploaded by

Durraiz Shuaib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
108 views14 pages

Student Workbook/Manual: EE-07310: Introduction To Embedded Systems

The document is a student workbook for a course on microprocessor-based embedded systems using the STM32F100xx microcontroller. It outlines the learning outcomes and labs covering topics like developing code in Keil IDE, configuring GPIO pins, software delays, timers, PWM, LCD interfacing, serial communication and more. Lab 1 introduces the development environment, equipment needed, and procedures to set up the STM32F100xx trainer and discovery boards, connect them to the PC and configure the ST-Link Utility and Keil IDE. Figures show the board layouts and successful code execution with an LED blink.

Uploaded by

Durraiz Shuaib
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Student Workbook EE-07310: Microprocessor based Embedded Systems

DEPARTMENT OF ELECTRICAL ENGINEERING

Student Workbook/Manual

EE-07310: Introduction to Embedded Systems

Name _________________________________
Registration # _________________________________
Section _________________________________ Session
_________________________________

Last Revision: Fall 2018

Student Workbook EE-07310: Microprocessor based Embedded Systems

i
Course Learning Outcomes (Lab CLOs)
CLO # CLO Statement Domain Level PLO Mapping
CLO5 Investigate programs developed in C Cognitive 5 PLO4
language using IDE (Keil) for
simulations and debugging, and
hardware for physical outputs
CLO6 Make a small project incorporating Psychomotor 4 PLO5
different peripherals of STM32F100xx
microcontroller along with hardware
components

PLO # PLO Statement


4. Investigation An ability to investigate complex engineering problems in a
methodical way including literature survey, design and conduct
of experiments, analysis and interpretation of experimental data,
and synthesis of information to derive valid conclusions.
5. Modern tool usage An ability to create, select and apply appropriate techniques,
resources, and modern engineering and IT tools, including
prediction and modeling, to complex engineering activities,
with an understanding of the limitations.

Lab # Lab Title Related PLO


CLO Mapping
Lab 1 Development Environment for STM32F100xx CLO5,6 PLO4
Lab 2 Bare-bone Project for STM32F100xx CLO5,6 PLO4
Lab 3 Configuration of STM32F100xx GPIOs as an Output CLO5,6 PLO4
Lab 4 Implementation of Software Delay CLO5,6 PLO4
Lab 5 Configuration of STM32F100xx GPIOs as an Input CLO5,6 PLO4
Lab 6 LED train using software delay [Open ended lab] CLO5,6 PLO5
Lab 7 Hardware Delay Using STM32F100xx Timers CLO5,6 PLO4
Lab 8 PWM Generation Using STM32F100xx Timer CLO5,6 PLO4
Lab 9 Speed Control of a DC Motor using Variable Duty Cycle CLO5,6 PLO5
PWM [Open Ended Lab]
Lab 10 Interfacing of 16x2 LCD with STM32F100xx CLO5,6 PLO4
Lab 11 Interfacing of 4x4 Matrix Keypad with STM32F100xx CLO5,6 PLO4
Lab 12 Manual Speed Control of a DC Motor using Keypad and CLO5,6 PLO4
LCD with STM32F100xx [Open ended lab]
Lab 13 USART Library for Serial Communication with CLO5,6 PLO4
STM32F100xx
Lab 14 Interfacing of Bluetooth Module with STM32F100xx CLO5,6 PLO4
Lab 15 Analogue to Digital Converter CLO5,6 PLO4

ii
Student Workbook EE-07310: Microprocessor based Embedded Systems

Lab 16 Project Demo and Evaluation CLO5,6 PLO5

Table of Contents
Course Learning Outcomes (Lab CLOs)............................................................................................ ii
Table of Contents .................................................................................................................................. iii
1 Development Environment for STM32F100xx2 Bare-bone Project for STM32F100xx
............................................... Error! Bookmark not defined. ............... Error! Bookmark not defined.

3 Configuration of STM32F100xx GPIOs as an Output .................... Error! Bookmark not


defined.
4 Implementation of Software Delay .................................................... Error! Bookmark not
defined. 5 Configuration of STM32F100xx GPIOs as an Input ....................... Error! Bookmark
not defined.

iii
Student Workbook EE-07310: Microprocessor based Embedded Systems

LABORATORY SESSION # 1
1 Development Environment for STM32F100xx

1.1 EQUIPMENT & MATERIAL REQUIRED

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

1.2 PRE-LAB PREPARATIONS

_____________________________________________________________________
_____________________________________________________________________

1.3 PROCEDURE

_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________

- STM32F100xx trainer board

_____________________________________________________________________
_____________________________________________________________________

1
Student Workbook EE-07310: Microprocessor based Embedded Systems

_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________

Figure 1.1: STM32F100xx trainer board

2
Student Workbook EE-07310: Microprocessor based Embedded Systems

Figure 1.2: Power in connector of Figure 1.3: Headers (ADC, SPI, PWM &
STM32F100xx trainer board keyboard)

Figure 1.4: Headers of USART-2 Figure 1.5: Headers of I2C

Figure 1.6: 16x2 LCD on the trainer Figure 1.7: Female headers for board
STM32F100xx discovery board
connection

- STM32F100xx discovery board and connection of STM32F100xx discovery


board with PC using trainer board
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________

3
Student Workbook EE-07310: Microprocessor based Embedded Systems

Figure 1.8: STM32F100xx discovery board

Figure 1.9: Placement of discovery board Figure 1.10: Connection of STM32F100xx


on trainer board discovery board with PC via USB cable

Figure 1.11: LD2 LED glows when connected via USB cable
- STM32 ST-Link Utility

4
Student Workbook EE-07310: Microprocessor based Embedded Systems

___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________
___________________________________________________________________________

Figure 1.13: STM32 ST-Link Utility environment

Figure 1.14: Connect to the target option

5
Student Workbook EE-07310: Microprocessor based Embedded Systems

Figure 1.15: LED blinking after connected Figure 1.16: Successful connection of Via
SWD STM32F100xx via SWD

- Integrated Development Environment (IDE)

_____________________________________________________________________
_____________________________________________________________________
_____________________________________________________________________

Figure 1.17: IDE, Keil µVision 4

6
Student Workbook EE-07310: Microprocessor based Embedded Systems

1.4 OBSERVATION & RESULTS

- GPIO ports on STM32F100xx discovery board

C d

Figure 1.18: (a) GPIO Port A (b) GPIO Port B


(c) GPIO Port C (d) GPIO Port D

- 5V and Ground on STM32F100xx discovery board

a b

Figure 1.19: (a) 5V Pin (b) Four GND pins

7
Student Workbook EE-07310: Microprocessor based Embedded Systems

- On-board LEDs

Figure 1.20: Two On-board LEDs 1. _________ and 2. _________

- On-board switches and their connections on the discovery board

A B

Figure 1.21: (a) Connected with ________ and (b) connected with _________.

- Indications of successful connection of STM32F100xx with PC using trainer


board

Figure 1.22: Successful connection of STM32F100xx with PC

1.5 LEARNING OUTCOMES

What do you learn from this lab?

8
Student Workbook EE-07310: Microprocessor based Embedded Systems

1.6 EXERCISE QUESTIONS

- Distinguish among IDE, compiler and linker.

__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________

- Compare the purpose of STM32 ST-Link Utility and Keil µVision?

__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________

GENERALIZED LAB RUBRICS

9
Student Workbook EE-07310: Microprocessor based Embedded Systems

Component with Above Meeting Approaching Below Used Weight / Score


Taxonomy Expectation (4) Expectation (3) Expectation (2) Expectation (1) 100 (1–4)

Building Is able to build a Is able to assemble a Is only able to Is not able to  75


(Hardware) – P4 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
components and / minor revisions components components
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

Investigation Is able to Is able to Is not able to Is unable to ☐


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

Design / Is able to design / Is able to design / Is able to partially Is unable to ☐


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

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

Programming Is able to Is able to complete a Is able to Is unable to  25


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

10

You might also like