CMT2380F17
Rev0.1 | 229/347
www.cmostek.com
18.10.3
S0 Enhanced Mode
SM30,SM00,SM10 S0RCK S0TCK Function
Baud Rate Time Base
Note
000
0
0
shift
register
SYSCLK/12 or
SYSCLK/4 (URM0X3=1)
001
0
0
8-bit
UART
Timer 1 or Timer 2 overflow
When SMOD1 & SMOD2 =1
,
counter cannot be Full-1 or
Full-2 (Ex. 254, 255, 65534,
65535)
010
0
0
9-bit
UART
SYSCLK/64, /32, /16, or /8
011
0
0
9-bit
UART
Timer 1 or Timer 2 overflow
When SMOD1 & SMOD2 =1
,
counter cannot be Full-1 or
Full-2 (Ex. 254, 255, 65534,
65535)
100
0
0
SPI
Master
SYSCLK/12 or
SYSCLK/4 (URM0X3=1)
000
0
1
shift
register
S0BRG overflow
S0BRT cannot be 255
001
0/1
0/1
8-bit
UART
Selectable S0BRG overflow
on TX or RX
SMOD1 & SMOD2 cannot be 1
at the same time
010
0
1
9-bit
UART
TX: S0BRG overflow
RX: SYSCLK/64, /32 or /16
SMOD1 & SMOD2 cannot be 1
at the same time
010
1
0
9-bit
UART
TX: SYSCLK/64, /32 or /16
RX: S0BRG overflow
SMOD1 & SMOD2 cannot be 1
at the same time
010
1
1
Pure
Timer
Only Timer function
011
0/1
0/1
9-bit
UART
Selectable S0BRG overflow
on TX or RX
SMOD1 & SMOD2 cannot be 1
at the same time
100
0
1
SPI
Master
S0BRG overflow
S0BRT cannot be 255
101
1
1
LIN Bus
S0BRG overflow and auto
baud rate
SMOD1 & SMOD2 cannot be 1
at the same time
Others
Reserved.
18.10.4
S0 LIN Bus Register
S0CFG1
:
Serial Port 0 Configuration Register 1
SFR Page
= 0 only
SFR Address = 0x9D
Bit
7
6
5
4
3
2
1
0
Name
SBF0
TXER0
S0SB16
ATBR0
TXRX0
SYNC0
--
--
R/W
R/W
R/W
R/W
R/W
R/W
R/W
W
W
Reset Value
0
0
0
0
0
0
0
0
Bit 7: SBF0, Sync-Break Flag on S0. 0: Write 1 to clear by software.
1: Set by hardware at the end of the break event detection on LIN bus. In master mode, it is set combined
with TI0 flag. In slave mode, it is set combined with RI0.
Bit 6: TXER0, LIN Transmit Error on S0. 0: Write 1 to clear by software.
1: In TX mode, set by hardware at the transmit error detection on LIN bus.
Bit 5: S0SB16, Sync-Break 16 Bit enable on S0.
0: Select 13-bit Sync-Break transmitting in master mode. 1: Select 16-bit Sync-Break transmitting in
master mode.
Содержание CMT2380F17
Страница 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Страница 111: ...CMT2380F17 Rev0 1 111 347 www cmostek com INT2IS 1 0 Selected Port Pin of nINT2 00 P4 4 01 P3 0 10 P1 1 11 P1 6...
Страница 131: ...CMT2380F17 Rev0 1 131 347 www cmostek com Figure 16 1 Timer 0 Mode 0 Structure Figure15 2 Timer 1 Mode 0 Structure...
Страница 161: ...CMT2380F17 Rev0 1 161 347 www cmostek com Figure 16 32 Split Timer 3 Mode 1 Structure AR with Ex INT...
Страница 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Страница 239: ...CMT2380F17 Rev0 1 239 347 www cmostek com Figure 19 5 8 bit Timer Mode Configuration for S1BRG S1TME 1...
Страница 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...
Страница 289: ...CMT2380F17 Rev0 1 289 347 www cmostek com...