1 / 29

Communication between Host and MCU via Silicon Lab’s USB Debug Adapter

Communication between Host and MCU via Silicon Lab’s USB Debug Adapter. Department of Computer Science and Software Engineering Southern Polytechnic State University. Objective. Use USB debug adapter for communication purposes

connor
Download Presentation

Communication between Host and MCU via Silicon Lab’s USB Debug Adapter

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Communication between Host and MCU via Silicon Lab’s USB Debug Adapter Department of Computer Science and Software Engineering Southern Polytechnic State University

  2. Objective • Use USB debug adapter for communication purposes • Develop software for communication between host and MCU via USB debug adapter (JTAG) • Data collected in MCU (8051 board) can be sent back to host for further processing, e.g., distributed by a web server • Host can query the status of MCU, e.g., request information such temperature, etc.

  3. Hardware • Silicon Labs Stuff • 8051 development board SA-TB1PCB-005 • USB Debug Adapter (EC3) • A PC (laptop or desktop)

  4. Software Download and Installation • Flash Programming Utility, http://www.silabs.com/Support%20Documents/Software/UtilDLL.zip • Silicon Labs IDE • Microsoft Visual Studio 2008

  5. Documents • Flash Programming Utilities, http://www.silabs.com/products/mcu/Pages/FlashProgrammingUtilities.aspx • Silicon Labs application note An117, http://www.silabs.com/Support%20Documents/TechnicalDocs/an117.pdf

  6. Using SiUtil.lib and SiUtil.dll • Developed by Silicon Labs for programming USB interface • Both C2 and Jtag are supported • We will test Jtag and static library only. • The following step-by-step instructions will set up environment in Visual Studio 2008 to use the library.

  7. Make sure SiUtil.dll and USBHID.dll are copied to the Debug directory.

  8. This is just basic Windows programming.

  9. MCUProgramming • Start Silicon labs IDE (a tutorial can be found somewhere in the web) • Open the project obtained from this web. • Compile and download it to the MCU 8051

  10. MCUCode • The MCU code simply enters a loop, check the value at address 0x1a. • If its value equals to 0xab, the program turns on the green LED. • Otherwise, it turn off the green LED.

  11. The End!

More Related