| ??? 12/01/02 12:25 Read: times |
#33505 - Serial programming problem |
Hi,
I have come across an exercise in a book whith the following problem. Write a program that inputs charcters from the device attached to the 8051 serial port and echoes them back to the screen converting lowercase chars to uppercase. My 8051 is attached to the PC and I communicate with it via Hper Terminal. I understood how to initialize the serial port and the following Inchar and Outchar subroutine were provided. INCHAR : JNB RI,$ ;WAIT FOR CHAR CLR RI ;CLEAR FLAG MOV A, SBUF; READ CHAR INTO A RET OUTCHAR : CLR TI; CLEAR FLAG MOV SBUF,A ; SEND LETTER TO PORT AGAIN : JNB TI, AGAIN RET Can someone help me with the program? Thanks John |
| Topic | Author | Date |
| Serial programming problem | 01/01/70 00:00 | |
| RE: Serial programming problem | 01/01/70 00:00 | |
| RE: Serial programming problem | 01/01/70 00:00 | |
| RE: Serial programming problem | 01/01/70 00:00 | |
| RE: Serial programming problem | 01/01/70 00:00 | |
| RE: Serial programming problem | 01/01/70 00:00 | |
| RE: Serial programming problem | 01/01/70 00:00 | |
| RE: Serial programming problem | 01/01/70 00:00 | |
| RE: Serial programming problem | 01/01/70 00:00 | |
| RE: Serial programming problem | 01/01/70 00:00 | |
| RE: Serial programming problem | 01/01/70 00:00 | |
| RE: Serial programming problem | 01/01/70 00:00 | |
RE: Serial programming problem | 01/01/70 00:00 |



