Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 08, 2016, 07:13:38 19:13


Login with username, password and session length


Pages: [1]
Print
Author Topic: connect avr rs232 to usb of pc ?  (Read 3490 times)
0 Members and 1 Guest are viewing this topic.
omidsht
Active Member
***
 Muted
Offline Offline

Posts: 193

Thank You
-Given: 60
-Receive: 16



« on: December 16, 2007, 06:07:09 06:07 »

hi ,
i want to convert the avr rs232 to usb of pc , because i need to use the baud rate more than 115.2kbps of avr rs232 (ex . 230.4 kbps) and pc does not support that , so i want to connect rs232 of avr(atmega16) to usb of pc to have higher baud rate , what shall i do and which IC should i use ?

waiting for your guide

omid
Logged
8K51
Junior Member
**
Offline Offline

Posts: 80

Thank You
-Given: 86
-Receive: 39


« Reply #1 on: December 16, 2007, 08:31:26 08:31 »

Hi
FT232 from FTDI does the job.
http://www.ftdichip.com/Products/FT232BM.htm

Single chip USB <=> asynchronous serial data transfer
Full handshaking & modem interface signals
UART interface supports 7/8 data bits, 1/2 stop bits and Odd/Even/Mark/Space/No Parity
Data transfer rate of 300 Baud => 3M Baud (TTL)
Data transfer rate of 300 Baud => 1M Baud (RS232)
Data transfer rate of 300 Baud => 3M Baud (RS422/RS485)
384 Byte Rx buffer/128 Byte Tx buffer for high data throughput
Adjustable Rx buffer timeout
Fully assisted hardware or X-On/X-Off handshaking
Available in standard 32 pin LQFP (FT232BM) and lead(Pb)-free LQ
FP package

Regards
Logged
s_ch
Newbie
*
 Muted
Offline Offline

Posts: 7

Thank You
-Given: 1
-Receive: 1


« Reply #2 on: December 16, 2007, 10:49:12 10:49 »

FT232R from FTDI. Have minimum external elements (no need external rezonator,eeprom).very easy circuit.
Logged
zetd
Junior Member
**
Offline Offline

Posts: 67

Thank You
-Given: 13
-Receive: 32


« Reply #3 on: December 16, 2007, 11:55:38 11:55 »

Yes, FT232XX, is best choice,

also there is an AVR based project, which translate USB <> RS232, called AVR Communication Device Class (CDC). no other chip to process USB stack, processing is done by software trick.

check this, but may not satisfied your requirement :
http://www.recursion.jp/avrcdc/
http://www.cesko.host.sk/IgorPlugUSB/IgorPlug-USB%20(AVR)_eng.htm
AVR309 http://www.atmel.com/dyn/resources/prod_documents/AVR309.zip
http://www.obdev.at/products/avrusb/index.html

« Last Edit: December 16, 2007, 12:03:11 12:03 by zetd » Logged

Dreams really do come true, when home robots do the dirty work for me. everythink is free, no war, no poison on my earth, everyone share thinks but not with my pretty girls,powered by science and humanity not by "dazzle think" - welcome to the planet of earth -
8K51
Junior Member
**
Offline Offline

Posts: 80

Thank You
-Given: 86
-Receive: 39


« Reply #4 on: December 16, 2007, 12:37:58 12:37 »

AVR only USB from 'obdev' is good for HID class but very limited for CDC serial class.
-CDC on USB1.1 is not standard, so not well supported by some OS.
-4800 bauds is max speed : http://www.recursion.jp/avrcdc/

If FTDI package is a problem then DIP PIC 18F2550 could serve.
« Last Edit: December 16, 2007, 12:46:34 12:46 by 8K51 » Logged
omidsht
Active Member
***
 Muted
Offline Offline

Posts: 193

Thank You
-Given: 60
-Receive: 16



« Reply #5 on: December 16, 2007, 01:17:30 13:17 »

thanks to all.
if i use ft232r , then which software i should use in pc to send and receive data from usb port ?
omid
Logged
8K51
Junior Member
**
Offline Offline

Posts: 80

Thank You
-Given: 86
-Receive: 39


« Reply #6 on: December 16, 2007, 02:38:02 14:38 »

Your chip will install a new serial port (virtual port), so every terminal (hyperterminal....) will send/get data !
CDC profile will work on XP, Linux...... without special software.
You just have to put the good driver at first time.
(Many USB to RS232 adaptators use FT232, others uses a Prolific chip.)
Regards

Logged
omidsht
Active Member
***
 Muted
Offline Offline

Posts: 193

Thank You
-Given: 60
-Receive: 16



« Reply #7 on: December 16, 2007, 06:38:31 18:38 »

thanks 8k51
do you have a cdc or ft232 project to give me as an example ?
omid
Your chip will install a new serial port (virtual port), so every terminal (hyperterminal....) will send/get data !
CDC profile will work on XP, Linux...... without special software.
You just have to put the good driver at first time.
(Many USB to RS232 adaptators use FT232, others uses a Prolific chip.)
Regards


Logged
id2
Newbie
*
Offline Offline

Posts: 8

Thank You
-Given: 2
-Receive: 2


« Reply #8 on: January 06, 2008, 07:33:33 19:33 »

You can use TUSB3410 (from TI) too,
it's same function as FTDI
I use both FT232BM and TUSB3410 to make my programmer
there are no any problem
Logged
Martin
Guest
« Reply #9 on: January 09, 2008, 11:20:02 23:20 »

Other type of conection AVR to USB you can found here
http://www.embedded-projects.net/index.php?page_id=165
Logged
vibrex2007
Newbie
*
Offline Offline

Posts: 9

Thank You
-Given: 2
-Receive: 0


« Reply #10 on: January 10, 2008, 08:09:48 20:09 »

Try it. SILICON LABS CP2101 or CP2103. No XTAL required. The best!  www.silabs.com/public/documents/tpub_doc/dsheet/Microcontrollers/Interface/en/CP2101.pdf
Logged
whoami
Guest
« Reply #11 on: January 18, 2008, 07:28:44 07:28 »

FTDI FT232RL use a few component. easy to implement.
Logged
demorphica
Inactive

Offline Offline

Posts: 6

Thank You
-Given: 0
-Receive: 1


« Reply #12 on: January 29, 2008, 08:10:10 08:10 »

try sunrom.com, they have a tiny usb converter board, which you can connect to avr using db9 plug, and usb patch cable at other end. you will also get libraries and code from them
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC