Search found 44 matches

by cpldcpu
Sat Aug 08, 2015 12:12 pm
Forum: V-USB
Topic: Windows 10 changes USB timing
Replies: 6
Views: 5142

Re: Windows 10 changes USB timing

You are right. ms, not µs.
by cpldcpu
Mon Aug 03, 2015 9:15 pm
Forum: V-USB
Topic: Windows 10 changes USB timing
Replies: 6
Views: 5142

Windows 10 changes USB timing

I just tested V-USB and Win10 for the first time - and yes, more things have changed to the worse. It seems that the win10 drivers reduce the time between USB reset and the first datapacket to less than 20µs. This means that osccalASM.s can not complete on devices using the internal oscillator. Imag...
by cpldcpu
Sun Jul 12, 2015 7:12 pm
Forum: V-USB
Topic: is usb connected (the software method)
Replies: 9
Views: 5586

Re: is usb connected (the software method)

It should be possible to detect if D+ is pulled low after the forced buis reset. The 10kOhm pull down of the host should do that. It may be beneficial to activate the pull up on the client side for D+.

Has anybody tried this, and does it work realiabilty?
by cpldcpu
Sun Jul 12, 2015 6:34 pm
Forum: V-USB
Topic: Initialization of PORTB
Replies: 0
Views: 1341

Initialization of PORTB

Did I miss something or is V-USB never initializing the port register , but is instead relying on it having a default value of 00 for both D+ and D-?
by cpldcpu
Sun Jul 12, 2015 6:13 pm
Forum: V-USB
Topic: v-usb with usb 3.0?
Replies: 9
Views: 4737

Re: v-usb with usb 3.0?

I also noticed odd things when connecting V-USB devices to USB3.0 hubs.

- Somehow it takes much longer for a devices to be recognized. The host will simply wait forever to start enumeration? Why? Very confusing.

- Things get out of sync fairly often.
by cpldcpu
Wed Jul 23, 2014 8:00 pm
Forum: V-USB
Topic: Where do the requirements for CPU clock accuracy come from?
Replies: 8
Views: 8224

Re: Where do the requirements for CPU clock accuracy come fr

Very interesting, so the theoretical limit of +-0.35% with CRC is spot on. It should be +-0.43% when the CRC of incoming packets is ignored. An additional cycle of margin should increase the allowable clock deviation to 0.44% with CRC (5/1122). At 16MHz this is +-71kHz, while 0.35% equals +-57kHz. T...
by cpldcpu
Wed Jul 23, 2014 5:47 am
Forum: V-USB
Topic: Where do the requirements for CPU clock accuracy come from?
Replies: 8
Views: 8224

Re: Where do the requirements for CPU clock accuracy come fr

So, my conclusion is that the allowed clock deviation is 0.35% or 0.43% at 16.5 Mhz for receiving data, and 1.5% for sending. I recently did some experiments with a high-precision clock generator (AD9850) to see how much deviation was tolerated. I tested the 16MHz version of V-USB, and it worked re...
by cpldcpu
Wed Jul 23, 2014 5:45 am
Forum: V-USB
Topic: Where do the requirements for CPU clock accuracy come from?
Replies: 8
Views: 8224

Re: Where do the requirements for CPU clock accuracy come fr

Could you post a blog on getting the ATTINY841 working with V-USB? Actually that is not more complicated than getting it to work with an ATtiny85. You just have to include the osccal code (you can use my optimized osccalASM.s*) and set F_CPU to 12MHz or 12.8MHz. The latter results in larger code si...
by cpldcpu
Wed Mar 19, 2014 10:31 pm
Forum: V-USB
Topic: Minimal USB implementation
Replies: 13
Views: 7133

Re: Minimal USB implementation

by cpldcpu
Sat Mar 15, 2014 12:36 pm
Forum: V-USB
Topic: Send a Video Stream to PC using VUSB
Replies: 2
Views: 2633

Re: Send a Video Stream to PC using VUSB

No, V-USB only supports Low-Speed USB and even that only with limited throughtput. You will at least need a full-speed USB device for your requirements.
by cpldcpu
Sun Mar 02, 2014 4:48 pm
Forum: V-USB
Topic: Interrupt free / polled V-USB
Replies: 2
Views: 2935

Re: Interrupt free / polled V-USB

Also mirroring my response here Although I am not familiar with your problem, the reason could indeed be similar. I have also observed that things depend on the operating system and usb hub as well. You can easily emulate the behavior of the interrupt-free V-USB and avoid the NACKing problem by disa...
by cpldcpu
Sun Mar 02, 2014 2:32 pm
Forum: V-USB
Topic: Interrupt free / polled V-USB
Replies: 2
Views: 2935

Interrupt free / polled V-USB

I wrote a blog article to explain the interrupt-free V-USB implementation that will be used in the upcoming USB Bootloader Micronucleus V2. The idea of implementing a polled-version of V-USB was brought up in this forum by blarrg. m I think it is pretty interesting, since the approach of intentional...
by cpldcpu
Thu Jan 30, 2014 8:36 am
Forum: V-USB
Topic: Where do the requirements for CPU clock accuracy come from?
Replies: 8
Views: 8224

Re: Where do the requirements for CPU clock accuracy come fr

No answer? Where did all the USB experts go? :(
by cpldcpu
Wed Jan 29, 2014 9:39 am
Forum: V-USB
Topic: Offline V-USB data processing
Replies: 0
Views: 1771

Offline V-USB data processing

A lot of the complexity of V-USB comes from the requirement to do de-stuffing and xoring of the USB datalines in real time. I have been wondering - is this really necessary? V-USB does not process most of the packet contents in realtime, so why not move some more processing off-line? Basically only ...
by cpldcpu
Wed Jan 22, 2014 11:35 pm
Forum: V-USB
Topic: Where do the requirements for CPU clock accuracy come from?
Replies: 8
Views: 8224

Where do the requirements for CPU clock accuracy come from?

I am wondering about the reasoning behind the clock accuracy requirements of V-USB. After all, the USB specification itself is much more relaxed: ⋅ High speed data is clocked at 480.00Mb/s with a data signalling tolerance of ± 500ppm. ⋅ Full speed data is clocked at 12.000Mb/s wi...