16.2 Clock Precision for Asynchronous Operations
The output of the internal oscillation circuit (INTOSC) is calibrated by the manufacturer. But when VDD
or temperature changes, INTOSC will have a frequency shift, which will directly affect the asynchronous
baud rate. The baud rate clock can be adjusted by the following methods, but some type of reference is
required clock source.
16.3 USART Related Register
TXSTA:transmit status and control register (117H)
clock sources election bit;
1=master control mode (internal BRG generate clock signal);
0=slave mode (external clock source generate clock).
9-bit transmit enable bit;
USART mode selection bit;
Synchronous clock polarity selection bit.
1= Invert the level of the data character and transmit to the TX/CK pin;
0= Directly transmit data character to TX/CK pin.
0= Data is transmitted on the rising edge of clock;
1= Data is transmitted on the falling edge of clock.
Stop bit selection (only valid for asynchronous transmit), this bit needs to
write to 0 when giving data for transmit by judge TRMT=1.
Transmit shift register status bit;
9
th
bit of Transmit data.
Can be address/data bit or parity check bit.
Note:
1) In synchronous mode, SREN/CREN will invert the value of TXEN.
2) When sending data by judging TRMT=1, STOPBIT needs to write 0.