SlideShare a Scribd company logo
1 of 33
Download to read offline
Lecture 3
Silicon Labs ToolStick
Development Platform
2
Contents
♦ Microcontroller development systems
♦ ToolStick overview
♦ ToolStick base adapter
♦ ToolStick MCUniversity daughter card
♦ Using the ToolStick development platform
♦ Software development tools
♦ ToolStick MCUniversity daughter card demonstration
3
Microcontroller Development Systems
♦ Microcontroller development Systems typically consist of
both hardware and software that are necessary to evaluate
and develop code on a microcontroller
♦ The hardware typically includes
 A target board that includes the MCU to be evaluated
 A means to program the microcontroller
 A means to debug the microcontroller while it is executing code
♦ The software typically includes
 An integrated development environment (IDE)
 Assembler, compiler, linker and debugger
 Software to download the code to the microcontroller
4
Microcontroller Development Systems
♦ Example: Silicon Labs C8051F020-DK Development Kit
♦ Kit Contents
 Software
 Silicon Labs integrated development
environment (IDE)
 Evaluation Keil C51 tool chain
(assembler, linker, and 4 Kb C-compiler)
 Source code examples and register
definition files
 Documentation
 Hardware
 Target/prototyping PCB
 Wall power supply
 USB debug adapter
 USB cable
5
ToolStick Overview
♦ The ToolStick development platform provides a powerful
development platform at a low cost
♦ The ToolStick includes all necessary hardware in a USB
stick
 USB debug adapter (BA—base adapter)
 Target MCU (DC—daughter card)
♦ Development on the ToolStick platform can be done using
software development tools available from Silicon Labs
 Integrated development environment (IDE)
 Virtual display tools
6
ToolStick Development Platform
ToolStick Base Adapter
USB Debug Interface to PC
Can communicate with any Silicon Labs MCU
ToolStick MCUniversity Daughter Card
Development platform for C8051F020 MCU
7
ToolStick Base Adapter Block Diagram
Debug Functions
Data Communication
PC Base Adapter Daughter Card
Silicon Labs IDE Debug Logic
ToolStick Terminal
UART
GPIO
MCU
Debug HW
UART & GPIO
External HW
USB
Card
Edge
8
ToolStick Base Adapter Hardware Overview
Silicon Laboratories MCU
Performs USB debug adapter and
PC communication functions
Run/Stop LEDs
Indicate if target MCU is running or halted
Socket Connector
Accepts a 14-pin
card-edge connector
Power LED
Indicates USB Bus power
9
ToolStick Base Adapter Functionality
♦ Provides a USB Debug interface to a Windows PC
♦ Provides a UART Interface with optional hardware
handshaking
 HID interface; no USB drivers need to be installed on PC
 Cannot be used simultaneously with the debug interface
♦ Two multifunction pins
 GPIO pins that can be read or written from the PC OR
 Two UART handshaking pins (RTS and CTS)
10
ToolStick UniDC Hardware Overview
I/O Pins
P0[7..2], P1, P2
Potentiometer
Linear output that sweeps from 0V to 3.3V
Target MCU
C8051F020
Power LED
Indicates
3.3V is
available
Reset
Switch
Analog
I/O Pins
Push-button Switches
P5[3..0]
LEDs
P5[7..4]
DIP Switches
P4
Crystal
22.1184 MHz
Prototype Area
11
Handling The ToolStick
♦ Caution: The modular ToolStick components are not
encased in plastic. This makes both the base adapter (BA)
and the daughter cards (DC) susceptible to electrostatic
discharge (ESD) damage.
♦ Follow these recommendations to protect the hardware
 Never connect or disconnect a ToolStick daughter card from the
base adapter while connected to a PC
 Always connect or disconnect a ToolStick by holding the large plastic
connector or the edges of the boards
 Be careful when using the mechanical components, such as the
potentiometers, so as to not stress the connectors
12
Handling The ToolStick
The Wrong way to hold the ToolStick
13
Handling The ToolStick
The Correct way to hold the ToolStick
14
Connecting the ToolStick
♦ Can connect the
ToolStick directly to
the PC
♦ Can connect the
ToolStick using the USB
extension cable
15
Software Development Tools
♦ Silicon Laboratories
IDE (integrated
development
environment)
 Connects to target
