Go Down

Topic: ATmega8U2 core? (Read 850 times) previous topic - next topic

Osgeld

I would find it to be a big advantage if I could use the ATmega8U2 as a serial <> usb adapter while also running personal arduino code, nothing resource heavy, just read serial, plop out to 74HC595

right now I am using FTDI cable > attiny85 > SR to accomplish the same thing, and well its frankly cheaper and tidier if I could save the whole FTDI + avr combo

if not ... looks like I will be taking a dive into LUFA and AVR Studio this holiday weekend.

http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL

bperrybap

Does LUFA support a s/w based USB?

Sounds like V-USB might be the ticket.
http://www.obdev.at/products/vusb/index.html
See the projects links for examples.
There are some pretty neat projects out there.
There is also the AVR-CDC stuff that might also be useful:
http://www.recursion.jp/avrcdc/

This level work definitely requires that you leave Arduino and its IDE
behind for development.

Here are few other links that might be interesting:
http://www.harbaum.org/till/i2c_tiny_usb/index.shtml
http://www.obdev.at/products/vusb/prjall.html

--- bill

Coding Badly


I vaguely recall that the ATmega8U2 is pretty full-up.

bperrybap

I was assuming continuing to use the attiny85 but with s/w based USB so the FTDI cable could
go away.

--- bill

Osgeld

either way, looking at a baud rate of 9600
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL

cyclegadget


@Osgeld

This link is related to changing the program in Atmega8U2, maybe it will help you.
http://www.sparkfun.com/news/1004
Good links: Eagle tutorial= http://www.youtube.com/playlist?list=PLDE1858BD83D19C70
General Arduion tutorials = http://tronixstuff.wordpress.com
http://www.gammon.com.au/forum/bbshowpost.php?bbtopic_id=123

bperrybap


either way, looking at a baud rate of 9600


Baud rate is meaningless when using a virtual serial connection over USB
when using native USB since there is no actual asynchronous serial connection.

It would be USB->attiny85->Shiftregister.

Baud rate is still there and "can be set" since it is part of the virtual com protocol,
but it doesn't really do anything or affect the actual data transfer rate.

The data rate will be throttled by USB and the speed of the USB s/w in the attiny.


--- bill

Go Up