SlideShare a Scribd company logo
1 of 31
PDI Studio 5
Dayna Polstein
   Main purpose:
    ◦ To run programs on devises
   “Mini Computer” – Contains memory space
   Devise for embedded control
   Use a computer to program
   Can download programs from computer
   Can output information to computer
   Contains input/output ports
   Everywhere!
    ◦   Computers
    ◦   Remote controls
    ◦   Cell phones
    ◦   Cars (engine, antilock breaks, cruise control, etc.)
    ◦   Microwaves
    ◦   Dishwashers
    ◦   TVs
    ◦   DVD Players
    ◦   Almost every electronic with a user interface
   Basic computer skills
   C-programming
   Some basic circuitry
   Computer
   C8051 Board
   USB Debug Adapter
   Power Cord
   USB Cable



   SiLabs IDE
   SecureCRT
1.
2.        3.




     4.
   Used For
    ◦ Writing Programs
    ◦ Sending Programs to C8051
   Programmed in C



   Used For displaying text from:
    ◦ Main Program
    ◦ Input
   Be Careful with circuit
    ◦ Circuit boards are very delecate
   Only hold circuits by the edges
    ◦ Do not touch anything metal
   Before setting down:
    ◦ Make sure rubber feet are in tact
    ◦ Make sure area is clean and dust-free
   When storing:
    ◦ Use anti-static bag and cushioned packaging
    ◦ Store at room temperature
To USB
                      Debug
                      Adapter
                      To Power
                      Cord


LED should light up
when powered
USB to
                         Computer




To power
           LEDs should light
outlet
           up when in use
