|
|
SERPER
This register contains the control bit LONG reffered to
above, and a 15 bit number defining the serial port
Baud rate. If this number is N,then the baud rate is
1 bit every (N+1)*.2794 microseconds.
+-------+----------+---------------------------------------------------+
| BIT# | FUNCTION | DESCRIPTION |
+-------+----------+---------------------------------------------------+
| 15 | LONG | Defines serial receive as 9 bit word. |
| 14-00 | PERIOD | Defines baud rate [=1/((N+1)*.2794 microseconds)] |
+-------+----------+---------------------------------------------------+
If you know the Baud Rate, you may calculate period
for it with following formula:
3579546
PERIOD = ------------- - 1
BAUD RATE
Periods for some most common baud rates are:
+-----------+--------+
| Baud Rate | Period |
+-----------+--------+
| 300 | 11931 |
| 600 | 5965 |
| 1200 | 2982 |
| 2400 | 1490 |
| 4800 | 745 |
| 9600 | 372 |
| 14400 | 248 |
| 28800 | 123 |
+-----------+--------+
|