free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Go to page  [1] 2 3 4
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
turker1
Sun Mar 16 2008, 11:10AM

 User Offline
Registered Member #6471
Joined: Wed Mar 05 2008, 11:52PM

Posts: 69
Thanked 0 times in 0 posts
Hi. I want to send some characters to pc.
I set baud rate 9600 in the pic.Then connect tx pin to serials rx. but in hyperterminal doesnt appear anything.
Then i set baud 2400 in my pic program. and opened hyperterminal . got some character but wrong chrachter .i sent 1 but get gç
i also used max232 but nothing changed.
please help. what is wrong?



electronic lover
Back to top


jiraju
Mon Mar 17 2008, 01:22AM
 User Offline
Registered Member #6679
Joined: Mon Mar 17 2008, 01:03AM

Posts: 5
Thanked 1 time in 1 posts
I recommend u to first check ur PC's serial port by shorting pin2 & 3 and send some characters via Hyper terminal. make sure u enabled the echo type character locally in settings->ASCII setup.
One more thing ground ur rx232 port's 5th pin with ur PC's 5th pin.
Back to top


turker1
Mon Mar 17 2008, 07:05AM

 User Offline
Registered Member #6471
Joined: Wed Mar 05 2008, 11:52PM

Posts: 69
Thanked 0 times in 0 posts
i tried. shorted 2&3. pins. then set baud rate 9600 and flow control hardware but when i send something nothing arrived.

electronic lover
Back to top


jiraju
Mon Mar 17 2008, 07:37AM
 User Offline
Registered Member #6679
Joined: Mon Mar 17 2008, 01:03AM

Posts: 5
Thanked 1 time in 1 posts
ok means u checkd ur PC serial port...and since nothing is arrived in hyper terminal it means that there is some problem in ur PCs serial port...
did u select the correct COM port in PC???? to check that go to device manager-> Ports where u check the which port is assigned for serial port. And in hyper terminal select that port only and sort pin 2&3 of PC serial port and check again.
Back to top


turker1
Mon Mar 17 2008, 07:38AM

 User Offline
Registered Member #6471
Joined: Wed Mar 05 2008, 11:52PM

Posts: 69
Thanked 0 times in 0 posts
ok. which baud rate must i use? and flow control must be hardware or none?

electronic lover
Back to top


Ajay
Mon Mar 17 2008, 10:57AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3753
Thanked 696 times in 655 posts
keep flow control none.

well if its working then you must see whatever you are typing.

try 115200 baud.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


turker1
Tue Mar 18 2008, 05:12AM

 User Offline
Registered Member #6471
Joined: Wed Mar 05 2008, 11:52PM

Posts: 69
Thanked 0 times in 0 posts
i tried if i press a key then comes the same one (without pressing enter)
so com port works.
now what is the problem?

electronic lover
Back to top


sashijoseph
Tue Mar 18 2008, 08:35AM

 User Offline
Registered Member #5870
Joined: Mon Feb 04 2008, 06:26PM

Posts: 552
Thanked 124 times in 117 posts
i also used max232 but nothing changed.

You mean you even connected the PIC and PC without MAX232?
If so then your PIC's serial port may be busted.Try using a different PIC and also show us your code.
And remember never hook up the mcu's and PC's serial ports without a level converter.

Let there be music........
Back to top


turker1
Tue Mar 18 2008, 08:43AM

 User Offline
Registered Member #6471
Joined: Wed Mar 05 2008, 11:52PM

Posts: 69
Thanked 0 times in 0 posts
but i only used pic's tx pin. so i can connect directly.if i use rx so i must use max232.
i connected pic's tx to serial 's rx and gnd to (-)
my program:

#include <16F628.h>
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_b1, rcv=PIN_b2)
void main(){
for (;;){
putc('1');

}


}

electronic lover
Back to top


turker1
Tue Mar 18 2008, 11:20AM

 User Offline
Registered Member #6471
Joined: Wed Mar 05 2008, 11:52PM

Posts: 69
Thanked 0 times in 0 posts
hey what is wrong?

electronic lover
Back to top


Go to page  [1] 2 3 4  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems