Can I use AVR-USB in At90usbXXX?

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
apollononnno
Rank 1
Rank 1
Posts: 25
Joined: Wed Jul 23, 2008 5:31 am
Location: JAPAN

Can I use AVR-USB in At90usbXXX?

Post by apollononnno » Thu Oct 16, 2008 3:37 am

Hi christian

I want to install "AVR-USB" with "At90usb162".
Can that case implement the usb function of "the full speed" that used "low speed" and the inside hardware which I used "INT0" for at the same time?
For example, I convert full speed and a signal of the low speed and use it at the same time.

henni
Posts: 16
Joined: Mon Sep 08, 2008 4:17 pm

Re: Can I use AVR-USB in At90usbXXX?

Post by henni » Wed Oct 22, 2008 9:16 am

I want to install "AVR-USB" with "At90usb162".

Sounds a bit strange why someone need two USB device interfaces in one chip. IMHO the only use for it is connecting two computers.
Can that case implement the usb function of "the full speed" that used "low speed" and the inside hardware which I used "INT0" for at the same time?

This should be possible, if the AT90 core can clock at 12 MHz.
For example, I convert full speed and a signal of the low speed and use it at the same time.

Maybe, you want a low-speed host controller (keyboard or mouse or another AVRUSB device)? Currently, AVRUSB is not designed for host controllers. There are other, host-controller-focused projects.

epsilon_da
Rank 1
Rank 1
Posts: 29
Joined: Mon Oct 13, 2008 7:11 pm

Post by epsilon_da » Sun Oct 26, 2008 2:17 am

I dont know this AT90usb, but if it can be used as a host, then he may want to controll another low end device and comunicate with a PC with avrusb.

apollononnno
Rank 1
Rank 1
Posts: 25
Joined: Wed Jul 23, 2008 5:31 am
Location: JAPAN

Am I a mistake?

Post by apollononnno » Mon Oct 27, 2008 12:50 pm

I intended to connect "AT90USB647" in "AVR-USB".
As a result of having tried it sometimes, I was not able to do USB communication.
Cannot I operate "AVR-USB" with the device having a USB circuit inside?
Or would it be wrong for my lack of understanding?

epsilon_da
Rank 1
Rank 1
Posts: 29
Joined: Mon Oct 13, 2008 7:11 pm

Post by epsilon_da » Mon Oct 27, 2008 4:35 pm

All you need for AVR-USB is a supported clock speed (12, 16, 16.5 Mhz), the int0 pin and some other normal pin.
You should be able to use the internal usb module with different pins.

The datasheet of AT90usb162 says "Up to 16 MIPS Throughput at 16 MHz".
So AVR-USB will work fine at 12 or 16 Mhz.

apollononnno
Rank 1
Rank 1
Posts: 25
Joined: Wed Jul 23, 2008 5:31 am
Location: JAPAN

The summary of the test.

Post by apollononnno » Tue Oct 28, 2008 3:24 pm

I thought that I was strange.
I could grapple it and was going to operate "ABR-USB" without I remained in at90usb647, and using the inside USB circuit because I was not used.
// 25PD0(OC0B/SCL/INT0)$D+
// 26PD1(OC2B/SDA/INT1)$D-
I connected crystal glass of 16MHz to an errand USB circuit by the port setting mentioned above.
The USB circuit is clamped with a constant voltage element through resistance of 100ohm from a port by 3.5v.
When this circuit worked, I repeated connection of the USB many times and tried it, but the connection was not able to recognize the device without can do it.
A photo is two kinds of device boards.Image[/url]

epsilon_da
Rank 1
Rank 1
Posts: 29
Joined: Mon Oct 13, 2008 7:11 pm

Post by epsilon_da » Tue Oct 28, 2008 3:49 pm

In USB you have a Host controller and an endpoint.

It seems like you are trying to connect 2 devices with no computer.
If so, one of the devices needs to have a host usb module, otherwise it wont work.

If all of this is correct on your devices and still doesnt working, it may be that 16 Mhz could be not supported at Vcc of 3.5 V.

Post Reply