Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

PIC interfacing with PC using USB

Status
Not open for further replies.

xyzabcpqr

Junior Member level 3
Joined
Mar 22, 2012
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,523
Hello all,

I am currently trying to interface PIC18F13K50 to PC using USB.I am using microchip's USB driver for host for hid application.
I want to generate different flashing led patters and buzzer sound tones

My firmware code and PC side software are working n I can make the above stuffs ON and off. But I could not generate flashing patterns as any of the looping instructions are not working . (e.g For, While, If) Its always gets out of the loop and i have to open USB again.

Please help me to figure out how to troubleshoot this problem.

With this I am attaching the firmware code(in Mplab in C) and PC side (in VB C# ) code for the reference.
 

Attachments

  • program.txt
    65.4 KB · Views: 50
  • pc_side_code.txt
    6.7 KB · Views: 49

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top