| ??? 07/23/01 14:10 Read: times |
#13418 - 80C320 serial port problems. |
Hi,
Sorry, this is probably old ground, I've checked the forum for messages like this, and tried the suggestions there, but I'm still having trouble. I've got a 80C320 running at 24Mhz (the crystal says 24.0) I've set the serial port up in mode 3, and am trasnmitting using a timer value of 0F3h (243) which should make the timer overflow at the speed required for a 9600 baud connection I se PCON.7 to 1 for rate doubling, and am sending 'X' followed by '#' My questions is this: What is the setting for HyperTeminal, or similar package to see what's being sent? I have it set to 9600,8,N,1 and it gets weird chars through, they are an O with dots over it and a U with a ^ over it. it seems like it's working, but the chars are getting gabled. Here's the set-up code for the test program I'm using:- setb EA setb TR1 mov TH1,#0FFh mov TMOD,#00100001B mov SCON,#11010000B mov PCON,#10000000B label1: mov SBUF,#'X' jnb TI,$ clr TI mov SBUF,#'#' jnb TI,$ clr TI jmp label1 |