device via debug
adapter
 Allows programming
and debugging of
target MCUs
 Integrates third-party
compilers
 Keil, SDCC, IAR,
etc. Silicon Labs IDE
Screen Shot
16
Software Development Tools
♦ Virtual Tools
 ToolStick terminal
 Virtual LCD
 Virtual oscilloscope
17
ToolStick UniDC Demonstration
♦ Step 1: the firmware disables a peripheral called the
watchdog timer
♦ Step 2: the firmware configures a port pin to output mode
♦ Step 3: the device lights up an LED connected to that port
pin
♦ Step 4: the firmware enters an infinite loop
18
Installing the IDE and Demo Programs
♦ Download the ToolStick
University Kit package from:
http://www.silabs.com/MCUniver
sity
♦ Install the ToolStick University
Kit package and IDE to the same
directory:
c:SilabsMCU
♦ Insert the ToolStick into a USB
port on the PC once installation
is complete
19
Opening the Demo Project
♦ Launch the IDE once the
installation is complete
♦ Open the project from the
Project menu
♦ Browse to
C:SiLabsMCUToolStickUnive
rsityDCFirmwareSimpleDemo
♦ Open
“UniDC_SimpleDemo.wsp”
20
Building the Demo Project
♦ Build the project from the
Project menu
♦ Building the project creates
an object file that can be
downloaded to the device
21
Configuring Connection Options
♦ Configure the “Connection
Options” under the Options
menu
♦ Select USB debug adapter as
the adapter interface
 The Adapter selection drop-
down box will display a serial
number like the one shown
♦ Select “JTAG” for the debug
interface
22
Connecting and Downloading Firmware
♦ Click on the Connect button to
connect the IDE to the demo
board
♦ Once the IDE is connected, click
on the Download button to
download the firmware to the
device
23
Running and Stopping the Microcontroller
♦ Click on the green Go button to
start executing firmware on the
demo board
♦ Notice a green LED light up on
the ToolStick MCUniversity
daughter card
♦ When the device is running, it
can be stopped using the red
Stop button
♦ The LED will hold its current
state when the processor
is halted
24
Opening the Ports Debug Window
♦ Halt the processor by
clicking on the Stop
button
♦ Open the Ports SFR
View using the View
→ Debug Windows →
SFR’s → Ports menu
option
25
The Ports Debug Window
♦ The ADC Debug Window shows
the values of the SFR registers
when the processor is halted
♦ The values in red are the values
that have changed since the last
halt
♦ This window can be used to
change SFRs without
recompiling
♦ Bit 4 of P5 indicates that LED D1
is switched on
26
Changing the Port Latch Value
♦ The Port pin can be configured in
“real-time”
♦ In the Ports Debug Window,
change the P5 value to 0x0F
♦ Then click the Refresh button to
write the new value to the
register
♦ Observe the P5.4 LED (D1) has
now turned off
Key point: The IDE has full access to
the hardware allowing registers to be
changed in real-time
27
Using the Watch Window
♦ Halt the processor using the Stop button
♦ In the code editor window, right-click on
the variable name count and select “Add
count to Watch → Default”
♦ The variable will be added to a watch
window and its value will be updated
every time the processor is halted
Key point: The watch
window makes
debugging faster and
easier because you
can see any memory
location in RAM,
XRAM, or CODE in
one window
28
Using the Watch Window
♦ Alternately start and stop the
processor using the “Go” and
“Stop” buttons
♦ Notice that the count variable
increments as the MCU executes
code
♦ The value of the variable can
also be changed directly from the
Watch Window when the device
is in a halted state
29
Setting a Breakpoint
♦ Stop the processor by using the
Stop button
♦ Right-click on the variable
name count and select
“Insert/Remove Breakpoint”
♦ A hardware breakpoint is set on
the device
♦ The editor window shows the
location of breakpoints using a
red dot beside the line of code
30
Debugging with a Breakpoint
♦ Once the breakpoint is set, click
“Go” to continue program
execution
♦ The device will halt once the
program reaches a hardware
breakpoint
♦ Click “Go” a few times to watch
the variable increment
Key point: Breakpoints allow the
developer to easily run to a
section of code that needs
debugging and no CPU
resources are wasted
because they are fully
implemented in hardware
31
Single-Stepping Through the Firmware
♦ Using the IDE, the firmware can
be executed one assembly
instruction at a time using the
Single-Step function
♦ Click the Disassembly Button to
open the Disassembly Window
♦ Once the device is halted, click
the Single-Step Button and
watch the device execute one
assembly instruction each time
32
Additional Resources
♦ Refer to the following User’s Guides
 ToolStickUniDC User’s Guide
 AN333: ToolStick Virtual Tools User’s Guide
 Located at these default locations:
 C:SiLabsMCUToolStickUniversityDCDocumentation
 C:SiLabsMCUToolStickDocumentation
