PICcoder.co.uk Forum  


::post new topic::
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>
Re:PICDEM FS USB Code
Date: 2006/04/13 12:48 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
hey, update to the latest version of mplab and C18, there is a compatabiliy issue with older versions with the cof files, that should sort it out.
Mat
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/04/13 12:53 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
The firmware checks the voltage level of the pin to detect if the pic is connected to the Vusb, and therefore the USB. Your issue is most likely related to the connection between the pic and usb conector, ensure that the wire is as short as possible between the two to prevent interference.

Mat
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/04/14 08:52 By: hope Status: Visitor  
 
hi guys
i've seen your article and its very helpful . but i hope you answer my question
- does the mpusbapi.dll communicate with stand_alone usb what ever the circuit that is attached to or usb that interface PIC microcontroller ?
-and another question . and please consider that i'am novice in all of this. in the code for PC there is....>
string vid_pid_boot= "vid_04d8&pid_000b"; // Bootloader vid_pid ID
string vid_pid_norm= "vid_04d8&pid_000c";

string out_pipe= "MCHP_EP1"; // Define End Points
string in_pipe= "MCHP_EP1";

what i understand that those strings represent the address of the usb buffer !!!!???? i do not know if that correct or not but if it. can you tell me how can i get the address (i know that usb port have no fixed address like other ports)
i'am not sure how much logicaly is my question but that maybe it my first time dealing with api

//hope
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/04/14 09:44 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
Hi,

The mpusbapi.dll as far as i know can only be used to communicate with PIC's running the microchip usb firmware, at least i havnt heard of it being used to communicate with anything else.

Essentially the strings represent the usb device, the vid_pid represent the device ID, and the ////MCHP_EP1 represents the endpoint (or buffer) you want to talk to on the device. They will not change from machine to machine and the driver will deal with all the necessary low level device address changes.

Hope this helps. Mat
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/04/14 10:50 By: hope Status: Visitor  
 
thanks for reply
ya it help it important to realise that the address is not change from machine to another . and there is another question please
what i need this usb example and code is to drive a stepper motor by a laptop usb do you think that it works? maybe with changing the c# code and PIC code to fit the motor ??
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/04/14 11:48 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
It should work Your only likely problem is that you might not be able to switch the motor fast enough, at what rate are you likely to want to change the motor? You should be fine upto a few tens of hertz with the code as it stands, im working on a much fast version now though . Mat
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/04/16 07:42 By: hope Status: Visitor  
 
hi mat
iam not sure i understand . it look as iam stupid but the truth that i'am new and need to be sure that i get it correctly
does that mean that i have to minimum the delay time in the code or its need some enhance hardware for transfer rate increasing

and sorry for being noisy

//hope
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/04/16 09:09 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
It means two things, you have to make you code fairly quick, however to benefit from any speed gain this may give you, the transfer mode of the usb will also have to be adapted and new buffering techniques used. It can all be done in software.

Mat
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/04/26 20:21 By: Cortez Status: Visitor  
 
Hi im new at this i only know what is nedded to make this circuit but whit the pic18f2455 like jf post some days ago.
Need some change of pin connections or someting?
Thanks
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/06/24 17:08 By: recursos Status: Visitor  
 
Mat wrote:
The firmware checks the voltage level of the pin to detect if the pic is connected to the Vusb, and therefore the USB.
Mat


In response to:

b]Greetz Nick wrote:[/b]

i've got a question about the board itself, why do i need to put a 4k7 resistor between RA1 and VDD, because i got the bootup issues myself, but don't understand why to put a resistor on that pin.

Now I am confused - can's see any connection to RA1 on the schematic.
Am I missing something?

Rec
reply | quote

Re:Basic USB - Using Microchip Stack and C#.Net
Date: 2006/06/24 17:59 By: Mat Status: Admin  
Karma: 7  
Posts: 211
graph
Sorry I need to update the schematic, it is mentioned in bold just below the image. Mat
reply | quote

<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>
::post new topic::