Helllo,
i am doing aproject on USB interfacing. my goal is to provide USB interface to any electronic devices which are either not capable to interface with computers or they are doing communication through parallel interfacing. i want to control various electronic device such as steppeer motor,relay etc.
i want to send the data to USB port by doing a programmingin turboC/VC++/C++. this data from USB port will be given to IC ATtiny 2313 or AT90S2313.And from this IC it will be applied to stepper motor driver or relay or any electronic devices. this devices may vary by time to time and i would have different prgrames for each device.The D+ And D- from Usb port will be applied to 6(PD2) and 8(PD4).
my question is for its programming.i want to make programmer for This IC.can any one sugest me the programmer for this IC. and also,software for same.
once i got the programmer,how can i write my own application in turboC/VC++/C++.so ,i need to write programes in this languages to send the data to USB port.
I Hope, you understood my application very well.
Thanks And Regards,
Vmax
ATtiny2313 for USB interfacing
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 82
- Joined: Thu Nov 01, 2007 4:13 pm
Since you posted your message in the "USBtinyISP" section of the forum, perhaps you could use a USBtinyISP for your programming:
http://www.ladyada.net/make/usbtinyisp/
As an alternative, I have had success using a Boarduino kit with an FTDI USB-to-serial cable to program an ATTiny2313:
http://www.ladyada.net/forums/viewtopic.php?t=4455
You can use WinAVR (or some other version of the Gnu AVR tools) and the "avrdude" program to compile and burn your AVR programs.
There is a tutorial on the process here. It includes a good discussion of the different kinds of programming devices available:
http://www.ladyada.net/learn/avr/
A word of advice: Since your project is on creating a USB interface system, don't waste a lot of time on programming hardware. Buying an inexpensive programmer that works well out of the box could be a very good choice. You will have more than enough to think about getting your USB stuff working.
Hope this helps, and good luck with your project!
http://www.ladyada.net/make/usbtinyisp/
As an alternative, I have had success using a Boarduino kit with an FTDI USB-to-serial cable to program an ATTiny2313:
http://www.ladyada.net/forums/viewtopic.php?t=4455
You can use WinAVR (or some other version of the Gnu AVR tools) and the "avrdude" program to compile and burn your AVR programs.
There is a tutorial on the process here. It includes a good discussion of the different kinds of programming devices available:
http://www.ladyada.net/learn/avr/
A word of advice: Since your project is on creating a USB interface system, don't waste a lot of time on programming hardware. Buying an inexpensive programmer that works well out of the box could be a very good choice. You will have more than enough to think about getting your USB stuff working.
Hope this helps, and good luck with your project!
-
- Posts: 2
- Joined: Sat Dec 15, 2007 1:50 am
Hi,
can you tell me what are the option available for me? i think you understood my application.i am again writing my application in more specific format.
Host Computer ->any Atmel IC -> any electronic device control through 8/16 I/O lines.
Host computer will contain the driver for specific IC. i would call this driver in my application programe to control electronic device(8/16 I/O lines).my application will contain the programming for controlling the 8/16 I/O Lines.which would be written in turboC/VC++/C++.
atmel IC:the commands from the programming will be sent to USB port.From USB port it will be given to any low speed/full speed/high speed atmel IC. out put of this IC will be 8/16 I/O lines.which will be given to various electonic device.
Electronic Device: This will vary from time to time for ex.stepper motor, relays,LED,LCD displays etc.and programming for this devices will be different.but driver will remain same.
I Hope, you understood my application very well.and you have no more doubts.
With Thanks And Regards,
vmax
can you tell me what are the option available for me? i think you understood my application.i am again writing my application in more specific format.
Host Computer ->any Atmel IC -> any electronic device control through 8/16 I/O lines.
Host computer will contain the driver for specific IC. i would call this driver in my application programe to control electronic device(8/16 I/O lines).my application will contain the programming for controlling the 8/16 I/O Lines.which would be written in turboC/VC++/C++.
atmel IC:the commands from the programming will be sent to USB port.From USB port it will be given to any low speed/full speed/high speed atmel IC. out put of this IC will be 8/16 I/O lines.which will be given to various electonic device.
Electronic Device: This will vary from time to time for ex.stepper motor, relays,LED,LCD displays etc.and programming for this devices will be different.but driver will remain same.
I Hope, you understood my application very well.and you have no more doubts.
With Thanks And Regards,
vmax
-
- Posts: 196
- Joined: Tue Oct 30, 2007 7:27 am
You could always use a avr usb device. There is a eval board for at90usb1278, the USBKey.
I am currently developing my own board for this device, I am having some strange problems, but when it works, it works fine
There is plenty of example code in atmel's site to get you started!
Forgot to mention. The at90usb1287 comes with a pre programmed bootloader, so you can program it through Usb using Atmel's FLIP.
I am currently developing my own board for this device, I am having some strange problems, but when it works, it works fine
There is plenty of example code in atmel's site to get you started!
Forgot to mention. The at90usb1287 comes with a pre programmed bootloader, so you can program it through Usb using Atmel's FLIP.
-
- Posts: 472
- Joined: Tue Jan 08, 2008 12:43 am
AVR-USB?vmax wrote:Hi,
can you tell me what are the option available for me? i think you understood my application.i am again writing my application in more specific format.
Host Computer ->any Atmel IC -> any electronic device control through 8/16 I/O lines.
Host computer will contain the driver for specific IC. i would call this driver in my application programe to control electronic device(8/16 I/O lines).my application will contain the programming for controlling the 8/16 I/O Lines.which would be written in turboC/VC++/C++.
atmel IC:the commands from the programming will be sent to USB port.From USB port it will be given to any low speed/full speed/high speed atmel IC. out put of this IC will be 8/16 I/O lines.which will be given to various electonic device.
Electronic Device: This will vary from time to time for ex.stepper motor, relays,LED,LCD displays etc.and programming for this devices will be different.but driver will remain same.
I Hope, you understood my application very well.and you have no more doubts.
With Thanks And Regards,
vmax
http://www.obdev.at/
It's the TinyUSB project's "big brother". What you're talking about sounds a lot like CDC-IO (part of the AVR-CDC project, which is based on AVR-USB.)
Please be positive and constructive with your questions and comments.