Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
March 28, 2024, 03:58:55 15:58


Login with username, password and session length


Pages: [1]
Print
Author Topic: rs232/usart  (Read 3353 times)
0 Members and 1 Guest are viewing this topic.
wop
Newbie
*
Offline Offline

Posts: 11

Thank You
-Given: 5
-Receive: 0


« on: June 02, 2006, 10:17:28 10:17 »

So I am using an hcs12 and trying to communicate to another device using a usart. i have noticed that i must connect the transmit line of the usart to the transmit line of my rs232 level shifter to get things to display on my computer, why is this?

thank you.
Logged
donat
Guest
« Reply #1 on: December 05, 2007, 05:46:57 17:46 »

this is because the max 232 is as you say a level shifter, it just upps the levels.

The tx and Rx lines should be mixed from the rs232 to the PC.

Greets. D.
Logged
computer
Newbie
*
Offline Offline

Posts: 17

Thank You
-Given: 13
-Receive: 2


« Reply #2 on: December 11, 2007, 09:06:10 21:06 »

The level shifter must convert the TTL signal from the HC12(0V for logic 0 and 5V for logic 1) to the computer's RS232 standart signals(12V for logic 0 and -12V for logic 1).

[]'s
Logged
yoda
Junior Member
**
Offline Offline

Posts: 63

Thank You
-Given: 706
-Receive: 18


« Reply #3 on: December 13, 2007, 11:27:13 23:27 »

i have noticed that i must connect the transmit line of the usart to the transmit line of my rs232 level shifter to get things to display

Hello,
The TX and RX indications are given to I/O lines following the RIAA or RS232 specifications for DB25 connectors, which are male and female (of course) and in some situations don't reflect the actual data direction, which can be confusing.
Bye
 Undecided
Logged
pici192
Guest
« Reply #4 on: December 21, 2007, 01:13:54 13:13 »

Are you think on this?:
http://www.sprut.de/electronic/pic/grund/rs232.htm
Logged
pinoytsikboy
Junior Member
**
Offline Offline

Posts: 66

Thank You
-Given: 68
-Receive: 11


« Reply #5 on: December 22, 2007, 03:25:12 03:25 »

Hi. if you are into microcontrollers, some of them has built in TX/RCV for RS232. no need for level shifters. PIC 16f87xx series and some 18Fxxx are examples.
Logged
yoda
Junior Member
**
Offline Offline

Posts: 63

Thank You
-Given: 706
-Receive: 18


« Reply #6 on: August 07, 2008, 10:54:43 22:54 »

Hi. if you are into microcontrollers, some of them has built in TX/RCV for RS232. no need for level shifters. PIC 16f87xx series and some 18Fxxx are examples.

Is that true? You should connect + and - 12v. to the chip then, or are there switchers inside like in the Maxim 232 chips?
Logged
sunskier
Guest
« Reply #7 on: August 12, 2008, 07:06:54 07:06 »

Sorry, I don't think so. First, i am a newbie learn'n pic.
But, there always has max232 chip between pic and rs232.
If you connect +/-12v to pic directly, it'll burn.   Sad
Logged
yoda
Junior Member
**
Offline Offline

Posts: 63

Thank You
-Given: 706
-Receive: 18


« Reply #8 on: August 13, 2008, 11:01:44 11:01 »

Hi. if you are into microcontrollers, some of them has built in TX/RCV for RS232. no need for level shifters. PIC 16f87xx series and some 18Fxxx are examples.

Only if you connect on logic level (ttl) you can leave out a level shifter IC. But then you should'nt call that RS232, because that implies using + and minus voltages.

So you can definitly not connect a 16F87 chip without a levelshifter (max232) to an RS232 device, cause the PIC is all ttl only.
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