Info

You are currently browsing the Microchip Coupon Codes & Discounts weblog archives for the day 1. August 2011.

Calendar
August 2011
S M T W T F S
« Jun   Sep »
 123456
78910111213
14151617181920
21222324252627
28293031  
Categories

Archive for 1. August 2011

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

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: 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

|