Troubleshooting: Embedded systems with microchip PIC18F14K50 and C#
$30-100 USD
Closed
Posted about 13 years ago
$30-100 USD
Paid on delivery
Hello,
I am looking for someone who can help me with a sample application I am building who is experienced with Microchip microcontrollers and USB.
I want the PC USB to instruct an LED to flash every 1 ms (The flashing LED is not the end product - I ultimately want to refresh 1 byte of data on the device every 1 ms) My problem is that I can only flash the LED every ~ 10-20 ms. I'm attaching an image from my oscilloscope.
Please read detailed instructions below.
Ken
## Deliverables
Hello,
I am looking for someone who can help me with a sample application I am building who is experienced with Microchip microcontrollers.
I am using C# on the PC, and a PIC18F14K50 on a low pin count USB development board:
<[login to view URL]>
I've managed to get the USB Framework working in with my PIC18F14K50 as HID device. The firmware is identical to the "USB Device - HID - Simple Custom Demo" provided with the low-pin development kit.
PROBLEM:
I want the PC USB to instruct an LED to flash every 1 ms (The flashing LED is not the end product - I ultimately want to refresh 1 byte of data on the device every 1 ms) My problem is that I can only flash the LED every ~ 10-20 ms. I'm attaching an image from my oscilloscope.
Looking at the D+/D- lines, packets of some sort are being sent to the device every 1 ms.
My software is written in C#. I have implemented Andy Olivares' thread carefully from 2009.
[login to view URL]
I am using the asynchronous i/o. I am using the correct flags to initialize createfile(). I am sending a new OVERLAPPED structure. I have also put this code in a high priority thread.
The high priority thread seemed to improve things a little bit (sometimes there is an occasional transition that happens within 7ms), but I'm getting nowhere near 1 ms speed between states.
I am looking for someone who can help me achieve the flashing LED at a rate close to 1 ms.
I have attached the code for the host as well the code for the device. Would be particularly helpful if you already have the Microchip Low Pin USB Development Kit. If not, we could probably get away working with a different chip from the PIC18 Family.
IMPORTANT: Please write I AM REAL in your response. Unfortunately most of the responses I get, the candidate does not bother to read the specs. Thank you for being the one who does.