Serial Control Register
- Address: 0x98
- Size: 8 bit
- Byte and Byte addressable
- Used to configure and control serial port
Bit | Description |
---|---|
RI | Set, to indicate a byte has been received by 8051 and placed in SBUFF |
TI | Set, when 8051 finishes transfer of 8-bit character |
RB8 | Receive bit 8. This is the 9th bit received in modes 2 and 3. If SM2=0, RB8 is the stop bit |
TB8 | Transmit bit 8. This is the 9th bit transmitted in modes 2 and 3 |
REN | Receiver enable/disable bit. Set HIGH to receive data on the RxD pin |
SM2 | Enables multiprocessor communication in modes 2 and 3. In mode 2 or 3, if SM2 is set to 1 then RI will not be activated if the received 9th data bit (RB8) is 0. In mode 1, if SM2 = 1 then RI will not be activated if a valid stop bit was not received. In mode 0, SM2 should be 0. |
SM1 | Serial mode selection (see below) |
SM0 | Serial mode selection (see below) |
SM0 | SM1 | Mode | Operation | Baud rate |
---|---|---|---|---|
0 | 0 | 0 | Shift register | Osc/12 |
0 | 1 | 1 | 8-bit UART(8-bit data, 1 start bit, 1 stop bit.) | Set by timer (variable) |
1 | 0 | 2 | 9-bit UART | Osc/12 or Osc/64 |
1 | 1 | 3 | 9-bit UART | Set by timer (variable) |
Related topics:
8051 Registers | 8051 Program Counter | 8051 R Registers | 8051 SFR | 8051 P Registers | 8051 Stack | 8051 Stack Pointer | 8051 Data Pointer | 8051 PCON Register | 8051 TCON Register | 8051 TMOD Register | 8051 Timer Registers | 8051 SBUF Register | 8051 IE Register | 8051 IP Register | 8051 PSW Register | 8051 A Register | 8051 B Register
List of topics: 8051
No comments:
Post a Comment