??? 02/06/05 07:06 Read: times |
#86641 - code for sending a character Responding to: ???'s previous message |
Hi,
org 0 baudnum equ 0f3h anl pcon,#7fh anl tmod,#30h orl tmod,#20h mov th1,#baudnum setb tr1 mov scon,#40h xmit: MOV sbuf,#"M" wait: JBC ti,xmit SJMP wait end Here a baud rate of 2404 is used.This should transmit 'M' cntinuosuly to the pc.You can see this in hper terminal of windows.I tested it .It works perfectly. Use loop back handshaking.I have given details of connection in this forum.Check it.With max232 16 pin ic this works. |
Topic | Author | Date |
need help on serial communication | 01/01/70 00:00 | |
Your setup | 01/01/70 00:00 | |
simulator testing | 01/01/70 00:00 | |
read eall about it | 01/01/70 00:00 | |
Hardware | 01/01/70 00:00 | |
Why the MAX232 | 01/01/70 00:00 | |
Yes :) you right Steve. | 01/01/70 00:00 | |
Handshaking? | 01/01/70 00:00 | |
One step at a time | 01/01/70 00:00 | |
setup correct? | 01/01/70 00:00 | |
connector pinouts | 01/01/70 00:00 | |
Schematic | 01/01/70 00:00 | |
help again sorry | 01/01/70 00:00 | |
easy | 01/01/70 00:00 | |
Exclude trivial problems | 01/01/70 00:00 | |
code for sending a character | 01/01/70 00:00 | |
loop back handshaking![]() | 01/01/70 00:00 |