omidsht
Active Member
   Muted
Offline
Posts: 192
Thank You
-Given: 60
-Receive: 16
|
 |
« on: December 16, 2007, 05:07:09 05: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
Posts: 80
Thank You
-Given: 86
-Receive: 40
|
 |
« Reply #1 on: December 16, 2007, 07:31:26 07:31 » |
|
Hi FT232 from FTDI does the job. http://www.ftdichip.com/Products/FT232BM.htmSingle 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 LQFP package Regards
|
|
|
Logged
|
|
|
|
s_ch
Newbie
Offline
Posts: 7
Thank You
-Given: 1
-Receive: 1
|
 |
« Reply #2 on: December 16, 2007, 09:49:12 09:49 » |
|
FT232R from FTDI. Have minimum external elements (no need external rezonator,eeprom).very easy circuit.
|
|
|
Logged
|
|
|
|
zetd
Junior Member

Offline
Posts: 68
Thank You
-Given: 18
-Receive: 32
|
 |
« Reply #3 on: December 16, 2007, 10:55:38 10: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.htmAVR309 http://www.atmel.com/dyn/resources/prod_documents/AVR309.ziphttp://www.obdev.at/products/avrusb/index.html
|
|
« Last Edit: December 16, 2007, 11:03:11 11: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
Posts: 80
Thank You
-Given: 86
-Receive: 40
|
 |
« Reply #4 on: December 16, 2007, 11:37:58 11: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, 11:46:34 11:46 by 8K51 »
|
Logged
|
|
|
|
omidsht
Active Member
   Muted
Offline
Posts: 192
Thank You
-Given: 60
-Receive: 16
|
 |
« Reply #5 on: December 16, 2007, 12:17:30 12: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
Posts: 80
Thank You
-Given: 86
-Receive: 40
|
 |
« Reply #6 on: December 16, 2007, 01:38:02 13: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
Posts: 192
Thank You
-Given: 60
-Receive: 16
|
 |
« Reply #7 on: December 16, 2007, 05:38:31 17: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
Posts: 8
Thank You
-Given: 2
-Receive: 2
|
 |
« Reply #8 on: January 06, 2008, 06:33:33 18: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, 10:20:02 22:20 » |
|
|
|
|
Logged
|
|
|
|
vibrex2007
Newbie
Offline
Posts: 9
Thank You
-Given: 2
-Receive: 0
|
 |
« Reply #10 on: January 10, 2008, 07:09:48 19:09 » |
|
|
|
|
Logged
|
|
|
|
whoami
Guest
|
 |
« Reply #11 on: January 18, 2008, 06:28:44 06:28 » |
|
FTDI FT232RL use a few component. easy to implement.
|
|
|
Logged
|
|
|
|
demorphica
Inactive
Offline
Posts: 6
Thank You
-Given: 0
-Receive: 1
|
 |
« Reply #12 on: January 29, 2008, 07:10:10 07: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
|
|
|
|
|