Difference between revisions of "PIC32MX: USB Communication"
From Mech
Jump to navigationJump to searchAndrew Long (talk | contribs) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
'''THIS PAGE REFERS TO A PRE-RELEASE VERSION OF THE NU32 PIC32 DEVELOPMENT BOARD. FOR INFORMATION, SAMPLE CODE, AND VIDEOS RELATED TO THE PRODUCTION VERSION (2016 AND LATER), AND TO THE CORRESPONDING BOOK "EMBEDDED COMPUTING AND MECHATRONICS WITH THE PIC32 MICROCONTROLLER," VISIT [[NU32|THE NU32 PAGE]].''' |
|||
Wikipedia has a detailed and informative [http://en.wikipedia.org/wiki/Usb page on USB]. |
Wikipedia has a detailed and informative [http://en.wikipedia.org/wiki/Usb page on USB]. |
||
__TOC__ |
|||
Note this wiki is out of date. Under Construction |
|||
== Microchip Framework == |
|||
[[Image:MPLAB_IncludeSearchPath.bmp|thumb|150 px|right]] |
|||
Microchip provides [http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=2680&dDocName=en537044 PIC32 USB Device/Embedded Host Software Stack] located at bottom of page. These files contain common source code and header files required for USB communication. They also contain sample files for a different board, but can be modified for the UBW32 and other boards. |
|||
Unfortunately, the source files have not been compiled into a library. Therefore, each required source file that you use in your code must be added to your project. |
|||
The header files from the framework do not need to be specifically added to the project in MPLAB, but MPLAB needs to be directed to their location. These can be added by following the directions below: |
|||
* Choose <i>Project>Build Options>Project</i>. |
|||
* In the directories tab, choose the Include Search Path. |
|||
* Add a New path - Browse to find the include folder (<Installation Folder> \pic32_solutions\Microchip\Include) |
|||
* Add a New path - type a period '.' (this will search the project folder) |
|||
* Click <b>Apply</b> and then <b>OK</b> |
|||
<br clear=all> |
|||
== HelloUSBWorld == |
|||
The HelloUSBWorld files can be found [[Media:HelloUSBWorldPic32.zip|'''here''']]. |
|||
These files contain code to echo typing in a terminal and display a Hello World message when the user button is pressed. |
Latest revision as of 05:49, 16 January 2016
THIS PAGE REFERS TO A PRE-RELEASE VERSION OF THE NU32 PIC32 DEVELOPMENT BOARD. FOR INFORMATION, SAMPLE CODE, AND VIDEOS RELATED TO THE PRODUCTION VERSION (2016 AND LATER), AND TO THE CORRESPONDING BOOK "EMBEDDED COMPUTING AND MECHATRONICS WITH THE PIC32 MICROCONTROLLER," VISIT THE NU32 PAGE.
Wikipedia has a detailed and informative page on USB.