??? 09/30/05 05:17 Read: times |
#101753 - CR/LFs Responding to: ???'s previous message |
Jeff Corr said:
Im using hyperterminal, I've also used the MTK from Dallas and loaded the SBCMON correctly. However, all the lines simply "go together" until they wrap around at the end of the terminal display. In HyperTerminal (or any terminal), set "Append LFs to CRs" to "on." If I remember correctly, in HypterTerminal this is in "Properties" and then "ASCII Translation." I noticed in the ASM file for this that each DB line ( DB " Initialized.",13,0) ends in 13,0 ; what is this? 13 is a "carriage return". 0 is the null character that indicates the termination of the character string so that the "SendData" subroutine knows when it has reached the end of the string to send to the UART. and I tried for kicks adding ,CR to the end of this (since CR is set in the source as well) to attempt to generate a carriage return after each line, making the stream coming from the 8051 easier to read but to no avail. You'd want to change all the "13,0" instances to "13,10,0". 10 is the ASCII value for a linefeed. However, this solution isn't 100% perfect because some parts of SBCMON send out a CR at the byte level rather than calling the SendSerial routine--so even if you change all the 13,0's to 13,10,0's you're still going to have some linefeed problems. But I'd recommend the above solution about setting "Append LFs to CRs". That's the easiest solution and should require no modification to the program. Then again, you say all the lines scroll off to the right until they wrap around. That makes no sense. When you have a CR/LF problem, the lines tend to overwrite themselves. I can't imagine what would cause your terminal program to just scroll from one line to the next--unless it is, for some reason, ignoring the CR character. But I don't know why it would be doing that. Regards, Craig Steiner |
Topic | Author | Date |
How to set SBCMON DB lines to CR | 01/01/70 00:00 | |
CR/LFs | 01/01/70 00:00 | |
thanks | 01/01/70 00:00 | |
Settings for Hyperterminal | 01/01/70 00:00 | |
OS![]() | 01/01/70 00:00 | |
xram detection | 01/01/70 00:00 |