1.       Open SiLabs IDE
2.       Go to File  New File
3.       Type in C Program
         Copy Sample Program:
          #include <stdio.h>
          main ()
          {
          printf(“PDI Studio 5/n");
          }
4.   Compile program by pressing the
     Assemble/Compile button on the toolbar or
     press Project  Assemble/Compile File
5.   Build program by pressing the Build/Make
     button on the toolbar or press Project 
     Build/Make Project




                    Assemble/Compile Build/Make
                              Button Button
                  Note: If your program does not work, it will
                  notify you at steps 4 and 5 and you will have
                  to debug before attempting to connect
6.   Go to Options  Connection options and
     choose USB Debug Adapter and then OK
7.   Press the Connect button (or alt c)




                               Connect
                                Button


LEDs on the Debug Adapter should now be on
8.   Press the Download code button




                                Download
                                Code Button
   Go to Project  Target Build Configuration




   Enable automatic connect/download after
    build and then press build again
   Go to C:SiLabsMCUExamplesC8051F02x
   Click on the “Blinky” folder, and open the c
    file in IDE
   Press on the green “go” button
   The green led on the board should start
    blinking
   Press the red button for the program to stop
   Each program has a description of function
    and reason for different lines
   Use these programs as guilds for your
    programs
   8 ports, 0 through 7
   Each port is 1 byte (8 bits)
    wide
   You can address to entire
    bytes or individual bits
   Each port can be assigned as
    input or output
   C8051 will read the ports as
    ◦ 0 volts as false
    ◦ +3 volts as true
   Setting by bit (one of eight bits of the port)
    ◦ To assign b7 of port 0 :
      sbit bit7 = P0^7;
       bit7 = 1;
   Set as Input
    ◦ Port 3 pin 7
      P3MDout &= ~0x80;
       P3 | = 0x80; *****
   Set as Output
    ◦ Port 2 pin 2
      P2MOUT |= 0x04
   For individual bits, first read entire port, then
    use masking to determine value of bit
   Describe Masking Here
   Open Secure CRT
   Change settings and connect (try different
    com numbers) **
   Right click on Serial-COM3 and select
    “Session Options…”
   Click on emulation, change the scrollback
    buffer to 32000, and press ok.
   Make a new project and file in IDE (save as
    384test.c
   Copy this program:

     #include "c8051.h"

     int main()
     {
       Sys_Init();
       printf("nnntesting...n");
       printf("done for now...n");
       while(1);
     }
   Compile and build the code
   Connect and download code
   Start the code
   Text should display on Secure CRT window
    ***
   Embedded Control Course Materials
    http://litec.rpi.edu/course.php
   IDE Software:
    http://litec.rpi.edu/Postings/UsingSiLabsIDE.
    html
   C8051 User Guide
    http://litec.rpi.edu/Postings/C51_User_Guide
    .pdf
   C8051 Manual:
    http://litec.rpi.edu/Postings/C8051F02xRev1
    _4.pdf
   Timers
   A/D Converter
   C programming?

More Related Content

Similar to Pres

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
 
Lecture 3 (tool stick platform) rv01
Lecture 3 (tool stick platform) rv01Lecture 3 (tool stick platform) rv01
Lecture 3 (tool stick platform) rv01cairo university
 
Pic programming gettingstarted
Pic programming gettingstartedPic programming gettingstarted
Pic programming gettingstartedAjit Padmarajan
 
Embedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptxEmbedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptxaartis110
 
How to work with code blocks
How to work with code blocksHow to work with code blocks
How to work with code blocksTech Bikram
 
Chapter+1 +the+adventure+begins
Chapter+1 +the+adventure+beginsChapter+1 +the+adventure+begins
Chapter+1 +the+adventure+beginsnoor020202
 
ABC Consolidated Financial InfoABC Companys current financial inf.docx
ABC Consolidated Financial InfoABC Companys current financial inf.docxABC Consolidated Financial InfoABC Companys current financial inf.docx
ABC Consolidated Financial InfoABC Companys current financial inf.docxransayo
 
The IoT Academy IoT training Arduino Part 2 Arduino IDE
The IoT Academy IoT training Arduino Part 2 Arduino IDEThe IoT Academy IoT training Arduino Part 2 Arduino IDE
The IoT Academy IoT training Arduino Part 2 Arduino IDEThe IOT Academy
 
Larson and toubro
Larson and toubroLarson and toubro
Larson and toubroanoopc1998
 
DeviceHub - First steps using Intel Edison
DeviceHub - First steps using Intel EdisonDeviceHub - First steps using Intel Edison
DeviceHub - First steps using Intel EdisonGabriel Arnautu
 
Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com  Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com amaranthbeg143
 
Arduino Full Tutorial
Arduino Full TutorialArduino Full Tutorial
Arduino Full TutorialAkshay Sharma
 

Similar to Pres (20)

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
 
Indroduction arduino
Indroduction arduinoIndroduction arduino
Indroduction arduino
 
Indroduction the arduino
Indroduction the arduinoIndroduction the arduino
Indroduction the arduino
 
Lecture 3 (tool stick platform) rv01
Lecture 3 (tool stick platform) rv01Lecture 3 (tool stick platform) rv01
Lecture 3 (tool stick platform) rv01
 
Pic programming gettingstarted
Pic programming gettingstartedPic programming gettingstarted
Pic programming gettingstarted
 
Embedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptxEmbedded L1_notes_unit2_architecture.pptx
Embedded L1_notes_unit2_architecture.pptx
 
Setup and create android app using android studio in ubuntu 14.04
Setup and create android app using android studio in ubuntu 14.04Setup and create android app using android studio in ubuntu 14.04
Setup and create android app using android studio in ubuntu 14.04
 
STM -32
STM -32STM -32
STM -32
 
learning STM -32
learning STM -32 learning STM -32
learning STM -32
 
How to work with code blocks
How to work with code blocksHow to work with code blocks
How to work with code blocks
 
Chapter+1 +the+adventure+begins
Chapter+1 +the+adventure+beginsChapter+1 +the+adventure+begins
Chapter+1 +the+adventure+begins
 
ABC Consolidated Financial InfoABC Companys current financial inf.docx
ABC Consolidated Financial InfoABC Companys current financial inf.docxABC Consolidated Financial InfoABC Companys current financial inf.docx
ABC Consolidated Financial InfoABC Companys current financial inf.docx
 
The IoT Academy IoT training Arduino Part 2 Arduino IDE
The IoT Academy IoT training Arduino Part 2 Arduino IDEThe IoT Academy IoT training Arduino Part 2 Arduino IDE
The IoT Academy IoT training Arduino Part 2 Arduino IDE
 
Larson and toubro
Larson and toubroLarson and toubro
Larson and toubro
 
manual CT50
manual CT50manual CT50
manual CT50
 
Pt 51 ver-1.3_user_manual
Pt 51 ver-1.3_user_manualPt 51 ver-1.3_user_manual
Pt 51 ver-1.3_user_manual
 
Intel galileo
Intel galileoIntel galileo
Intel galileo
 
DeviceHub - First steps using Intel Edison
DeviceHub - First steps using Intel EdisonDeviceHub - First steps using Intel Edison
DeviceHub - First steps using Intel Edison
 
Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com  Cis 170 Extraordinary Success/newtonhelp.com
Cis 170 Extraordinary Success/newtonhelp.com
 
Arduino Full Tutorial
Arduino Full TutorialArduino Full Tutorial
Arduino Full Tutorial
 

Recently uploaded

Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 

Recently uploaded (20)

Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 

Pres

  • 2. Main purpose: ◦ To run programs on devises  “Mini Computer” – Contains memory space  Devise for embedded control  Use a computer to program  Can download programs from computer  Can output information to computer  Contains input/output ports
  • 3. Everywhere! ◦ Computers ◦ Remote controls ◦ Cell phones ◦ Cars (engine, antilock breaks, cruise control, etc.) ◦ Microwaves ◦ Dishwashers ◦ TVs ◦ DVD Players ◦ Almost every electronic with a user interface
  • 4. Basic computer skills  C-programming  Some basic circuitry
  • 5. Computer  C8051 Board  USB Debug Adapter  Power Cord  USB Cable  SiLabs IDE  SecureCRT
  • 6. 1.
  • 7. 2. 3. 4.
  • 8. Used For ◦ Writing Programs ◦ Sending Programs to C8051  Programmed in C  Used For displaying text from: ◦ Main Program ◦ Input
  • 9. Be Careful with circuit ◦ Circuit boards are very delecate  Only hold circuits by the edges ◦ Do not touch anything metal  Before setting down: ◦ Make sure rubber feet are in tact ◦ Make sure area is clean and dust-free  When storing: ◦ Use anti-static bag and cushioned packaging ◦ Store at room temperature
  • 10. To USB Debug Adapter To Power Cord LED should light up when powered
  • 11. USB to Computer To power LEDs should light outlet up when in use
  • 12. 1. Open SiLabs IDE 2. Go to File  New File 3. Type in C Program  Copy Sample Program: #include <stdio.h> main () { printf(“PDI Studio 5/n"); }
  • 13. 4. Compile program by pressing the Assemble/Compile button on the toolbar or press Project  Assemble/Compile File 5. Build program by pressing the Build/Make button on the toolbar or press Project  Build/Make Project Assemble/Compile Build/Make Button Button Note: If your program does not work, it will notify you at steps 4 and 5 and you will have to debug before attempting to connect
  • 14. 6. Go to Options  Connection options and choose USB Debug Adapter and then OK
  • 15. 7. Press the Connect button (or alt c) Connect Button LEDs on the Debug Adapter should now be on
  • 16. 8. Press the Download code button Download Code Button
  • 17. Go to Project  Target Build Configuration  Enable automatic connect/download after build and then press build again
  • 18. Go to C:SiLabsMCUExamplesC8051F02x  Click on the “Blinky” folder, and open the c file in IDE  Press on the green “go” button  The green led on the board should start blinking  Press the red button for the program to stop  Each program has a description of function and reason for different lines  Use these programs as guilds for your programs
  • 19.
  • 20. 8 ports, 0 through 7  Each port is 1 byte (8 bits) wide  You can address to entire bytes or individual bits  Each port can be assigned as input or output  C8051 will read the ports as ◦ 0 volts as false ◦ +3 volts as true
  • 21. Setting by bit (one of eight bits of the port) ◦ To assign b7 of port 0 :  sbit bit7 = P0^7; bit7 = 1;
  • 22. Set as Input ◦ Port 3 pin 7  P3MDout &= ~0x80; P3 | = 0x80; *****  Set as Output ◦ Port 2 pin 2  P2MOUT |= 0x04
  • 23. For individual bits, first read entire port, then use masking to determine value of bit  Describe Masking Here
  • 24. Open Secure CRT
  • 25. Change settings and connect (try different com numbers) **
  • 26. Right click on Serial-COM3 and select “Session Options…”
  • 27. Click on emulation, change the scrollback buffer to 32000, and press ok.
  • 28. Make a new project and file in IDE (save as 384test.c  Copy this program: #include "c8051.h" int main() { Sys_Init(); printf("nnntesting...n"); printf("done for now...n"); while(1); }
  • 29. Compile and build the code  Connect and download code  Start the code  Text should display on Secure CRT window ***
  • 30. Embedded Control Course Materials http://litec.rpi.edu/course.php  IDE Software: http://litec.rpi.edu/Postings/UsingSiLabsIDE. html  C8051 User Guide http://litec.rpi.edu/Postings/C51_User_Guide .pdf  C8051 Manual: http://litec.rpi.edu/Postings/C8051F02xRev1 _4.pdf
  • 31. Timers  A/D Converter  C programming?

Editor's Notes

  1. While computers can be used for many different functions with many different programs, microcontrollers generally are used for one purpose, storing only one main program in ROM memory. They are usually “embedded” inside another devise, hence the name embedded control.
  2. You need to be able to use the computer to send programs to the microcontroller. You also need to program the microcontroller using c-programming. Depending on what you are using the microcontroller for, you may need to know some circuitry.