♦ Refer to the following additional examples
 UniDC_FeaturesDemo
 UniDC_VirtualTools_Demo
 Located at this default location:
 C:SiLabsMCUToolStickUniversityDCFirmware
www.silabs.com/MCU

More Related Content

What's hot

CPE439FinalProjectReport
CPE439FinalProjectReportCPE439FinalProjectReport
CPE439FinalProjectReportJordan Read
 
Chp4 introduction to the pic microcontroller copy
Chp4 introduction to the pic microcontroller   copyChp4 introduction to the pic microcontroller   copy
Chp4 introduction to the pic microcontroller copymkazree
 
Atmel and pic microcontroller
Atmel and pic microcontrollerAtmel and pic microcontroller
Atmel and pic microcontrollerTearsome Llantada
 
8051 microcontroller and embedded training (sahil gupta 9068557926)
8051 microcontroller and embedded training  (sahil gupta   9068557926)8051 microcontroller and embedded training  (sahil gupta   9068557926)
8051 microcontroller and embedded training (sahil gupta 9068557926)Sahil Gupta
 
Vinculum-II Embedded Dual USB Host Controller IC
Vinculum-II Embedded Dual USB Host Controller ICVinculum-II Embedded Dual USB Host Controller IC
Vinculum-II Embedded Dual USB Host Controller ICPremier Farnell
 
Module 5 embedded systems,8051
Module 5 embedded systems,8051Module 5 embedded systems,8051
Module 5 embedded systems,8051Deepak John
 
Arduino arduino boarduno
Arduino   arduino boardunoArduino   arduino boarduno
Arduino arduino boardunoFilipe Campos
 
Embedded system (Chapter 2) part A
Embedded system (Chapter 2) part AEmbedded system (Chapter 2) part A
Embedded system (Chapter 2) part AIkhwan_Fakrudin
 
PIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESPIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESDr.YNM
 
Design and implementation of real time security guard robot using GSM/CDMA ne...
Design and implementation of real time security guard robot using GSM/CDMA ne...Design and implementation of real time security guard robot using GSM/CDMA ne...
Design and implementation of real time security guard robot using GSM/CDMA ne...Claude Ndayisenga
 
Pic 16f877 a
Pic 16f877 aPic 16f877 a
Pic 16f877 abmsjh
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerMujahid Hussain
 

What's hot (20)

CPE439FinalProjectReport
CPE439FinalProjectReportCPE439FinalProjectReport
CPE439FinalProjectReport
 
Chp4 introduction to the pic microcontroller copy
Chp4 introduction to the pic microcontroller   copyChp4 introduction to the pic microcontroller   copy
Chp4 introduction to the pic microcontroller copy
 
Atmel and pic microcontroller
Atmel and pic microcontrollerAtmel and pic microcontroller
Atmel and pic microcontroller
 
8051 microcontroller and embedded training (sahil gupta 9068557926)
8051 microcontroller and embedded training  (sahil gupta   9068557926)8051 microcontroller and embedded training  (sahil gupta   9068557926)
8051 microcontroller and embedded training (sahil gupta 9068557926)
 
Vinculum-II Embedded Dual USB Host Controller IC
Vinculum-II Embedded Dual USB Host Controller ICVinculum-II Embedded Dual USB Host Controller IC
Vinculum-II Embedded Dual USB Host Controller IC
 
