| ??? 07/14/05 03:38 Read: times |
#97298 - ACK byte? Responding to: ???'s previous message |
ACK byte? I just send the byte that the MCU recieved back to the computer.
I Dont understand why its not working, Heres my code, I want to take each byte I recieve and store it into memory location starting at 80h and on... WHILE: JNB RI,$ MOV A,SBUF //////// Gets recieve byte mov r1,a clr RI mov a,#080h add a,g mov r0,a mov a,r1 mov @R0,a //////// Store recieve byte into memory location 80h,81h,82 depending on counter mov a,r1 cpl a ///////// chek end byte FF jz NORECI jmp NEWBUF NEWBUF: ///////// Inc counter and loop for next byte inc g sjmp WHILE NORECI: ///////// end and send character "D" to screen CLR TI CLR RI MOV SBUF,#044h JNB TI,$ clr a clr ti clr ri //// I took out the echo part to see if it was too slow, but it still does not work correctly. but it works somewhat |
| Topic | Author | Date |
| Serial Com MCU not recieving right bytes | 01/01/70 00:00 | |
| Unprintable characters | 01/01/70 00:00 | |
| ACK byte? | 01/01/70 00:00 | |
| where are you seeing the output? | 01/01/70 00:00 | |
| re: | 01/01/70 00:00 | |
| screen? | 01/01/70 00:00 | |
| re: | 01/01/70 00:00 | |
| try to count number of bytes received. | 01/01/70 00:00 | |
| done | 01/01/70 00:00 | |
| overrun test | 01/01/70 00:00 | |
| :) | 01/01/70 00:00 | |
| so it was overrun | 01/01/70 00:00 | |
Software flow control? | 01/01/70 00:00 |



