Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to test serial port

Status
Not open for further replies.

vinodstanur

Advanced Member level 3
Advanced Member level 3
Joined
Oct 31, 2009
Messages
751
Helped
114
Reputation
234
Reaction score
114
Trophy points
1,333
Location
Kerala (INDIA)
Activity points
7,054
In my pc serial port, pin number 3 is showing (negative) -12v with respect to ground pin 5. But in many circuits like serial port pic programmer, IR signal testing etc I had noticed pin no 3 have +ve 12 volt....IS THERE ANY PROBLEM WITH MY SERIAL PORT?

---------- Post added at 08:13 AM ---------- Previous post was at 08:05 AM ----------

ones I plugged a usb pen drive in serial port , without properly looking to the port....I unplugged it within 2 minutes.
 

sicheng163

Member level 2
Member level 2
Joined
Oct 19, 2009
Messages
45
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Location
Chengdu,China
Activity points
1,567
just use a serial port test software to check if it works normally,
and you can short pin 2 and 3, then send some datas, you will receive the same data,
and all will be showed in that test software
 

Sharath411

Member level 1
Member level 1
Joined
Mar 27, 2010
Messages
38
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
Bangalore
Activity points
1,529
Just open hyper terminal in your system and short pin 2 & 3 in the serial port whatever you type by the key board the hyper terminal window will show that.
 

Jickson88

Newbie level 5
Newbie level 5
Joined
Jan 1, 2010
Messages
8
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
India
Activity points
1,324
Short pin 2 & 3 using som jumper ,and send some data using hyperterminal or putty etc ,if working u get the data u hav sended!!!!
 

incomplete_jerin

Advanced Member level 2
Advanced Member level 2
Joined
Jun 4, 2010
Messages
549
Helped
97
Reputation
208
Reaction score
92
Trophy points
1,308
Location
INDIA
Activity points
3,912
Just short the 2 & 3 pins of the DB9 connector & the data you type will be displayed on the hyper terminal.
 

zoro1

Member level 3
Member level 3
Joined
Aug 16, 2007
Messages
60
Helped
11
Reputation
22
Reaction score
11
Trophy points
1,288
Activity points
1,571
With shorting pind 2 and3 you are testing only RX and TX ping.Diffеrent programs are sending data to 3 and2 ,but other pins may have U on it/pozitive or negative depends from software/
 

Kurenai_ryu

Advanced Member level 2
Advanced Member level 2
Joined
Jun 10, 2006
Messages
671
Helped
159
Reputation
316
Reaction score
99
Trophy points
1,308
Location
Bolivia
Activity points
5,915
as far as i know... the idle state of the TX pin must be MARK (logic 1??) which should be -12V respect Ground Signal (PIN 5)

of course during communication the state switches to SPACE (logic 0) which is +12V respect ground... but it must be idle most the time...

it's hard to believe that other circuits have diferent behaviour as you stated...
 

zoro1

Member level 3
Member level 3
Joined
Aug 16, 2007
Messages
60
Helped
11
Reputation
22
Reaction score
11
Trophy points
1,288
Activity points
1,571
with IC Prog and Simple JDM programator you can get from COM power to program the PIC MCU,but some of the new motherboards con provide onli 3-4 V on PIN,so it is imposible to use this programmer ,and need extra power.
May be in idle mode is you say so,but it depends on PC OS and drivers or/and programs installed on the PC.
 

vinodstanur

Advanced Member level 3
Advanced Member level 3
Joined
Oct 31, 2009
Messages
751
Helped
114
Reputation
234
Reaction score
114
Trophy points
1,333
Location
Kerala (INDIA)
Activity points
7,054
how to open hyperterminal? I don't know much about these

---------- Post added at 18:26 ---------- Previous post was at 18:24 ----------

my mother board is gigabyte s series G31M-ES2L

---------- Post added at 18:34 ---------- Previous post was at 18:26 ----------

but I installed pic prog software and opened it and simply loaded a hex file...But no circuit is connected to my serial port. Then i tested pin 3 voltage with respect to pin 5(ground) using multimeter. Then i noticed it is -12v! This is making me much confusion...Actually according to the burning circuit the +5v regulator input is connected to pin 3 . This proves that pin 3 should provide positive volt >7 with respect to ground.
Actually, is my serial port the right one (RS232) ? Is there another type of serial port? The male pins in my pc serial port is little bit thick ones when i compared with my friends pc serial port!!:roll:
 

zoro1

Member level 3
Member level 3
Joined
Aug 16, 2007
Messages
60
Helped
11
Reputation
22
Reaction score
11
Trophy points
1,288
Activity points
1,571
yes it is the com!
If you want by usb/com -for most programmers do not work,but for simulacion is great!
 

incomplete_jerin

Advanced Member level 2
Advanced Member level 2
Joined
Jun 4, 2010
Messages
549
Helped
97
Reputation
208
Reaction score
92
Trophy points
1,308
Location
INDIA
Activity points
3,912
To open the serial port go to START->ACCESSORIES->COMMUNICATIONS->HYPERTERMINAL.......... Get started.......
Regards,
Jerin. :)
 

dimas_lilik

Full Member level 2
Full Member level 2
Joined
Aug 13, 2007
Messages
125
Helped
13
Reputation
26
Reaction score
11
Trophy points
1,298
Location
Indonesia
Activity points
1,948
Hi, Vinodstanur
Are you sure. It's RS232, not RS 485..?
Because in my computer likes your computer, in my computer only have RS 485, USB dan hiperterminal.
may be you must check again.
 

nikhil_jain

Member level 4
Member level 4
Joined
Sep 20, 2010
Messages
76
Helped
37
Reputation
76
Reaction score
36
Trophy points
1,308
Location
India
Activity points
1,622
test serial port : hyperterminal

best way is to test thru hyperterminal.. check the following link.. in the video section you can see how to work with hyperterminal

**broken link removed**

check out the circuit connections of RS232 as well
 

koinonia

Newbie level 6
Newbie level 6
Joined
Jul 13, 2007
Messages
11
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,351
hi guys,

I want to my pC connect to MCU then the data will be displayed on an electronic board. Question: do you have any idea how to program VB so that it can send data thru its USB port to RS232 of MCU..

Really need help..Thanks
 

Jickson88

Newbie level 5
Newbie level 5
Joined
Jan 1, 2010
Messages
8
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
India
Activity points
1,324
just hav the driver installed for usb to serial port, then ur usb will be recongnised as a serial port, then same way as u do for ordinary serial port .....
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top