Arduino uno
Arduino unoArduino uno
Arduino uno
 
Module 5 embedded systems,8051
Module 5 embedded systems,8051Module 5 embedded systems,8051
Module 5 embedded systems,8051
 
Arduino arduino boarduno
Arduino   arduino boardunoArduino   arduino boarduno
Arduino arduino boarduno
 
Microcontroller
MicrocontrollerMicrocontroller
Microcontroller
 
Embedded system (Chapter 2) part A
Embedded system (Chapter 2) part AEmbedded system (Chapter 2) part A
Embedded system (Chapter 2) part A
 
PIC
PICPIC
PIC
 
PIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTESPIC MICROCONTROLLERS -CLASS NOTES
PIC MICROCONTROLLERS -CLASS NOTES
 
8 bit microcontroller
8 bit microcontroller8 bit microcontroller
8 bit microcontroller
 
Design and implementation of real time security guard robot using GSM/CDMA ne...
Design and implementation of real time security guard robot using GSM/CDMA ne...Design and implementation of real time security guard robot using GSM/CDMA ne...
Design and implementation of real time security guard robot using GSM/CDMA ne...
 
Lecture 1 microcontroller overview
Lecture 1   microcontroller overviewLecture 1   microcontroller overview
Lecture 1 microcontroller overview
 
Pic 16f877 a
Pic 16f877 aPic 16f877 a
Pic 16f877 a
 
Arduino uno
Arduino unoArduino uno
Arduino uno
 
Smart relays zelio logic 2018
Smart relays zelio logic 2018Smart relays zelio logic 2018
Smart relays zelio logic 2018
 
Introduction to Arduino Microcontroller
Introduction to Arduino MicrocontrollerIntroduction to Arduino Microcontroller
Introduction to Arduino Microcontroller
 
8051 microcontrollers
8051 microcontrollers8051 microcontrollers
8051 microcontrollers
 

Similar to Lecture 3 (tool stick platform) rv01

Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programmingPunit Goswami
 
Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Dr. Pankaj Zope
 
Chapter+1 +the+adventure+begins
Chapter+1 +the+adventure+beginsChapter+1 +the+adventure+begins
Chapter+1 +the+adventure+beginsnoor020202
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to ArduinoDamien Magoni
 
TMSLF2407 DSP Controller
TMSLF2407 DSP ControllerTMSLF2407 DSP Controller
TMSLF2407 DSP ControllerANIRUDDHMAINI1
 
Embedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptxEmbedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptxaartis110
 
aurduino-200107075953.pdf
aurduino-200107075953.pdfaurduino-200107075953.pdf
aurduino-200107075953.pdfHebaEng
 
Blinking a Single LED
Blinking a Single LEDBlinking a Single LED
Blinking a Single LEDRihab Rahman
 
Tutorial Penggunaan CodeVision AVR dengan Bahasa C
Tutorial Penggunaan CodeVision AVR dengan Bahasa CTutorial Penggunaan CodeVision AVR dengan Bahasa C
Tutorial Penggunaan CodeVision AVR dengan Bahasa CMuhammad Kennedy Ginting
 
Display Characters of a String one by One on a 7 Segment Display
Display Characters of a String one by One on a 7 Segment DisplayDisplay Characters of a String one by One on a 7 Segment Display
Display Characters of a String one by One on a 7 Segment DisplayRihab Rahman
 
Embedded c lab and keil c manual
Embedded  c  lab  and keil c  manualEmbedded  c  lab  and keil c  manual
Embedded c lab and keil c manualHari K
 
Embedded application development
Embedded application developmentEmbedded application development
Embedded application developmentAakash Raj
 
arduino-esp32-projects.pdf
arduino-esp32-projects.pdfarduino-esp32-projects.pdf
arduino-esp32-projects.pdfDaniel Donatelli
 

Similar to Lecture 3 (tool stick platform) rv01 (20)

Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programming
 
embedded system and AVR
embedded system and AVRembedded system and AVR
embedded system and AVR
 
Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming Unit III ARM Interface and ARM Programming
Unit III ARM Interface and ARM Programming
 
