SlideShare a Scribd company logo
1 of 4
Download to read offline
International Journal of Trend in Scientific Research and Development (IJTSRD)
Volume 4 Issue 5, August 2020 Available Online: www.ijtsrd.com e-ISSN: 2456 – 6470
@ IJTSRD | Unique Paper ID – IJTSRD29309 | Volume – 4 | Issue – 5 | July-August 2020 Page 159
Study and Development of PIC
Microcontroller-to-PC Communication via USB
M. N. Islam, H. Akhter, M. Begum
Electronics Division, Atomic Energy Centre,
Bangladesh Atomic Energy Commission, Dhaka, Bangladesh
ABSTRACT
In this article, authors attempt to describe a study and development of PIC
Microcontroller-to-PC communication via USB. The Microchip FSUSB
Framework utilized the PIC18F4553 with 20MHz crystal. PortB pin RB4 has
been used as Bootloader and RD0 & RD1 as the status indicator. Moreover,
RC5 and RC4 of PortC have been used as USB D+ and D-. Firmware tools
consist of Mplab IDE, Mplab C18Compiler, Driver, FSUSBFrameworkv2.6and
Microsoft Visual Stadio (Visual C/C Sharp). Demonstration and Development
of a complete USB2.0 communication solution has been verified by using
USBDevice –CDC –BASICDEMO software on Proteus 7.7 simulation platform.
KEYWORDS: PIC Microcontroller, FSUSB Framework, Mplab IDE, Mplab C18
Compiler, USB communication
How to cite this paper: M. N. Islam | H.
Akhter | M. Begum "Study and
Development of PIC Microcontroller-to-PC
Communication via
USB" Published in
InternationalJournal
of Trend in Scientific
Research and
Development
(ijtsrd), ISSN: 2456-
6470, Volume-4 |
Issue-5, August 2020, pp.159-162, URL:
www.ijtsrd.com/papers/ijtsrd29309.pdf
Copyright © 2020 by author(s) and
International Journal of TrendinScientific
Research and Development Journal. This
is an Open Access article distributed
under the terms of
the Creative
Commons Attribution
License (CC BY 4.0)
(http://creativecommons.org/licenses/by
/4.0)
1. INTRODUCTION
USB as its name would suggest is a universal serial bus
(USB). It uses 4 shielded wires of which two are power (+5v
& GND). The remaining twoare twisted pair differentialdata
signals USB D+ and D-. It uses a Non Return to Zero Invert
(NRZI) encoding scheme to send data with a sync field to
synchronise the host and receiver clocks [1]. Therefore,
serial communication between Microcomputer and
Microcontroller has been presented that describes a data
transmission system where the data can betransmittedfrom
a personal computer to a microcontrollerchipandvice-versa
[2, 3, 4]. In the present research, a studyand development of
universal serial bus (USB) communication between a PIC
Microcontroller and the Personal Computer (PC) has been
presented. A complete USB2.0 communication solution has
been verified by using USBDevice – CDC – BASICDEMO
software on Proteus 7.7 simulation platform.
2. Methodology
A study and development of PIC Microcontroller-to-PC
communication via USB has been presented in this research.
The System consistsof Microchip FSUSB Frameworkutilized
the PIC18F4553 with 20MHz crystal. Block diagram,
Microchip FSUSB framework, circuit description and
demonstration for the system have been presented
accordingly.
2.1. Block Diagram
Fig.1: Shows the Block Diagram of the Microchip FSUSB framework.
2.2. Schematic Diagram
Complete simulation model of the primitive hardware used in the Microchip FSUSB framework on Proteus 7.7 simulation
platform has been shown in fig.2. The description of schematic diagram has been presented below:
IJTSRD29309
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD29309 | Volume – 4 | Issue – 5 | July-August 2020 Page 160
Fig.2: The Primitive Hardware used in the Microchip FSUSB framework on Proteus 7.7 simulation platform.
2.2.1. Input Power Filter Circuit: A power supply must provide stable and ripple-free DC output voltage independent of
line and load variations [5, 6]. Therefore, the input power filter circuit consists of capacitors C1 and C2.
2.2.2. Input Power Indicator Circuit: The input power indicator circuit comprises of resistor R7 and light emitting diode
(LED-RED) D5.
2.2.3. Bootloader Circuit: The bootloader circuit has been constructed with resistor R6 and SPST switch SW2.
2.2.4. Master Clear (Reset) Input Circuit: Master Clear (input) or programming voltage (input) or Master Clear (Reset)
input circuit consists of resistor R5 and push switch. This pin is an active-low Reset to the device.
2.2.5. Oscillator Circuit: The oscillator circuit comprises of crystal oscillator X1, capacitors C3 and C4.
2.2.6. Processor Circuit: The processor circuit is the heart of the developed system comprises of PIC 18F4553 40 pin DIP
Package, High-Performance, Enhanced Flash, USB Microcontrollers with 12-Bit A/D and nanoWatt Technology. It
consists of Oscillatorcrystal or external clock input. CPU, 4-ports, Reset, Memory for dataandProgram,Interruptsand
free-run timer TMR0 [7]. A high level language program developed using C controls the function of the processor.
2.2.7. Status Indicator & USB: The status indicator circuit constructs with resistors R1, R2 and LEDs D1, D2 (RED). And RC5
and RC4 of PortC have been used as USB D+ and D-.
Fig.3: USB Connectors and their Pin Configurations for PC side and Device side.
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD29309 | Volume – 4 | Issue – 5 | July-August 2020 Page 161
2.3. Software Arrangement
2.3.1. MPlab IDE: The MPLAB IDE software brings an
ease of software development previously unseen in
the 8/16-bit microcontroller market. The MPLAB
IDEis a Windows based application inwhichmain.c
program has been developed to control the
operation of the PIC Microcontroller-to-PC
communication via USB [7].
2.3.2. MPlab C18 Compiler: MPLAB C for PIC18 MCUs,
publisher microchip, version 3.47.
2.3.3. Linker Script File: For working with 18F4553
instead of 18F4550, its need some modificationson
the MCHPUSB linker script. Open the rm18f4550 –
MCHPUSB Bootload.lkr file by double clicking on it.
Change the line containing p18f4550.lib as
p18f4553.lib, save the file by ctrl+S. Right click on
the workspace containing the codes for the linker
file.
2.3.4. Main Program: The Main Program is a file named
main.c contains codes related to the default
configuration of the supported devices and their
programming environment. There are also code
protection, watchdog timer, PLL division etc.
Moreover, the file included header files, global
variable and function prototype declarations.Inthe
variables section, two char arrays like the
USB_In_Buffer and USB_Out_Buffer, both having
character length 64. Here, USB_In_Buffer is the
array used to send the data to PC and
USB_Out_Buffer is the one used to receive the
packages from PC.
2.3.5. The User Interface: The programming
environment chosen to implement the user
interface for the USBapplication is Microsoft Visual
Studio.NET 2005 Professional Edition. Open the
directory C:Microchip SolutionsUSB Device-CDC
- Basic DemoPC Software ExampleVCsharp
2005Basic Communication. Run the “Csharp
Simple CDC Demo” solution file.
2.3.6. FSUSB Framework: After it has been confirmed
that accurately implemented the circuit on board,
plug it into one of the USB ports. Run the bootloader
application “PDFUSB.exe” located on “C:Microchip
SolutionsUSB ToolsPdfsusb”.
2.3.7. Driver: The current work is a simulation in the
Microchip FSUSB framework on Proteus 7.7
simulation platform. Otherwise, its need driver file
installation for introducing the device to PC. The
same thing goes for the user interface and FSUSB
Framework with suitable version [8].
2.4. Demonstration and Analysis
The demonstration and development of the PIC
Microcontroller-to-PC USB communication has been
presented in this article. One can easily understand the
operation of the code by looking at the events and function
declarations. It is a well commented code allowing the
programmer to understand the basic operations used to
send and receive functions used in USBcommunication. The
demonstration is, at first, press and hold the bootloading
button (RB4) and while holding that press reset button.
Thereafter, release the reset button and afterthatreleasethe
bootloading button. The bootloader firmware starttorunon
PIC device that means there is a blinking on Led1 & Led2 and
will be recognized by the PC.
The demonstration and development/verification of the
complete USB2.0 communication solution by using USB
Device – CDC – BASICDEMO software in Proteus 7.7
simulation platform has been completed but continuous
ignition in RD0 instead of blinking in RD0 & RD1 alternately.
For solving this problem/further investigation as well as
hardware test of the PIC Microcontroller-to-PC
Communication via USB, the PICDEM FS USB Demo Board
(PIC18F4553/PIC18F45K50),PartNumber DM163025-1is
needed.
The user interface for the USB application in PICDEMFSUSB
Demo Board /Circuit Board, type 5 to the textbox next to the
button “Send Data” and push “Send Data”. One will see that
the data is (char by char) incremented by 1 and sent back to
PC. Press the button RB4 and observe the screen “Button
Pressed”.
The USB communication has some advantagesas compared
to the other communication protocols (RS232, RS485,
parallel communication) suchas highbandwidth intransfer,
serial communication etc. Moreover, the USB (Universal
Serial Bus) is an industry standard that was developed to
define cables, connectors and protocols for connection,
communication, and power supply between personal
computers and their peripheral devices. And it has become
commonplace on a wide range of devices. USB connectors
have replaced other types for battery chargers of portable
devices [9].
3. Conclusion
An elaborate study and method of development for PIC
Microcontroller-to-PC communication via USB has been
presented in this research. The Block diagram
representation, schematic diagramwhich includescomplete
simulation model of the primitive hardware used in the
Microchip FSUSB framework on Proteus 7.7 simulation
platform and demonstration also have been presented.
Demonstration and Development of a complete USB2.0
communication solution has been verified by using
USBDevice – CDC – BASICDEMO software.
Acknowledgement
Authors wish to express deep gratitude to Mr. Mahbubul
Hoq, Chairman; Mr. Masud Kamal, Member (Physical
Science); Dr. Imtiaz Kamal, Member (Planning and
Development); Dr. Md. Sanowar Hossain, Member (Bio-
Science)and Engr. Md. Abdus Salam, Member (Engineering),
Bangladesh Atomic Energy Commission, Dhaka for their
support and cooperation in the research.
REFERENCES:
[1] http://www.beyondlogic.org/usbnutshell/usb1.shtml
#Introduction, Available Online 2017.
[2] Mahbubul Hoq and Md. Abu Sayid Haque, serial
communication between Microcomputer and
Microcontroller, J. Bangladesh ElectronicSociety,Vol.5,
No. 1, 2005.
[3] Mahbubul Hoq, Yasmeen Mawla, Md. Abu Sayid Haque
and Saleh Mahmud Jahangir, Design and Development
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD29309 | Volume – 4 | Issue – 5 | July-August 2020 Page 162
of microcontroller based traffic light control system,
Proceedings, Bangladesh Electronics Society
Conference, Dhaka, Bangladesh, pp.122-126, 24-26
April, 2003.
[4] PIC 16F84A Data Sheet DS35007B, Microchip
Technology Inc., 2001.
[5] Selected Topics in Nuclear Electronics, IAEA TECDOC-
363, 1986.
[6] M. N. Islam, F. Akter, K. Asaduzzaman, M. A. S. Haque
and M. S. Islam, Design, Fabrication and Performance
Study of a Low Cost High Voltage Power Supply,
Nuclear Science and Applications, Vol. 21, Number 1 &
2, ISSN: 1016 – 197X, June-December 2012.
[7] PIC18F2458/2553/4458/4553 Data SheetDS39887B,
Microchip Technology Inc., 2007.
[8] Tutorial 1: Implementation of a USB based PIC-to-PC
communication, Available Online 2015.
[9] https://en.wikipedia.org/wiki/USB, Available Online
2018.

More Related Content

What's hot

Advertising Display System using LED and Graphical LED
Advertising Display System using LED and Graphical LEDAdvertising Display System using LED and Graphical LED
Advertising Display System using LED and Graphical LEDijsrd.com
 
Comptia220 701aessentials100-questionpracticeexam-130612192456-phpapp02
Comptia220 701aessentials100-questionpracticeexam-130612192456-phpapp02Comptia220 701aessentials100-questionpracticeexam-130612192456-phpapp02
Comptia220 701aessentials100-questionpracticeexam-130612192456-phpapp02Yazeed Khalid
 
A review on various types of software defined radios (sdrs) in radio communic...
A review on various types of software defined radios (sdrs) in radio communic...A review on various types of software defined radios (sdrs) in radio communic...
A review on various types of software defined radios (sdrs) in radio communic...eSAT Journals
 
IRJET- Braille Oriented Classroom
IRJET-  	  Braille Oriented ClassroomIRJET-  	  Braille Oriented Classroom
IRJET- Braille Oriented ClassroomIRJET Journal
 
Accessible computer interface for a cnc machining center
Accessible computer interface for a cnc machining centerAccessible computer interface for a cnc machining center
Accessible computer interface for a cnc machining centerJupira Silva
 
soc ip core based for spacecraft application
soc ip core based for spacecraft applicationsoc ip core based for spacecraft application
soc ip core based for spacecraft applicationnavyashree pari
 
Using%20 modbus%20for%20process[1]
Using%20 modbus%20for%20process[1]Using%20 modbus%20for%20process[1]
Using%20 modbus%20for%20process[1]Manel Montesinos
 

What's hot (9)

Advertising Display System using LED and Graphical LED
Advertising Display System using LED and Graphical LEDAdvertising Display System using LED and Graphical LED
Advertising Display System using LED and Graphical LED
 
Comptia220 701aessentials100-questionpracticeexam-130612192456-phpapp02
Comptia220 701aessentials100-questionpracticeexam-130612192456-phpapp02Comptia220 701aessentials100-questionpracticeexam-130612192456-phpapp02
Comptia220 701aessentials100-questionpracticeexam-130612192456-phpapp02
 
A review on various types of software defined radios (sdrs) in radio communic...
A review on various types of software defined radios (sdrs) in radio communic...A review on various types of software defined radios (sdrs) in radio communic...
A review on various types of software defined radios (sdrs) in radio communic...
 
IRJET- Braille Oriented Classroom
IRJET-  	  Braille Oriented ClassroomIRJET-  	  Braille Oriented Classroom
IRJET- Braille Oriented Classroom
 
Accessible computer interface for a cnc machining center
Accessible computer interface for a cnc machining centerAccessible computer interface for a cnc machining center
Accessible computer interface for a cnc machining center
 
Craneboard
CraneboardCraneboard
Craneboard
 
soc ip core based for spacecraft application
soc ip core based for spacecraft applicationsoc ip core based for spacecraft application
soc ip core based for spacecraft application
 
