Saturday, February 27, 2016

8051 SCON Register

Serial Control Register

  • Address: 0x98
  • Size: 8 bit
  • Byte and Byte addressable
  • Used to configure and control serial port

8051 SCON Register

BitDescription
RISet, to indicate a byte has been received by 8051 and placed in SBUFF
TISet, when 8051 finishes transfer of 8-bit character
RB8Receive bit 8. This is the 9th bit received in modes 2 and 3. If SM2=0, RB8 is the stop bit
TB8Transmit bit 8. This is the 9th bit transmitted in modes 2 and 3
RENReceiver enable/disable bit. Set HIGH to receive data on the RxD pin
SM2Enables 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.
SM1Serial mode selection (see below)
SM0Serial mode selection (see below)

SM0SM1ModeOperationBaud rate
000Shift registerOsc/12
0118-bit UART(8-bit data, 1 start bit, 1 stop bit.)Set by timer (variable)
1029-bit UARTOsc/12 or Osc/64
1139-bit UARTSet 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