- Microchip Coupon Codes & Discounts - http://microchipdeals.com -

Easy USB HID example for the PIC18F14K50 Breakout Board in Mikroelektronika’s mikroC

Posted By admin On 1. August 2011 @ 10:27 In MikroElektronika, USB, 8-bit | 1 Comment

From http://www.tautic.com/easy-usb-hid-example-for-the-pic18f14k50-breakout-board-in-mikroelektronikas-mikroc

In this article we’re going to explore creating a simple sample for getting the PIC18F14K50 USB Breakout Board up and running as a USB HID device. Unlike last time, we’ll be using MikroElektronika’s mikroC PRO for PIC (version 4.60.0.0). In this example we won’t be using Microchip’s USB HID Bootloader, but rather programming the board directly with a programmer.  I’ll be using the PICkit 3.

I like mikroC for a few reasons. The IDE itself is a pleasure to use, and I find many of the included libraries to be extremely helpful and very usable. Comparing this to other C compilers, I believe most people who are just getting started with microcontrollers and or C will find this compiler one of the easiest to use.

In this example, we’re using the USB library which will allow us to get our sample running in a very minimum number of lines of code which are also extremely easy to read. There are a few details along the way specific to the PIC18F14K50 so be sure to pay close attention.

Project files and code for this tutorial can be downloaded here: [1] mikroC USB HID on PIC18F14K50.zip

Read all at… http://www.tautic.com/easy-usb-hid-example-for-the-pic18f14k50-breakout-board-in-mikroelektronikas-mikroc


Article printed from Microchip Coupon Codes & Discounts: http://microchipdeals.com

URL to article: http://microchipdeals.com/2011/08/01/easy-usb-hid-example-for-the-pic18f14k50-breakout-board-in-mikroelektronika%e2%80%99s-mikroc/

URLs in this post:
[1] mikroC USB HID on PIC18F14K50.zip: http://www.tautic.com/forum/download/file.php?id=2

Click here to print.