gabriel
Active Member
Offline
Posts: 135
Thank You
-Given: 287
-Receive: 60
|
|
« on: August 20, 2010, 11:05:03 11:05 » |
|
Hello: I bought recently a USB-to-serial converter, after doing some tests I noticed that outputs signals aren't +/- 8 V like old ones, but they are logic levels 0/5V. is this normal? are they reliable? anyone has already experienced them? can we interface them directly to a microcontroller without a MAX232?
thanks
|
|
|
Logged
|
|
|
|
romi007
Inactive
Offline
Posts: 6
Thank You
-Given: 17
-Receive: 0
|
|
« Reply #1 on: August 20, 2010, 01:28:46 13:28 » |
|
Check data sheet of converter, it should says that it is USB to RS232 with TTL output. You can use it directly to uC if it is powered by 5V. Regards, Roman.
|
|
|
Logged
|
|
|
|
gabriel
Active Member
Offline
Posts: 135
Thank You
-Given: 287
-Receive: 60
|
|
« Reply #2 on: August 20, 2010, 04:12:45 16:12 » |
|
it's a converter without a datasheet nor a brand name, it comes just with a CD for the driver
|
|
|
Logged
|
|
|
|
romi007
Inactive
Offline
Posts: 6
Thank You
-Given: 17
-Receive: 0
|
|
« Reply #3 on: August 20, 2010, 05:04:16 17:04 » |
|
Well, if you are shure it is 0/5V (TTL level) then you can connect it directly to uC.
|
|
|
Logged
|
|
|
|
oldvan
Senior Member
Offline
Posts: 372
Thank You
-Given: 154
-Receive: 107
If the van is a Rockin'...
|
|
« Reply #4 on: August 20, 2010, 05:19:54 17:19 » |
|
RS232 is inverted from TTL, so at the very least need to invert the signals to interface to a uC UART.
|
|
|
Logged
|
Give a man a fish and you feed him for a day. Teach a man to fish and he will sit around in a boat drinking beer all day.
|
|
|
romi007
Inactive
Offline
Posts: 6
Thank You
-Given: 17
-Receive: 0
|
|
« Reply #5 on: August 20, 2010, 05:30:54 17:30 » |
|
I have MOXA converter (USB to RSR232) and never have to invert signals. Probably it is already done with USB/RS232 chip inside converter. But good to remember.
|
|
|
Logged
|
|
|
|
DreamCat
Senior Member
Offline
Posts: 283
Thank You
-Given: 223
-Receive: 116
|
|
« Reply #6 on: September 15, 2010, 09:59:52 09:59 » |
|
"Serial" just means the signal is serial transimission. maybe is RS232 standard, or TTL, or the other..
|
|
|
Logged
|
May be I expressed the wrong meaning, sorry for my bad english. Please correct it for me if you can.
|
|
|
Sideshow Bob
Cracking Team
Hero Member
Online
Posts: 1002
Thank You
-Given: 231
-Receive: 983
|
|
« Reply #7 on: September 15, 2010, 11:41:51 11:41 » |
|
Check data sheet of converter, it should says that it is USB to RS232 with TTL output. You can use it directly to uC if it is powered by 5V. Regards, Roman.
I have heard that cheap USB to RS232 converters do this trick. The problem is that it may not work well on all RS232 equipment. It is also true what the RS232 signals are inverted. But this always taken care of by the RS232 to TTL level converter IC. That is why the IO on say a MAX232 chip is drawn as inverters
|
|
|
Logged
|
I have come here to chew bubblegum and kick ass... and I'm all out of bubblegum
|
|
|
DarkClover
Active Member
Offline
Posts: 167
Thank You
-Given: 37
-Receive: 60
Still alive...
|
|
« Reply #8 on: September 15, 2010, 01:24:07 13:24 » |
|
Well, almost every USB to RS232 converter you can buy in store just has TTL level on the RS232 interface. To get the "real" levels you need some step-up electronic and op-amps.
A while ago i did that for a project. There was a step-up converter which created ~10V out of 5V USB voltage for driving the op-amps and they made the general level conversion. It's quite complicated to do such upconversions because you don't have enough current for every component so be sure to use low power design.
It worked well but if you just want to drive some microcontroller you only need a RS232 level converter IC (e.g MAX232) and your cheap USB to RS232 adapter.
|
|
« Last Edit: September 15, 2010, 01:43:59 13:43 by DarkClover »
|
Logged
|
Not thinking means to believe what others say! TRY & ERROR... the fundamental principle our existence is based on
|
|
|
pickit2
Moderator
Hero Member
Offline
Posts: 4667
Thank You
-Given: 834
-Receive: 4321
There is no evidence that I muted SoNsIvRi
|
|
« Reply #9 on: September 15, 2010, 01:45:46 13:45 » |
|
Also a lot of laptops that have a rs232 output port, the output is at TTL or 9V level never at original true - & + 12V Level.
|
|
|
Logged
|
Note: I stoped Muteing bad members OK I now put thier account in sleep mode
|
|
|
|