Hb3412981311
Hb3412981311Hb3412981311
Hb3412981311
 
Using%20 modbus%20for%20process[1]
Using%20 modbus%20for%20process[1]Using%20 modbus%20for%20process[1]
Using%20 modbus%20for%20process[1]
 

Similar to Study and Development of PIC Microcontroller to PC Communication via USB

Design of a usb based data acquisition system
Design of a usb based data acquisition systemDesign of a usb based data acquisition system
Design of a usb based data acquisition systemeSAT Publishing House
 
Design of a usb based data acquisition system
Design of a usb based data acquisition systemDesign of a usb based data acquisition system
Design of a usb based data acquisition systemeSAT Journals
 
High speed customized serial protocol for IP integration on FPGA based SOC ap...
High speed customized serial protocol for IP integration on FPGA based SOC ap...High speed customized serial protocol for IP integration on FPGA based SOC ap...
High speed customized serial protocol for IP integration on FPGA based SOC ap...IJMER
 
PICDriverResearch
PICDriverResearchPICDriverResearch
PICDriverResearchJohn Dunbar
 
Wireless led notice board
Wireless led notice boardWireless led notice board
Wireless led notice boardRohith R
 
Networking of Micro-Controllers through USB
Networking of Micro-Controllers through USBNetworking of Micro-Controllers through USB
Networking of Micro-Controllers through USBpranjal009
 
Decibel meter using IoT with notice board
Decibel meter using IoT with notice boardDecibel meter using IoT with notice board
Decibel meter using IoT with notice boardIRJET Journal
 
IRJET- Survey on Nodemcu and Raspberry Pi: IoT
IRJET- Survey on Nodemcu and Raspberry Pi: IoTIRJET- Survey on Nodemcu and Raspberry Pi: IoT
IRJET- Survey on Nodemcu and Raspberry Pi: IoTIRJET Journal
 
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER cscpconf
 
Electronic Nameplate System
Electronic Nameplate SystemElectronic Nameplate System
Electronic Nameplate SystemIRJET Journal
 
Multicore development environment for embedded processor in arduino IDE
Multicore development environment for embedded processor in arduino IDEMulticore development environment for embedded processor in arduino IDE
Multicore development environment for embedded processor in arduino IDETELKOMNIKA JOURNAL
 
International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)irjes
 
C231723
C231723C231723
C231723irjes
 
IRJET- Navigation Camp – Bot
IRJET-  	  Navigation Camp – BotIRJET-  	  Navigation Camp – Bot
IRJET- Navigation Camp – BotIRJET Journal
 
IJSRED-V2I2P57
IJSRED-V2I2P57IJSRED-V2I2P57
IJSRED-V2I2P57IJSRED
 
Iisrt sinthuja mepco (ec)
Iisrt sinthuja mepco (ec)Iisrt sinthuja mepco (ec)
Iisrt sinthuja mepco (ec)IISRT
 
IRJET- Wireless Notice Board using Raspberry Pi
IRJET- Wireless Notice Board using Raspberry PiIRJET- Wireless Notice Board using Raspberry Pi
IRJET- Wireless Notice Board using Raspberry PiIRJET Journal
 

Similar to Study and Development of PIC Microcontroller to PC Communication via USB (20)

Am044253258
Am044253258Am044253258
Am044253258
 
Design of a usb based data acquisition system
Design of a usb based data acquisition systemDesign of a usb based data acquisition system
Design of a usb based data acquisition system
 
Design of a usb based data acquisition system
Design of a usb based data acquisition systemDesign of a usb based data acquisition system
Design of a usb based data acquisition system
 
40120140504013
4012014050401340120140504013
40120140504013
 
High speed customized serial protocol for IP integration on FPGA based SOC ap...
High speed customized serial protocol for IP integration on FPGA based SOC ap...High speed customized serial protocol for IP integration on FPGA based SOC ap...
High speed customized serial protocol for IP integration on FPGA based SOC ap...
 
PICDriverResearch
PICDriverResearchPICDriverResearch
PICDriverResearch
 
Wireless led notice board
Wireless led notice boardWireless led notice board
Wireless led notice board
 
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGSA STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
A STUDY OF AN ENTRENCHED SYSTEM USING INTERNET OF THINGS
 
Networking of Micro-Controllers through USB
Networking of Micro-Controllers through USBNetworking of Micro-Controllers through USB
Networking of Micro-Controllers through USB
 
Decibel meter using IoT with notice board
Decibel meter using IoT with notice boardDecibel meter using IoT with notice board
Decibel meter using IoT with notice board
 
IRJET- Survey on Nodemcu and Raspberry Pi: IoT
IRJET- Survey on Nodemcu and Raspberry Pi: IoTIRJET- Survey on Nodemcu and Raspberry Pi: IoT
IRJET- Survey on Nodemcu and Raspberry Pi: IoT
 
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER
IMPLEMENTATION OF USER INTERFACE FOR MICROPROCESSOR TRAINER
 
