| ??? 07/24/03 06:27 Read: times |
#51282 - RE: Half-Duplex Responding to: ???'s previous message |
Pawan Deep Narula wrote:
------------------------------- Serial Interrupt Code for Tx: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SERIAL: JB RI,RECEIVE ;If Tx receives one byte, RI ;is set, and RECEIVE is reached. CLR TI ; else Tx transmits the byte MOV SBUF,@R0 RETI RECEIVE: CLR RI MOV P0,SBUF RETI ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Hi Pawan, If I am right in the SERIAL: subroutine you use the instruction JB RI,RECEIVE(remember this is a jump instruction)and in your RECEIVE:routine you have used RETI-->RETI pops address from the stack and your program hangs. Rgds Raj |
| Topic | Author | Date |
| Half-Duplex | 01/01/70 00:00 | |
| RE: Half-Duplex | 01/01/70 00:00 | |
| RE: Half-Duplex | 01/01/70 00:00 | |
| RE: Half-Duplex | 01/01/70 00:00 | |
RE: Half-Duplex | 01/01/70 00:00 | |
| RE: Half-Duplex | 01/01/70 00:00 | |
| RE: Half-Duplex | 01/01/70 00:00 |



