This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ACK, SOH , STX ascii format

Private Function negotiate() As String Dim nego As String = Chr(6) + Chr(48) + Chr(53) + Chr(49) + Chr(13) + Chr(10) sp1.Output(nego) End Function

THIS IS A vb FUCTION,i need to send this string in assembly lnaguage from 8051 through serial port, first character is ACK, i dont understand how to send ACK, and CR and LF in assembly, the receiver sysem requires ASCii data, can i put their HEX values?? i tested the system with hyper terminal, and sent ctrlF for ACK,and it worked. can i use
MOV, A, '^F'
lcall TRANS
TRANS: SETB TR1 MOV SBUF,A ;load SBUF

HERE: JNB TI,HERE ;wait for the last bit

CLR TI ;get ready for next byte RET

will it be treated as ACK? 'value has been trucated to 8 bits' this is assembler's response

secondly, the receiver works with 7 data bits and even parity, how do i select thses settings using 8051

Parents
  • I DID CHECK the ascii tables, for ack, soh, stx etc, we have hex, dec value of 6 for ACk, and the character is ctrlF, which shows a symbol on hyper terminal and works fine, but doesnt appear when i program in assembly...and if i send a 6 in place of ACK, would the receiver take it as ACK? or the number 6??? i am getting errors

Reply
  • I DID CHECK the ascii tables, for ack, soh, stx etc, we have hex, dec value of 6 for ACk, and the character is ctrlF, which shows a symbol on hyper terminal and works fine, but doesnt appear when i program in assembly...and if i send a 6 in place of ACK, would the receiver take it as ACK? or the number 6??? i am getting errors

Children