Electronic Nameplate System
Electronic Nameplate SystemElectronic Nameplate System
Electronic Nameplate System
 
Multicore development environment for embedded processor in arduino IDE
Multicore development environment for embedded processor in arduino IDEMulticore development environment for embedded processor in arduino IDE
Multicore development environment for embedded processor in arduino IDE
 
International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)
 
C231723
C231723C231723
C231723
 
IRJET- Navigation Camp – Bot
IRJET-  	  Navigation Camp – BotIRJET-  	  Navigation Camp – Bot
IRJET- Navigation Camp – Bot
 
IJSRED-V2I2P57
IJSRED-V2I2P57IJSRED-V2I2P57
IJSRED-V2I2P57
 
Iisrt sinthuja mepco (ec)
Iisrt sinthuja mepco (ec)Iisrt sinthuja mepco (ec)
Iisrt sinthuja mepco (ec)
 
IRJET- Wireless Notice Board using Raspberry Pi
IRJET- Wireless Notice Board using Raspberry PiIRJET- Wireless Notice Board using Raspberry Pi
IRJET- Wireless Notice Board using Raspberry Pi
 

More from ijtsrd

‘Six Sigma Technique’ A Journey Through its Implementation
‘Six Sigma Technique’ A Journey Through its Implementation‘Six Sigma Technique’ A Journey Through its Implementation
‘Six Sigma Technique’ A Journey Through its Implementationijtsrd
 
Edge Computing in Space Enhancing Data Processing and Communication for Space...
Edge Computing in Space Enhancing Data Processing and Communication for Space...Edge Computing in Space Enhancing Data Processing and Communication for Space...
Edge Computing in Space Enhancing Data Processing and Communication for Space...ijtsrd
 
Dynamics of Communal Politics in 21st Century India Challenges and Prospects
Dynamics of Communal Politics in 21st Century India Challenges and ProspectsDynamics of Communal Politics in 21st Century India Challenges and Prospects
Dynamics of Communal Politics in 21st Century India Challenges and Prospectsijtsrd
 
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...ijtsrd
 
The Impact of Digital Media on the Decentralization of Power and the Erosion ...
The Impact of Digital Media on the Decentralization of Power and the Erosion ...The Impact of Digital Media on the Decentralization of Power and the Erosion ...
The Impact of Digital Media on the Decentralization of Power and the Erosion ...ijtsrd
 
Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...
Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...
Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...ijtsrd
 
Problems and Challenges of Agro Entreprenurship A Study
Problems and Challenges of Agro Entreprenurship A StudyProblems and Challenges of Agro Entreprenurship A Study
Problems and Challenges of Agro Entreprenurship A Studyijtsrd
 
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...ijtsrd
 
The Impact of Educational Background and Professional Training on Human Right...
The Impact of Educational Background and Professional Training on Human Right...The Impact of Educational Background and Professional Training on Human Right...
The Impact of Educational Background and Professional Training on Human Right...ijtsrd
 
A Study on the Effective Teaching Learning Process in English Curriculum at t...
A Study on the Effective Teaching Learning Process in English Curriculum at t...A Study on the Effective Teaching Learning Process in English Curriculum at t...
A Study on the Effective Teaching Learning Process in English Curriculum at t...ijtsrd
 
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...ijtsrd
 
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...ijtsrd
 
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. SadikuSustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadikuijtsrd
 
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...ijtsrd
 
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...ijtsrd
 
Activating Geospatial Information for Sudans Sustainable Investment Map
Activating Geospatial Information for Sudans Sustainable Investment MapActivating Geospatial Information for Sudans Sustainable Investment Map
Activating Geospatial Information for Sudans Sustainable Investment Mapijtsrd
 
Educational Unity Embracing Diversity for a Stronger Society
Educational Unity Embracing Diversity for a Stronger SocietyEducational Unity Embracing Diversity for a Stronger Society
Educational Unity Embracing Diversity for a Stronger Societyijtsrd
 
Integration of Indian Indigenous Knowledge System in Management Prospects and...
Integration of Indian Indigenous Knowledge System in Management Prospects and...Integration of Indian Indigenous Knowledge System in Management Prospects and...
Integration of Indian Indigenous Knowledge System in Management Prospects and...ijtsrd
 
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...ijtsrd
 
Streamlining Data Collection eCRF Design and Machine Learning
Streamlining Data Collection eCRF Design and Machine LearningStreamlining Data Collection eCRF Design and Machine Learning
Streamlining Data Collection eCRF Design and Machine Learningijtsrd
 

More from ijtsrd (20)

‘Six Sigma Technique’ A Journey Through its Implementation
‘Six Sigma Technique’ A Journey Through its Implementation‘Six Sigma Technique’ A Journey Through its Implementation
‘Six Sigma Technique’ A Journey Through its Implementation
 
Edge Computing in Space Enhancing Data Processing and Communication for Space...
Edge Computing in Space Enhancing Data Processing and Communication for Space...Edge Computing in Space Enhancing Data Processing and Communication for Space...
Edge Computing in Space Enhancing Data Processing and Communication for Space...
 
Dynamics of Communal Politics in 21st Century India Challenges and Prospects
Dynamics of Communal Politics in 21st Century India Challenges and ProspectsDynamics of Communal Politics in 21st Century India Challenges and Prospects
Dynamics of Communal Politics in 21st Century India Challenges and Prospects
 
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
Assess Perspective and Knowledge of Healthcare Providers Towards Elehealth in...
 
The Impact of Digital Media on the Decentralization of Power and the Erosion ...
The Impact of Digital Media on the Decentralization of Power and the Erosion ...The Impact of Digital Media on the Decentralization of Power and the Erosion ...
The Impact of Digital Media on the Decentralization of Power and the Erosion ...
 
Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...
Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...
Online Voices, Offline Impact Ambedkars Ideals and Socio Political Inclusion ...
 
Problems and Challenges of Agro Entreprenurship A Study
Problems and Challenges of Agro Entreprenurship A StudyProblems and Challenges of Agro Entreprenurship A Study
Problems and Challenges of Agro Entreprenurship A Study
 
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
Comparative Analysis of Total Corporate Disclosure of Selected IT Companies o...
 
The Impact of Educational Background and Professional Training on Human Right...
The Impact of Educational Background and Professional Training on Human Right...The Impact of Educational Background and Professional Training on Human Right...
The Impact of Educational Background and Professional Training on Human Right...
 
A Study on the Effective Teaching Learning Process in English Curriculum at t...
A Study on the Effective Teaching Learning Process in English Curriculum at t...A Study on the Effective Teaching Learning Process in English Curriculum at t...
A Study on the Effective Teaching Learning Process in English Curriculum at t...
 
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
The Role of Mentoring and Its Influence on the Effectiveness of the Teaching ...
 
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
Design Simulation and Hardware Construction of an Arduino Microcontroller Bas...
 
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. SadikuSustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
Sustainable Energy by Paul A. Adekunte | Matthew N. O. Sadiku | Janet O. Sadiku
 
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
Concepts for Sudan Survey Act Implementations Executive Regulations and Stand...
 
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
Towards the Implementation of the Sudan Interpolated Geoid Model Khartoum Sta...
 
Activating Geospatial Information for Sudans Sustainable Investment Map
Activating Geospatial Information for Sudans Sustainable Investment MapActivating Geospatial Information for Sudans Sustainable Investment Map
Activating Geospatial Information for Sudans Sustainable Investment Map
 
Educational Unity Embracing Diversity for a Stronger Society
Educational Unity Embracing Diversity for a Stronger SocietyEducational Unity Embracing Diversity for a Stronger Society
Educational Unity Embracing Diversity for a Stronger Society
 
Integration of Indian Indigenous Knowledge System in Management Prospects and...
Integration of Indian Indigenous Knowledge System in Management Prospects and...Integration of Indian Indigenous Knowledge System in Management Prospects and...
Integration of Indian Indigenous Knowledge System in Management Prospects and...
 
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
DeepMask Transforming Face Mask Identification for Better Pandemic Control in...
 
Streamlining Data Collection eCRF Design and Machine Learning
Streamlining Data Collection eCRF Design and Machine LearningStreamlining Data Collection eCRF Design and Machine Learning
Streamlining Data Collection eCRF Design and Machine Learning
 

Recently uploaded

Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 

Recently uploaded (20)

9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 

