Lectronica
Full-Speed USB Hands-On Training
© 2005 Microchip Technology Incorporated. All Rights Reserved.
Slide
1
Prerequisites
Working knowledge of:
PIC18 family of microcontrollers MPLAB® IDE C Programming Language
This training assumes you are familiar with basic USB terminology and concepts
© 2005 Microchip Technology Incorporated. All Rights Reserved.
Class
Slide2
Objectives
Upon completion, participants will:
Get a hands-on experience in creating USB applications
Be aware of the factors important in designing USB applications
© 2005 Microchip Technology Incorporated. All Rights Reserved.
Class
Slide
3
Agenda
Checking your work station… Quick USB Review Demonstration - Microchip USB Solutions Exercise Group 1: Your turn to play!Exercise Group 2: CDC RS-232 Emulation APIs Exercise Group 3: Custom Class using Microchip General Purpose USB Windows Driver Wrapping up and Q&A
© 2005 Microchip Technology Incorporated. All Rights Reserved. Class
Slide
4
PICDEM™ FS USB Demo Board
Part Number - DM163025
© 2005 Microchip Technology Incorporated. All Rights Reserved. Class
Slide
5
Literature Check…
Threedocuments:
PIC18F4550 family data sheet Application Note 956 PICDEM™ FS USB Demo Board User’s Guide
Please DO NOT remove these documents from the classroom. Your fellow attendees will need them in the next session! Thank you for your cooperation!
© 2005 Microchip Technology Incorporated. All Rights Reserved. Class
Slide
6
Agenda
Checking your work station… Quick USB ReviewDemonstration - Microchip USB Solutions Exercise Group 1: Your turn to play! Exercise Group 2: CDC RS-232 Emulation APIs Exercise Group 3: Custom Class using Microchip General Purpose USB Windows Driver Wrapping up and Q&A
© 2005 Microchip Technology Incorporated. All Rights Reserved. Class
Slide
7
Quick USB Review
Understanding of the following concepts is important in making USB designchoices We will briefly cover materials on:
USB in Embedded Applications Vendor ID (VID) & Product ID (PID) Device Classes
© 2005 Microchip Technology Incorporated. All Rights Reserved.
Class
Slide
8
Universal Serial Bus
Computer is great Processing power! Embedded Applications Data Analysis, Data Logging, Firmware Updates, Diagnostic
• Auto detection & configuration (Plug&Play) •Easy expansion using hubs • Bus power • Three speeds: Low- 1.5, Full- 12, High- 480 Megabits / second
Serial Parallel PS/2
© 2005 Microchip Technology Incorporated. All Rights Reserved.
Class
Slide
9
Vendor ID & Product ID
Vendor ID (VID) 16-bit number Required to market your product http://www.usb.org/developers/vendor/ $1,500 Technical & Legal trouble if not using your ownVID Product ID (PID) 16-bit number Microchip’s Sub-licensing Program Every product is required to have a unique combination of VID and PID Compliance Testing Must pass to use USB logo ~ $1,500
© 2005 Microchip Technology Incorporated. All Rights Reserved. Class
Slide
10
Categorizing USB Peripherals
Data Gloves External DVD Drive Ethernet Adapter Mouse External Hard Drive ModemJoystick
Mass Storage Device Class (MSD)
Keyboard
Communication Device Class (CDC) ICD2 Custom Class (Vendor Class)
Human Interface Device Class (HID) Many more Device Classes….
© 2005 Microchip Technology Incorporated. All Rights Reserved.
Class
Slide
11
Agenda
Checking your work station… Quick USB Review Demonstration - Microchip USB Solutions Exercise Group 1: Your turn toplay! Exercise Group 2: CDC RS-232 Emulation APIs Exercise Group 3: Custom Class using Microchip General Purpose USB Windows Driver Wrapping up and Q&A
© 2005 Microchip Technology Incorporated. All Rights Reserved. Class
Slide
12
Human Interface Device (HID)
PIC® Microcontroller
HID\Mouse
PC Computer
Standard Windows Drivers HID App
USB Cable
Design Considerations: 64...
Regístrate para leer el documento completo.