28 slave address mask enable register 1 (saden1), 29 serial port control (scon1), Interrupt priority (ip) – Maxim Integrated High-Speed Microcontroller User Manual
Page 40: Slave address mask enable register 0 (saden0), Saden1, Scon1, 7 bits, 7 and, 7 contr, Regis
High-Speed Microcontroller User’s Guide
Rev: 062210
40 of 176
4.2.28
Slave Address Mask Enable Register 1 (SADEN1)
7 6 5 4 3 2 1 0
SFR BAh SADEN1.7 SADEN1.6 SADEN1.5 SADEN1.4 SADEN1.3 SADEN1.2 SADEN1.1 SADEN1.0
RW-0
RW-0 RW-0 RW-0 RW-0 RW-0 RW-0 RW-0
R = Unrestricted Read, W = Unrestricted Write, -n = Value after Reset
SADEN1.7–
SADEN1.0
Bits 7–0
Slave Address Mask Enable Register 1. This register functions as a mask when
comparing serial port 1 addresses for automatic address recognition. When a bit in this
register is set, the corresponding bit location in the
compared with the incoming serial port 1 data to determine if a receiver interrupt should
be generated. When a bit in this register is cleared, the corresponding bit in the
register becomes a don’t care and is not compared against the incoming data.
All incoming data will generate a receiver interrupt when this register is cleared.
4.2.29
Serial Port Control (SCON1)
7 6
5 4 3 2 1 0
SFR C0h
SM0/FE_1
SM1_1
SM2_1
REN_1 TB8_1 RB8_1 TI_1 RI_1
RW-0 RW-0
RW-0 RW-0 RW-0 RW-0 RW-0 RW-0
R = Unrestricted Read, W = Unrestricted Write, -n = Value after Reset
SM0, SM1, SM2
Bits 7, 6, 5
Serial Port 1 Mode. These bits control the mode of serial port 1 as shown below. In
addition, the SM0 and SM2 bits have secondary functions as shown below.
SM0 SM1 SM2 MODE
FUNCTION
LENGTH
(BITS)
PERIOD
0 0 0 0
Synchronous
8 12t
CLK
0 0 1 0
Synchronous
8 4t
CLK
0
1
X
1
Asynchronous
10
Timer 1 baud-rate equation
1 0 0 2
Asynchronous
11
64t
CLK
(SMOD = 0)
32t
CLK
(SMOD = 1)
1 0 1 2
Asynchronous with multiprocessor
communication
11
64t
CLK
(SMOD = 0)
32t
CLK
(SMOD = 1)
1
1
0
3
Asynchronous
11
Timer 1 baud-rate equation
1 1 1 3
Asynchronous with multiprocessor
communication
11
Timer 1 baud-rate equation
SM0/FE_1
Bit 7
Framing Error Flag. When SMOD0 (
.6) = 0, this bit (SM0) is used to select the
mode for serial port 1. When SMOD0 (
.6) = 1, this bit (FE) will be set upon detection
of an invalid stop bit. When used as FE, this bit must be cleared in software. Once the
SMOD0 bit is set, modifications to this bit will not affect the serial port mode settings.
Although accessed from the same register, internally the data for bits SM0 and FE are stored
in different locations.
SM1_1
Bit 6
No alternate function.