Study and Development of PIC Microcontroller to PC Communication via USB

  • 1. International Journal of Trend in Scientific Research and Development (IJTSRD) Volume 4 Issue 5, August 2020 Available Online: www.ijtsrd.com e-ISSN: 2456 – 6470 @ IJTSRD | Unique Paper ID – IJTSRD29309 | Volume – 4 | Issue – 5 | July-August 2020 Page 159 Study and Development of PIC Microcontroller-to-PC Communication via USB M. N. Islam, H. Akhter, M. Begum Electronics Division, Atomic Energy Centre, Bangladesh Atomic Energy Commission, Dhaka, Bangladesh ABSTRACT In this article, authors attempt to describe a study and development of PIC Microcontroller-to-PC communication via USB. The Microchip FSUSB Framework utilized the PIC18F4553 with 20MHz crystal. PortB pin RB4 has been used as Bootloader and RD0 & RD1 as the status indicator. Moreover, RC5 and RC4 of PortC have been used as USB D+ and D-. Firmware tools consist of Mplab IDE, Mplab C18Compiler, Driver, FSUSBFrameworkv2.6and Microsoft Visual Stadio (Visual C/C Sharp). Demonstration and Development of a complete USB2.0 communication solution has been verified by using USBDevice –CDC –BASICDEMO software on Proteus 7.7 simulation platform. KEYWORDS: PIC Microcontroller, FSUSB Framework, Mplab IDE, Mplab C18 Compiler, USB communication How to cite this paper: M. N. Islam | H. Akhter | M. Begum "Study and Development of PIC Microcontroller-to-PC Communication via USB" Published in InternationalJournal of Trend in Scientific Research and Development (ijtsrd), ISSN: 2456- 6470, Volume-4 | Issue-5, August 2020, pp.159-162, URL: www.ijtsrd.com/papers/ijtsrd29309.pdf Copyright © 2020 by author(s) and International Journal of TrendinScientific Research and Development Journal. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (CC BY 4.0) (http://creativecommons.org/licenses/by /4.0) 1. INTRODUCTION USB as its name would suggest is a universal serial bus (USB). It uses 4 shielded wires of which two are power (+5v & GND). The remaining twoare twisted pair differentialdata signals USB D+ and D-. It uses a Non Return to Zero Invert (NRZI) encoding scheme to send data with a sync field to synchronise the host and receiver clocks [1]. Therefore, serial communication between Microcomputer and Microcontroller has been presented that describes a data transmission system where the data can betransmittedfrom a personal computer to a microcontrollerchipandvice-versa [2, 3, 4]. In the present research, a studyand development of universal serial bus (USB) communication between a PIC Microcontroller and the Personal Computer (PC) has been presented. A complete USB2.0 communication solution has been verified by using USBDevice – CDC – BASICDEMO software on Proteus 7.7 simulation platform. 2. Methodology A study and development of PIC Microcontroller-to-PC communication via USB has been presented in this research. The System consistsof Microchip FSUSB Frameworkutilized the PIC18F4553 with 20MHz crystal. Block diagram, Microchip FSUSB framework, circuit description and demonstration for the system have been presented accordingly. 2.1. Block Diagram Fig.1: Shows the Block Diagram of the Microchip FSUSB framework. 2.2. Schematic Diagram Complete simulation model of the primitive hardware used in the Microchip FSUSB framework on Proteus 7.7 simulation platform has been shown in fig.2. The description of schematic diagram has been presented below: IJTSRD29309
  • 2. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD29309 | Volume – 4 | Issue – 5 | July-August 2020 Page 160 Fig.2: The Primitive Hardware used in the Microchip FSUSB framework on Proteus 7.7 simulation platform. 2.2.1. Input Power Filter Circuit: A power supply must provide stable and ripple-free DC output voltage independent of line and load variations [5, 6]. Therefore, the input power filter circuit consists of capacitors C1 and C2. 2.2.2. Input Power Indicator Circuit: The input power indicator circuit comprises of resistor R7 and light emitting diode (LED-RED) D5. 2.2.3. Bootloader Circuit: The bootloader circuit has been constructed with resistor R6 and SPST switch SW2. 2.2.4. Master Clear (Reset) Input Circuit: Master Clear (input) or programming voltage (input) or Master Clear (Reset) input circuit consists of resistor R5 and push switch. This pin is an active-low Reset to the device. 2.2.5. Oscillator Circuit: The oscillator circuit comprises of crystal oscillator X1, capacitors C3 and C4. 2.2.6. Processor Circuit: The processor circuit is the heart of the developed system comprises of PIC 18F4553 40 pin DIP Package, High-Performance, Enhanced Flash, USB Microcontrollers with 12-Bit A/D and nanoWatt Technology. It consists of Oscillatorcrystal or external clock input. CPU, 4-ports, Reset, Memory for dataandProgram,Interruptsand free-run timer TMR0 [7]. A high level language program developed using C controls the function of the processor. 2.2.7. Status Indicator & USB: The status indicator circuit constructs with resistors R1, R2 and LEDs D1, D2 (RED). And RC5 and RC4 of PortC have been used as USB D+ and D-. Fig.3: USB Connectors and their Pin Configurations for PC side and Device side.
  • 3. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD29309 | Volume – 4 | Issue – 5 | July-August 2020 Page 161 2.3. Software Arrangement 2.3.1. MPlab IDE: The MPLAB IDE software brings an ease of software development previously unseen in the 8/16-bit microcontroller market. The MPLAB IDEis a Windows based application inwhichmain.c program has been developed to control the operation of the PIC Microcontroller-to-PC communication via USB [7]. 2.3.2. MPlab C18 Compiler: MPLAB C for PIC18 MCUs, publisher microchip, version 3.47. 2.3.3. Linker Script File: For working with 18F4553 instead of 18F4550, its need some modificationson the MCHPUSB linker script. Open the rm18f4550 – MCHPUSB Bootload.lkr file by double clicking on it. Change the line containing p18f4550.lib as p18f4553.lib, save the file by ctrl+S. Right click on the workspace containing the codes for the linker file. 2.3.4. Main Program: The Main Program is a file named main.c contains codes related to the default configuration of the supported devices and their programming environment. There are also code protection, watchdog timer, PLL division etc. Moreover, the file included header files, global variable and function prototype declarations.Inthe variables section, two char arrays like the USB_In_Buffer and USB_Out_Buffer, both having character length 64. Here, USB_In_Buffer is the array used to send the data to PC and USB_Out_Buffer is the one used to receive the packages from PC. 2.3.5. The User Interface: The programming environment chosen to implement the user interface for the USBapplication is Microsoft Visual Studio.NET 2005 Professional Edition. Open the directory C:Microchip SolutionsUSB Device-CDC - Basic DemoPC Software ExampleVCsharp 2005Basic Communication. Run the “Csharp Simple CDC Demo” solution file. 2.3.6. FSUSB Framework: After it has been confirmed that accurately implemented the circuit on board, plug it into one of the USB ports. Run the bootloader application “PDFUSB.exe” located on “C:Microchip SolutionsUSB ToolsPdfsusb”. 2.3.7. Driver: The current work is a simulation in the Microchip FSUSB framework on Proteus 7.7 simulation platform. Otherwise, its need driver file installation for introducing the device to PC. The same thing goes for the user interface and FSUSB Framework with suitable version [8]. 2.4. Demonstration and Analysis The demonstration and development of the PIC Microcontroller-to-PC USB communication has been presented in this article. One can easily understand the operation of the code by looking at the events and function declarations. It is a well commented code allowing the programmer to understand the basic operations used to send and receive functions used in USBcommunication. The demonstration is, at first, press and hold the bootloading button (RB4) and while holding that press reset button. Thereafter, release the reset button and afterthatreleasethe bootloading button. The bootloader firmware starttorunon PIC device that means there is a blinking on Led1 & Led2 and will be recognized by the PC. The demonstration and development/verification of the complete USB2.0 communication solution by using USB Device – CDC – BASICDEMO software in Proteus 7.7 simulation platform has been completed but continuous ignition in RD0 instead of blinking in RD0 & RD1 alternately. For solving this problem/further investigation as well as hardware test of the PIC Microcontroller-to-PC Communication via USB, the PICDEM FS USB Demo Board (PIC18F4553/PIC18F45K50),PartNumber DM163025-1is needed. The user interface for the USB application in PICDEMFSUSB Demo Board /Circuit Board, type 5 to the textbox next to the button “Send Data” and push “Send Data”. One will see that the data is (char by char) incremented by 1 and sent back to PC. Press the button RB4 and observe the screen “Button Pressed”. The USB communication has some advantagesas compared to the other communication protocols (RS232, RS485, parallel communication) suchas highbandwidth intransfer, serial communication etc. Moreover, the USB (Universal Serial Bus) is an industry standard that was developed to define cables, connectors and protocols for connection, communication, and power supply between personal computers and their peripheral devices. And it has become commonplace on a wide range of devices. USB connectors have replaced other types for battery chargers of portable devices [9]. 3. Conclusion An elaborate study and method of development for PIC Microcontroller-to-PC communication via USB has been presented in this research. The Block diagram representation, schematic diagramwhich includescomplete simulation model of the primitive hardware used in the Microchip FSUSB framework on Proteus 7.7 simulation platform and demonstration also have been presented. Demonstration and Development of a complete USB2.0 communication solution has been verified by using USBDevice – CDC – BASICDEMO software. Acknowledgement Authors wish to express deep gratitude to Mr. Mahbubul Hoq, Chairman; Mr. Masud Kamal, Member (Physical Science); Dr. Imtiaz Kamal, Member (Planning and Development); Dr. Md. Sanowar Hossain, Member (Bio- Science)and Engr. Md. Abdus Salam, Member (Engineering), Bangladesh Atomic Energy Commission, Dhaka for their support and cooperation in the research. REFERENCES: [1] http://www.beyondlogic.org/usbnutshell/usb1.shtml #Introduction, Available Online 2017. [2] Mahbubul Hoq and Md. Abu Sayid Haque, serial communication between Microcomputer and Microcontroller, J. Bangladesh ElectronicSociety,Vol.5, No. 1, 2005. [3] Mahbubul Hoq, Yasmeen Mawla, Md. Abu Sayid Haque and Saleh Mahmud Jahangir, Design and Development
  • 4. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD29309 | Volume – 4 | Issue – 5 | July-August 2020 Page 162 of microcontroller based traffic light control system, Proceedings, Bangladesh Electronics Society Conference, Dhaka, Bangladesh, pp.122-126, 24-26 April, 2003. [4] PIC 16F84A Data Sheet DS35007B, Microchip Technology Inc., 2001. [5] Selected Topics in Nuclear Electronics, IAEA TECDOC- 363, 1986. [6] M. N. Islam, F. Akter, K. Asaduzzaman, M. A. S. Haque and M. S. Islam, Design, Fabrication and Performance Study of a Low Cost High Voltage Power Supply, Nuclear Science and Applications, Vol. 21, Number 1 & 2, ISSN: 1016 – 197X, June-December 2012. [7] PIC18F2458/2553/4458/4553 Data SheetDS39887B, Microchip Technology Inc., 2007. [8] Tutorial 1: Implementation of a USB based PIC-to-PC communication, Available Online 2015. [9] https://en.wikipedia.org/wiki/USB, Available Online 2018.