Need Serious Help
Wed Jan 28 2009, 06:48 am
I tried in my lab, but I could not do the echo when I type in hyper terminal.
Wed Jan 28 2009, 07:48 am
Now I just need to try connecting a RFID and a microcontroller, so that they can send bits/byte via serial port.. Hope you guys can help me thanks A LOT :-)
Wed Jan 28 2009, 12:51 pm
I now trying to use VB to send data through serial port. Is that possible?
Thu Jan 29 2009, 01:47 am
yes that is possible, search in forum for any help in VB MSCOMM programming.
Thu Jan 29 2009, 06:53 am
Hi ajay, I have write a program for serial comm on VB, also I have dl some program from the net, but all cannot work. Are there any steps of connecting the serial cable from PC to microcontroller? Because I heard that it need some voltage in order for it to work.
Thanks!
Thanks!
Thu Jan 29 2009, 08:28 am
Hi SG...
seems you are trying too many things at once.
Were you able to communicate with the micro using hyperterminal?
If no,then VB,too,won't work.
First of all write a small program for the micro to send out a string of bytes like 'a' or 'b' or whatever.Download the program into the micro,connect the pc's serial port,fire up hyperterminal and see if you can receive the bytes in hyperterm.This will basically ensure that your serial link is ok,then you can move on to bigger things.
Are you working with the dev board or a separate micro on a breadboard?
If the dev board then are you using J5 to connect to the pc?
Finally,the VB program you downloaded...is it for sending or receiving or both?
And at the micro end...which code are you using?
seems you are trying too many things at once.
Were you able to communicate with the micro using hyperterminal?
If no,then VB,too,won't work.
First of all write a small program for the micro to send out a string of bytes like 'a' or 'b' or whatever.Download the program into the micro,connect the pc's serial port,fire up hyperterminal and see if you can receive the bytes in hyperterm.This will basically ensure that your serial link is ok,then you can move on to bigger things.
Are you working with the dev board or a separate micro on a breadboard?
If the dev board then are you using J5 to connect to the pc?
Finally,the VB program you downloaded...is it for sending or receiving or both?
And at the micro end...which code are you using?
Thu Jan 29 2009, 08:47 am
Hi sashijoseph! I tried to use hyperterminal, but when i type on the hyperterminal,it cannot produce any echo thats y i decide to use vb to communicate with the serial port.
Ya I using J5 to connect.
The vb program that I downloaded is for both send and receive.
Ya I using J5 to connect.
The vb program that I downloaded is for both send and receive.
Thu Jan 29 2009, 03:03 pm
guys need help, is there anything wrong with the serial port coding which shown on the first page? because i try a loop back and it could not work! So I am wondering is the coding correct or not
Thanks!
Thanks!
Fri Jan 30 2009, 12:35 am
check this small code on your board and use hyper terminal to check its o/p
check o/p on hyperterminal at baud 9600 make sure of crystal.
ORG 0h MOV TMOD,#20H MOV SCON,#50H MOV TH1,#0FDH ;make sure you are using 11.0592Mhz MOV THL1,#0FDH ;if frequency is diff then calculate value of TH1 for 9600 baud SETB TR1 back: MOV SBUF,#'A' JNB TI,$ CLR TI SJMP back end
check o/p on hyperterminal at baud 9600 make sure of crystal.
Fri Jan 30 2009, 08:18 am
Yay Finally can work! everything works! THANKS EVERYONE
Btw the serial communication initialization got a bit wrong, because i try to did what is on the first page it cannot work, it need this in order to work "XBR0 = 0x01" Like this then can work!
Btw the serial communication initialization got a bit wrong, because i try to did what is on the first page it cannot work, it need this in order to work "XBR0 = 0x01" Like this then can work!
Powered by e107 Forum System