Chapter+1 +the+adventure+begins
Chapter+1 +the+adventure+beginsChapter+1 +the+adventure+begins
Chapter+1 +the+adventure+begins
 
arduinoedit.pptx
arduinoedit.pptxarduinoedit.pptx
arduinoedit.pptx
 
Indroduction arduino
Indroduction arduinoIndroduction arduino
Indroduction arduino
 
Indroduction the arduino
Indroduction the arduinoIndroduction the arduino
Indroduction the arduino
 
Introduction to Arduino
Introduction to ArduinoIntroduction to Arduino
Introduction to Arduino
 
TMSLF2407 DSP Controller
TMSLF2407 DSP ControllerTMSLF2407 DSP Controller
TMSLF2407 DSP Controller
 
STM -32
STM -32STM -32
STM -32
 
learning STM -32
learning STM -32 learning STM -32
learning STM -32
 
Embedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptxEmbedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptx
 
aurduino-200107075953.pdf
aurduino-200107075953.pdfaurduino-200107075953.pdf
aurduino-200107075953.pdf
 
Blinking a Single LED
Blinking a Single LEDBlinking a Single LED
Blinking a Single LED
 
Tutorial Penggunaan CodeVision AVR dengan Bahasa C
Tutorial Penggunaan CodeVision AVR dengan Bahasa CTutorial Penggunaan CodeVision AVR dengan Bahasa C
Tutorial Penggunaan CodeVision AVR dengan Bahasa C
 
Display Characters of a String one by One on a 7 Segment Display
Display Characters of a String one by One on a 7 Segment DisplayDisplay Characters of a String one by One on a 7 Segment Display
Display Characters of a String one by One on a 7 Segment Display
 
Embedded c lab and keil c manual
Embedded  c  lab  and keil c  manualEmbedded  c  lab  and keil c  manual
Embedded c lab and keil c manual
 
Embedded application development
Embedded application developmentEmbedded application development
Embedded application development
 
arduino-esp32-projects.pdf
arduino-esp32-projects.pdfarduino-esp32-projects.pdf
arduino-esp32-projects.pdf
 
Pres
PresPres
Pres
 

More from cairo university

Tocci chapter 13 applications of programmable logic devices extended
Tocci chapter 13 applications of programmable logic devices extendedTocci chapter 13 applications of programmable logic devices extended
Tocci chapter 13 applications of programmable logic devices extendedcairo university
 
Tocci chapter 12 memory devices
Tocci chapter 12 memory devicesTocci chapter 12 memory devices
Tocci chapter 12 memory devicescairo university
 
Tocci ch 9 msi logic circuits
Tocci ch 9 msi logic circuitsTocci ch 9 msi logic circuits
Tocci ch 9 msi logic circuitscairo university
 
Tocci ch 7 counters and registers modified x
Tocci ch 7 counters and registers modified xTocci ch 7 counters and registers modified x
Tocci ch 7 counters and registers modified xcairo university
 
Tocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuitsTocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuitscairo university
 
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...cairo university
 
A15 sedra ch 15 memory circuits
A15  sedra ch 15 memory circuitsA15  sedra ch 15 memory circuits
A15 sedra ch 15 memory circuitscairo university
 
A14 sedra ch 14 advanced mos and bipolar logic circuits
A14  sedra ch 14 advanced mos and bipolar logic circuitsA14  sedra ch 14 advanced mos and bipolar logic circuits
A14 sedra ch 14 advanced mos and bipolar logic circuitscairo university
 
A13 sedra ch 13 cmos digital logic circuits
A13  sedra ch 13 cmos digital logic circuitsA13  sedra ch 13 cmos digital logic circuits
A13 sedra ch 13 cmos digital logic circuitscairo university
 
A09 sedra ch 9 frequency response
A09  sedra ch 9 frequency responseA09  sedra ch 9 frequency response
A09 sedra ch 9 frequency responsecairo university
 
5 sedra ch 05 mosfet revision
5  sedra ch 05  mosfet revision5  sedra ch 05  mosfet revision
5 sedra ch 05 mosfet revisioncairo university
 
Lecture 2 (system overview of c8051 f020) rv01
Lecture 2 (system overview of c8051 f020) rv01Lecture 2 (system overview of c8051 f020) rv01
Lecture 2 (system overview of c8051 f020) rv01cairo university
 
Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01cairo university
 

More from cairo university (20)

Tocci chapter 13 applications of programmable logic devices extended
Tocci chapter 13 applications of programmable logic devices extendedTocci chapter 13 applications of programmable logic devices extended
Tocci chapter 13 applications of programmable logic devices extended
 
Tocci chapter 12 memory devices
Tocci chapter 12 memory devicesTocci chapter 12 memory devices
Tocci chapter 12 memory devices
 
Tocci ch 9 msi logic circuits
Tocci ch 9 msi logic circuitsTocci ch 9 msi logic circuits
Tocci ch 9 msi logic circuits
 
Tocci ch 7 counters and registers modified x
Tocci ch 7 counters and registers modified xTocci ch 7 counters and registers modified x
Tocci ch 7 counters and registers modified x
 
Tocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuitsTocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuits
 
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
Tocci ch 3 5 boolean algebra, logic gates, combinational circuits, f fs, - re...
 
A15 sedra ch 15 memory circuits
A15  sedra ch 15 memory circuitsA15  sedra ch 15 memory circuits
A15 sedra ch 15 memory circuits
 
A14 sedra ch 14 advanced mos and bipolar logic circuits
A14  sedra ch 14 advanced mos and bipolar logic circuitsA14  sedra ch 14 advanced mos and bipolar logic circuits
A14 sedra ch 14 advanced mos and bipolar logic circuits
 
A13 sedra ch 13 cmos digital logic circuits
A13  sedra ch 13 cmos digital logic circuitsA13  sedra ch 13 cmos digital logic circuits
A13 sedra ch 13 cmos digital logic circuits
 
A09 sedra ch 9 frequency response
A09  sedra ch 9 frequency responseA09  sedra ch 9 frequency response
A09 sedra ch 9 frequency response
 
5 sedra ch 05 mosfet.ppsx
5  sedra ch 05  mosfet.ppsx5  sedra ch 05  mosfet.ppsx
5 sedra ch 05 mosfet.ppsx
 
5 sedra ch 05 mosfet
5  sedra ch 05  mosfet5  sedra ch 05  mosfet
5 sedra ch 05 mosfet
 
5 sedra ch 05 mosfet revision
5  sedra ch 05  mosfet revision5  sedra ch 05  mosfet revision
5 sedra ch 05 mosfet revision
 
Fields Lec 2
Fields Lec 2Fields Lec 2
Fields Lec 2
 
Fields Lec 1
Fields Lec 1Fields Lec 1
Fields Lec 1
 
Fields Lec 5&6
Fields Lec 5&6Fields Lec 5&6
Fields Lec 5&6
 
Fields Lec 4
Fields Lec 4Fields Lec 4
Fields Lec 4
 
Fields Lec 3
Fields Lec 3Fields Lec 3
Fields Lec 3
 
Lecture 2 (system overview of c8051 f020) rv01
Lecture 2 (system overview of c8051 f020) rv01Lecture 2 (system overview of c8051 f020) rv01
Lecture 2 (system overview of c8051 f020) rv01
 
Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01
 

Recently uploaded

chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 

Recently uploaded (20)

chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 

