Hello,
How are you monitoring the characters sent by the SCI? The "funny characters" may be a representation of control characters that might be unknowingly sent. If you are terminating your string with a null character, is it possible this is being sent?
The actual representation of control characters may depend on the terminal program in use, assuming this is what you are using. The idle "character" will be seen as a delay, and should not generate any displayed character.
Peg,
The following is an exerpt from the 'QG8 data sheet -
The transmitter is enabled by setting the TE bit in SCIC2. This queues a preamble character that is one full character frame of the idle state. The transmitter then remains idle until data is available in the transmit data buffer.
Another excerpt from the same section -
Writing 0 to TE does not immediately release the pin to be a general-purpose I/O pin. Any transmit activity that is in progress must first be completed. This includes data characters in progress, queued idle characters, and queued break characters.
So it would appear that the idle is queued when first enabled, and when disabling the transmitter, this does not take effect until the transmit buffer is emptied and transmission is complete.
Regards,
Mac