Sie sind auf Seite 1von 2

Embedded System Design Lab

List of Experiments
Serial
No.
Description
Lab
Module-
01
a. Understanding PIN out description, compiler usage
and API basics
b. Write a program to give the on-board LED in the rst
blin!" program a dela" o# $.%-%.% seconds.
c. Using the #our on-board mbed LEDs, &rite a program
that &ill use a potentiometer input on pin '$ to
continuousl" control ho& man" LEDs are on. Use the
#ollo&ing chart to dene the LED control(
Analog
input
alue !
" in olts#
LED1 LED$ LED% LED&
)*+ $.' ,-- ,-- ,-- ,--
$.'*)*+$.
.
,N ,-- ,-- ,--
$..*)*+$.
/
,N ,N ,-- ,--
$./*)*+$.
0
,N ,N ,N ,--
$.0*)*+%.
$
,N ,N ,N ,N
Lab
Module-
0$
a. Understanding Analog and Digital #unctions o# mbed
API
b. 1eading and Logging data #rom analog input mbed
pin '$ and trans#er seriall" to h"per terminal
so#t&are or 2era 2erm so#t&are.
c. Logging the analog data 3appro4. %$$ samples5 to
Local le s"stem using le s"stem ob6ect in .789
#ormat.
d. :enerate a sa&tooth voltage and anal"se it using
71,.
Lab
Module-
0%
a. 7reate a PW; signal &hich &e can see on an
oscilloscope. 2he code &ill generate a %$$ <= pulse
&ith >$? dut" c"cle.
b. 7hange the dut" c"cle to some di@erent values, sa"
$.' 3'$?5 and $.0 30$?5 and chec! the correct
displa" is seen on the Ascope,
c. Use a pulse &idth modulation signal to increase and
decrease the brightness o# the on-board LED. 2he
program reBuires the use o# a host terminal
application to communicate the brightness value to
the mbed, using the AuC and AdC !e"s
Department of Electronics and Communication Engg / Embedded System Design
Experiments
Source: mbed.org
Lab
Module
- 0&
a. Inter#acing D segment displa" to mbed protot"pe
board, Program mbed using digital output to displa"
number >.
b. Write a testing code to displa" count #rom $ to E.
c. Use a busout ob6ect to displa" count #rom $ to E.
d. Write a segFconvert35 #unction &ith #unction
protot"pe
c'ar seg(conert"c'ar seg(alue# that per#orms
the same #unctionalit" that &e have achieved in b
and c o# Lab e4ercise ..
return t"pe o# segFconvert #unction is he4 value
corresponding to displa" pattern and segFvalue is the
count value #rom $ to E.
e. 2o e4plore the po&er o# #unction reuse, add a second
D-segment displa" to digital output pins. Update the
main program code to call the seg(conert #unction
a second time, to implement a counter &hich counts
#rom $-EE.
Lab
Module-
0)
a. Using 2imer API create a sBuare &ave output at PIN >
and veri#" the timing accurac" using oscilloscope.
b. Use the mbed InterruptIn librar" to toggle an LED
&henever a digital pushbutton input goes high.
c. Use the mbed InterruptIn librar" to toggle an LED
&henever a digital input goes high, implementing a
debounce counter to avoid multiple interrupts.
d. 7ombine the timer and hard&are interrupt programs
to sho& that a scheduled program and an event
driven program can operate together. -lash t&o LEDs
at di@erent rates but allo& a hard&are interrupt to
sound a bu==er i# a pushbutton is pressed.
Department of Electronics and Communication Engg / Embedded System Design
Experiments
Source: mbed.org

Das könnte Ihnen auch gefallen