Lecture 3 (tool stick platform) rv01

  • 1. Lecture 3 Silicon Labs ToolStick Development Platform
  • 2. 2 Contents ♦ Microcontroller development systems ♦ ToolStick overview ♦ ToolStick base adapter ♦ ToolStick MCUniversity daughter card ♦ Using the ToolStick development platform ♦ Software development tools ♦ ToolStick MCUniversity daughter card demonstration
  • 3. 3 Microcontroller Development Systems ♦ Microcontroller development Systems typically consist of both hardware and software that are necessary to evaluate and develop code on a microcontroller ♦ The hardware typically includes  A target board that includes the MCU to be evaluated  A means to program the microcontroller  A means to debug the microcontroller while it is executing code ♦ The software typically includes  An integrated development environment (IDE)  Assembler, compiler, linker and debugger  Software to download the code to the microcontroller
  • 4. 4 Microcontroller Development Systems ♦ Example: Silicon Labs C8051F020-DK Development Kit ♦ Kit Contents  Software  Silicon Labs integrated development environment (IDE)  Evaluation Keil C51 tool chain (assembler, linker, and 4 Kb C-compiler)  Source code examples and register definition files  Documentation  Hardware  Target/prototyping PCB  Wall power supply  USB debug adapter  USB cable
  • 5. 5 ToolStick Overview ♦ The ToolStick development platform provides a powerful development platform at a low cost ♦ The ToolStick includes all necessary hardware in a USB stick  USB debug adapter (BA—base adapter)  Target MCU (DC—daughter card) ♦ Development on the ToolStick platform can be done using software development tools available from Silicon Labs  Integrated development environment (IDE)  Virtual display tools
  • 6. 6 ToolStick Development Platform ToolStick Base Adapter USB Debug Interface to PC Can communicate with any Silicon Labs MCU ToolStick MCUniversity Daughter Card Development platform for C8051F020 MCU
  • 7. 7 ToolStick Base Adapter Block Diagram Debug Functions Data Communication PC Base Adapter Daughter Card Silicon Labs IDE Debug Logic ToolStick Terminal UART GPIO MCU Debug HW UART & GPIO External HW USB Card Edge
  • 8. 8 ToolStick Base Adapter Hardware Overview Silicon Laboratories MCU Performs USB debug adapter and PC communication functions Run/Stop LEDs Indicate if target MCU is running or halted Socket Connector Accepts a 14-pin card-edge connector Power LED Indicates USB Bus power
  • 9. 9 ToolStick Base Adapter Functionality ♦ Provides a USB Debug interface to a Windows PC ♦ Provides a UART Interface with optional hardware handshaking  HID interface; no USB drivers need to be installed on PC  Cannot be used simultaneously with the debug interface ♦ Two multifunction pins  GPIO pins that can be read or written from the PC OR  Two UART handshaking pins (RTS and CTS)
  • 10. 10 ToolStick UniDC Hardware Overview I/O Pins P0[7..2], P1, P2 Potentiometer Linear output that sweeps from 0V to 3.3V Target MCU C8051F020 Power LED Indicates 3.3V is available Reset Switch Analog I/O Pins Push-button Switches P5[3..0] LEDs P5[7..4] DIP Switches P4 Crystal 22.1184 MHz Prototype Area
  • 11. 11 Handling The ToolStick ♦ Caution: The modular ToolStick components are not encased in plastic. This makes both the base adapter (BA) and the daughter cards (DC) susceptible to electrostatic discharge (ESD) damage. ♦ Follow these recommendations to protect the hardware  Never connect or disconnect a ToolStick daughter card from the base adapter while connected to a PC  Always connect or disconnect a ToolStick by holding the large plastic connector or the edges of the boards  Be careful when using the mechanical components, such as the potentiometers, so as to not stress the connectors
  • 12. 12 Handling The ToolStick The Wrong way to hold the ToolStick
  • 13. 13 Handling The ToolStick The Correct way to hold the ToolStick
  • 14. 14 Connecting the ToolStick ♦ Can connect the ToolStick directly to the PC ♦ Can connect the ToolStick using the USB extension cable
  • 15. 15 Software Development Tools ♦ Silicon Laboratories IDE (integrated development environment)  Connects to target device via debug adapter  Allows programming and debugging of target MCUs  Integrates third-party compilers  Keil, SDCC, IAR, etc. Silicon Labs IDE Screen Shot
  • 16. 16 Software Development Tools ♦ Virtual Tools  ToolStick terminal  Virtual LCD  Virtual oscilloscope
  • 17. 17 ToolStick UniDC Demonstration ♦ Step 1: the firmware disables a peripheral called the watchdog timer ♦ Step 2: the firmware configures a port pin to output mode ♦ Step 3: the device lights up an LED connected to that port pin ♦ Step 4: the firmware enters an infinite loop
  • 18. 18 Installing the IDE and Demo Programs ♦ Download the ToolStick University Kit package from: http://www.silabs.com/MCUniver sity ♦ Install the ToolStick University Kit package and IDE to the same directory: c:SilabsMCU ♦ Insert the ToolStick into a USB port on the PC once installation is complete
  • 19. 19 Opening the Demo Project ♦ Launch the IDE once the installation is complete ♦ Open the project from the Project menu ♦ Browse to C:SiLabsMCUToolStickUnive rsityDCFirmwareSimpleDemo ♦ Open “UniDC_SimpleDemo.wsp”
  • 20. 20 Building the Demo Project ♦ Build the project from the Project menu ♦ Building the project creates an object file that can be downloaded to the device
  • 21. 21 Configuring Connection Options ♦ Configure the “Connection Options” under the Options menu ♦ Select USB debug adapter as the adapter interface  The Adapter selection drop- down box will display a serial number like the one shown ♦ Select “JTAG” for the debug interface
  • 22. 22 Connecting and Downloading Firmware ♦ Click on the Connect button to connect the IDE to the demo board ♦ Once the IDE is connected, click on the Download button to download the firmware to the device
  • 23. 23 Running and Stopping the Microcontroller ♦ Click on the green Go button to start executing firmware on the demo board ♦ Notice a green LED light up on the ToolStick MCUniversity daughter card ♦ When the device is running, it can be stopped using the red Stop button ♦ The LED will hold its current state when the processor is halted
  • 24. 24 Opening the Ports Debug Window ♦ Halt the processor by clicking on the Stop button ♦ Open the Ports SFR View using the View → Debug Windows → SFR’s → Ports menu option
  • 25. 25 The Ports Debug Window ♦ The ADC Debug Window shows the values of the SFR registers when the processor is halted ♦ The values in red are the values that have changed since the last halt ♦ This window can be used to change SFRs without recompiling ♦ Bit 4 of P5 indicates that LED D1 is switched on
  • 26. 26 Changing the Port Latch Value ♦ The Port pin can be configured in “real-time” ♦ In the Ports Debug Window, change the P5 value to 0x0F ♦ Then click the Refresh button to write the new value to the register ♦ Observe the P5.4 LED (D1) has now turned off Key point: The IDE has full access to the hardware allowing registers to be changed in real-time
  • 27. 27 Using the Watch Window ♦ Halt the processor using the Stop button ♦ In the code editor window, right-click on the variable name count and select “Add count to Watch → Default” ♦ The variable will be added to a watch window and its value will be updated every time the processor is halted Key point: The watch window makes debugging faster and easier because you can see any memory location in RAM, XRAM, or CODE in one window
  • 28. 28 Using the Watch Window ♦ Alternately start and stop the processor using the “Go” and “Stop” buttons ♦ Notice that the count variable increments as the MCU executes code ♦ The value of the variable can also be changed directly from the Watch Window when the device is in a halted state
  • 29. 29 Setting a Breakpoint ♦ Stop the processor by using the Stop button ♦ Right-click on the variable name count and select “Insert/Remove Breakpoint” ♦ A hardware breakpoint is set on the device ♦ The editor window shows the location of breakpoints using a red dot beside the line of code
  • 30. 30 Debugging with a Breakpoint ♦ Once the breakpoint is set, click “Go” to continue program execution ♦ The device will halt once the program reaches a hardware breakpoint ♦ Click “Go” a few times to watch the variable increment Key point: Breakpoints allow the developer to easily run to a section of code that needs debugging and no CPU resources are wasted because they are fully implemented in hardware
  • 31. 31 Single-Stepping Through the Firmware ♦ Using the IDE, the firmware can be executed one assembly instruction at a time using the Single-Step function ♦ Click the Disassembly Button to open the Disassembly Window ♦ Once the device is halted, click the Single-Step Button and watch the device execute one assembly instruction each time
  • 32. 32 Additional Resources ♦ Refer to the following User’s Guides  ToolStickUniDC User’s Guide  AN333: ToolStick Virtual Tools User’s Guide  Located at these default locations:  C:SiLabsMCUToolStickUniversityDCDocumentation  C:SiLabsMCUToolStickDocumentation ♦ Refer to the following additional examples  UniDC_FeaturesDemo  UniDC_VirtualTools_Demo  Located at this default location:  C:SiLabsMCUToolStickUniversityDCFirmware