In fact, I wasn't using any delays at all...

Just going at full speed, sending a byte over USB and also inverting
leds. But after a while it all stopts. So I suspect that the USB just
blocks somewhere.

On 2 dec, 00:32, "funlw65(Vasi)" <[email protected]> wrote:
> I meant, "not loosing" or "avoid loosing" ...
>
> On Dec 2, 1:30 am, "funlw65(Vasi)" <[email protected]> wrote:
>
> > You can loose USB connection if you forget to refresh it at least once
> > in a 10ms time interval. If you need delays bigger than 10ms, then you
> > must use non-blocking delays not avoid loosing the USB connection.
>
> > Vasi
>
> > On Dec 1, 11:04 pm, phalox <[email protected]> wrote:
>
> > > Hey all
>
> > > The professor who teaches me the Coarse 'Microprocessors', asked me to
> > > show the usb example. He wants to use usb during some lab sessions,
> > > but since all the libraries from microchip (that is in C) are just too
> > > complex for first-timers, he found it remarkable that I got it working
> > > this easily (even though it was just an example program!).
>
> > > He didn't know JAL, so I sent him some links. Maybe he finds the time
> > > one day to implement it in the lab sessions.
>
> > > He was also wondering about the inner workings of the library (and
> > > since I don't know much about usb yet, I was too); so we did a little
> > > research. He told me things about End Points, the different modes with
> > > usb (JAL does interrupt - for very small packets; and burst mode -
> > > that collects the data and send it in one packet ??)
>
> > > Then he was wondering what the speed was. So we just kept on sending
> > > packages, and at the same rate toggling leds. The smallest period we
> > > measured was 1µs, which means speed is very good!
> > > But while testing this, the process of sending sometimes just stopped.
> > > Any idea why this happens?
> > > Also, I first tried Termite as a terminal program, but that wouldn't
> > > work (and it does with an arduino). Only when using realterm (and in
> > > Java) I succeeded in talking with the pic.
>
> > > Toon

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en.

Reply via email to