USB Library Interface With PicMicroController (MikroC)
1.0 (1 rating)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
4 students enrolled

USB Library Interface With PicMicroController (MikroC)

USB Library Interface With PicMicroController (MikroC)
1.0 (1 rating)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
4 students enrolled
Created by Trsian Team
Last updated 6/2019
English
English [Auto]
Current price: $13.99 Original price: $19.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 30 mins on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • USB Library
Requirements
  • MikroeC Progrm
  • Protues Program
Description

USB Library Interface With PicMicroController (MikroC)


USB Library

Universal Serial Bus (USB) provides a serial bus standard for connecting a wide variety of devices, including computers, cell phones, game consoles, PDA’s, etc.

USB Library contains HID routines that support HID class devices, and also the generic routines that can be used with vendor specified drivers.

USB HID Class

The HID class consists primarily of devices that are used by humans to control the operation of computer systems. Typical examples of HID class devices include :

  • Keyboards and pointing devices, for example: standard mouse devices, trackballs, and joysticks.

  • Front-panel controls, for example: knobs, switches, buttons, and sliders.

  • Controls that might be found on devices such as telephones, VCR remote controls, games or simulation devices, for example: data gloves, throttles, steering wheels, and rudder pedals.

  • Devices that may not require human interaction but provide data in a similar format to HID class devices, for example, bar-code readers, thermometers, or voltmeters.

Many typical HID class devices include indicators, specialized displays, audio feedback, and force or tactile feedback. Therefore, the HID class definition includes support for various types of output directed to the end user.

Descriptor File

Each project based on the USB library should include a descriptor source file which contains vendor id and name, product id and name, report length, and other relevant information. To create a descriptor file, use the integrated USB HID terminal of mikroC PRO for PIC (Tools › USB HID Terminal). The default name for descriptor file is USBdsc.c, but you may rename it.

Important :

  • The USB library routines have been changed. Please, have this in mind when migrating projects from previous versions of the compiler.

  • Also, this relates to the descriptor source file, so it is necessary to create a new descriptor file in order to make your project work.

Library Routines

  • HID_Enable

  • HID_Read

  • HID_Write

  • HID_Disable

  • USB_Interrupt_Proc

  • USB_Polling_Proc

  • Gen_Enable

  • Gen_Read

  • Gen_Write

HID_Enable

Prototype

void HID_Enable(char *readbuff, char *writebuff);

Description

Enables USB HID communication.

Parameters

  • readbuff: Read Buffer.

  • writebuff: Write Buffer.

These parameters are used for HID communication.

Returns

Nothing.

Requires

Nothing.

Example

HID_Enable(&readbuff,&writebuff);

Notes

This function needs to be called before using other routines of USB HID Library.

Who this course is for:
  • Any Person Using Usb In Electronics Projects
Course content
Expand 14 lectures 30:19
+ USB Library
14 lectures 30:19
7- Explain USB_Interrupt_Proc() Routine
01:31
8- Explain USB_Polling_Proc() Routine
02:35
9- Explain Gen_Enable() Routine
01:41
10- Explain Gen_Read() Routine
01:42
11- Explain Gen_Write() Routine
01:25
12- Create Project Using USB Library Part 1
02:23
13- Create Project Using USB Library Part 2
04:26
14- NOT Complete Video and Create Project Part 3
04:05