AT87C52X2-3CSUV Atmel, AT87C52X2-3CSUV Datasheet - Page 20
![no-image](/images/manufacturer_photos/0/0/78/atmel_sml.jpg)
AT87C52X2-3CSUV
Manufacturer Part Number
AT87C52X2-3CSUV
Description
Microcontrollers (MCU) Microcontroller
Manufacturer
Atmel
Datasheet
1.AT87C52X2-3CSUV.pdf
(55 pages)
Specifications of AT87C52X2-3CSUV
Data Bus Width
8 bit
Program Memory Type
EPROM
Program Memory Size
8 KB
Data Ram Size
256 B
Interface Type
UART
Maximum Clock Frequency
30 MHz
Number Of Programmable I/os
32
Number Of Timers
3 bit
Operating Supply Voltage
5 V
Maximum Operating Temperature
+ 70 C
Mounting Style
Through Hole
Package / Case
PDIL-40
Minimum Operating Temperature
0 C
Lead Free Status / Rohs Status
No
20
TS8xCx2X2
Table 9. SCON Register
SCON - Serial Control Register (98h)
Reset Value = 0000 0000b
Bit addressable
Number
FE/SM0
Bit
7
6
5
4
3
2
1
0
7
Mnemonic Description
SM0
SM1
SM2
REN
TB8
RB8
Bit
FE
RI
SM1
TI
6
Framing Error bit (SMOD0=1)
Clear to reset the error state, not cleared by a valid stop bit.
Set by hardware when an invalid stop bit is detected.
SMOD0 must be set to enable access to the FE bit
Serial port Mode bit 0
Refer to SM1 for serial port mode selection.
SMOD0 must be cleared to enable access to the SM0 bit
Serial port Mode bit 1
Serial port Mode 2 bit / Multiprocessor Communication Enable bit
Clear to disable multiprocessor communication feature.
Set to enable multiprocessor communication feature in mode 2 and 3, and
eventually mode 1. This bit should be cleared in mode 0.
Reception Enable bit
Clear to disable serial reception.
Set to enable serial reception.
Transmitter Bit 8 / Ninth bit to transmit in modes 2 and 3.
Clear to transmit a logic 0 in the 9th bit.
Set to transmit a logic 1 in the 9th bit.
Receiver Bit 8 / Ninth bit received in modes 2 and 3
Cleared by hardware if 9th bit received is a logic 0.
Set by hardware if 9th bit received is a logic 1.
In mode 1, if SM2 = 0, RB8 is the received stop bit. In mode 0 RB8 is not used.
Transmit Interrupt flag
Clear to acknowledge interrupt.
Set by hardware at the end of the 8th bit time in mode 0 or at the beginning of the
stop bit in the other modes.
Receive Interrupt flag
Clear to acknowledge interrupt.
Set by hardware at the end of the 8th bit time in mode 0, see Figure 7. and Figure
8. in the other modes.
SM0 SM1
0
0
1
1
SM2
5
0
1
0
1
Mode Description
0
1
2
3
REN
4
Shift Register F
8-bit UART
9-bit UART
9-bit UART
TB8
3
Baud Rate
Variable
F
Variable
XTAL
XTAL
/12 (/6 in X2 mode)
/64 or F
RB8
2
XTAL
/32 (/32, /16 in X2 mode)
TI
1
4184I–8051–02/08
RI
0