
EZ-USB FX2 Technical Reference Manual
Page 14-16 EZ-USB FX2 Technical Reference Manual v2.1
Table 14-11. SCON0 Register — SFR 98h
Bit Function
SCON0.7 SM0_0 - Serial Port 0 mode bit 0.
SCON0.6 SM1_0 - Serial Port 0 mode bit 1, decoded as:
SM0_0
SM1_0 Mode
000
011
102
113
SCON0.5 SM2_0 - Multiprocessor communication enable. In modes 2 and 3, this bit enables the mul-
tiprocessor communication feature. If SM2_0 = 1 in mode 2 or 3, then RI_0 will not be acti-
vated if the received 9th bit is 0.
If SM2_0=1 in mode 1, then RI_0 will only be activated if a valid stop is received. In mode
0, SM2_0 establishes the baud rate: when SM2_0=0, the baud rate is CLKOUT/12; when
SM2_0=1, the baud rate is CLKOUT/4.
SCON0.4 REN_0 - Receive enable. When REN_0=1, reception is enabled.
SCON0.3 TB8_0 - Defines the state of the 9th data bit transmitted in modes 2 and 3.
SCON0.2 RB8_0 - In modes 2 and 3, RB8_0 indicates the state of the 9th bit received. In mode 1,
RB8_0 indicates the state of the received stop bit. In mode 0, RB8_0 is not used.
SCON0.1 TI_0 - Transmit interrupt flag. Indicates that the transmit data word has been shifted out. In
mode 0, TI_0 is set at the end of the 8th data bit. In all other modes, TI_0 is set when the
stop bit is placed on the TXD0 pin. TI_0 must be cleared by firmware.
SCON0.0 RI_0 - Receive interrupt flag. Indicates that serial data word has been received. In mode 0,
RI_0 is set at the end of the 8th data bit. In mode 1, RI_0 is set after the last sample of the
incoming stop bit, subject to the state of SM2_0. In modes 2 and 3, RI_0 is set at the end of
the last sample of RB8_0. RI_0 must be cleared by firmware.
Table 14-12. EICON (SFR 0xD8) SMOD1 Bit
Bit Function
EICON.7 SMOD1 - Serial Port 1 baud rate doubler enable. When SMOD1 = 1 the baud rate for Serial
Port is doubled.
Table 14-13. PCON (SFR 0x87) SMOD0 Bit
Bit Function
PCON.7 SMOD0 - Serial Port 0 baud rate double enable. When SMOD0 = 1, the baud rate for Serial
Port 0 is doubled.
Komentarze do niniejszej Instrukcji