Learn USB Library and Interfacing With Pic Microcontroller
What you'll learn
- Learn USB Library and Interfacing With Pic Microcontroller
Requirements
- MikroC Programm
- Proteus Program
Description
Universal Serial Bus, or USB, is a very common method of communication between electronic devices. USB is universal, meaning that it's standard across all electronic devices, serial, meaning that data is transmitted on only one data line one bit at a time, and is a bus, meaning that all devices are connected through the same parallel electronic wires and therefore require addresses. A simple USB connection requires a host and a device. The host initiates all communication, assigns device addresses, and controls the flow of the data line in the connection. For our purposes, the USB host will be the PC and the USB device will be a PIC chip.
There are many different speeds associated with USB. USB 1.0 introduced data rates of 1.5 Mbits/s (Low-Speed) and 12 Mbits/s (Full-Speed). With USB 2.0 and 3.0, data rates of 480 Mbits/s (Hi-Speed) and 5 Gbits/s (Super-Speed), were added respectively. PIC chips have hardware capable of full speed USB.
Hardware
A USB cable has 4 wires: power (red), ground (black), D+ (green), and D- (white). You may notice that many USB plugs and receptacles have 5 pins. This fifth pin is called ID, and is often not connected, but has been added to the specifications for use with USB-OTG, or On-The-Go. OTG allows devices to also act as a host. Many PIC chips are compatible with USB-OTG communication, but we will not discuss this topic any further at this point.
The two data lines, D+ and D-, provide information about the state of the USB link.
Detached State, or SE0 - device is unplugged, both data lines are low, pulled down by 15 kOhm resistors within the host hardware.
Attached State, Idle State, or J State - the device pulls up the D+ line (for a high-speed device) when it is attached.
K State - opposite polarity from J State. To communicate, the host or device alternates the device between the J and K states in specific patterns.
Illegal State, or SE1 - both data lines are high. If this happens, there is a hardware problem with the USB link.
Who this course is for:
- Students
- Geeks Electonics
Course content
- Preview02:25
- Preview01:47
- Preview02:09
- Preview01:27
- Preview01:55
- Preview00:48
- 01:317- Explain USB_Interrupt_Proc() Routine
- 02:358- Explain USB_Polling_Proc() Routine
- 01:419- Explain Gen_Enable() Routine
- 01:4210- Explain Gen_Read() Routine
- 01:2511- Explain Gen_Write() Routine
- 02:2312- Create Project Using USB Library Part 1
- 04:2613- Create Project Using USB Library Part 2
- 04:0514- NOT Complete Video and Create Project Part 3
Instructor
My name Bilal Ziada
Professional programming games on several programming engine games including Unity3D
Professional and specialized in web programming.
I teach students at several universities.
Executive Director of the Worldwide Programming Foundation, which is attended by several students and senior programming teachers.
When you enter my personal page on udemy, make sure that you see professional courses from the first elites so you can rest assured of your future.
Money is not everything We have taken the responsibility of teaching programming to students either free or at a very low price.
Always make sure that what you pay for learning is something you do not lose but earn a lot.
Do not hesitate to send a message to me if you want any course or any question at your service and open to any question, whether in programming or courses.
I want to say you trust yourself a lot and do not care about anything
Learn, ask and search, there is something new every day
Akram yourself find it and do not skimp on it
Advice
What you spend for learning does not lose, but you gain a lot from behind.
Made $50k from php alone!