st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 159

no-image

st7pmc2s6

Manufacturer Part Number
st7pmc2s6
Description
8-bit Mcu For Automotive With Nested Interrupts, Flash, 10-bit Adc, Brushless Motor Control, 5 Timers, Spi, Linsci?
Manufacturer
STMicroelectronics
Datasheet
ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto
Note:
Slave
Set the LSLV bit in the SCICR3 register to enter LIN slave mode. In this case, setting the
SBK bit has no effect.
In LIN slave mode the LIN baud rate generator is selected instead of the conventional
prescaler or extended prescaler. The LIN baud rate generator is common to the transmitter
and the receiver.
The baud rate can then be programmed using LPR and LPRF registers.
It is mandatory to set the LIN configuration first before programming LPR and LPRF,
because the LIN configuration uses a different baud rate generator from the standard one.
LIN transmission
In LIN mode the same procedure as in SCI mode has to be applied for a LIN transmission.
The procedure to transmit the LIN header is as follows:
1.
2.
3.
4.
5.
Figure 64. LIN characters
First set the SBK bit in the SCICR2 register to start transmitting a 13-bit LIN synch
break.
Reset the SBK bit.
Load the LIN synch field (0x55) in the SCIDR register to request synch field
transmission.
Wait until the SCIDR is empty (TDRE bit set in the SCISR register).
Load the LIN message identifier in the SCIDR register to request identifier
transmission.
8-bit word length (M bit is reset)
Start
Start
bit
bit
Measurement for baud rate autosynchronization
Bit 0
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
Data character
Bit 1
LIN synch break = 13 low bits
Bit 2
LIN synch field
Idle line
Bit 3
Bit 4
Bit 5
Bit 6
Bit 7
Stop
Stop
bit
bit
Next
start
Start
Next
start
bit
bit
bit
Next data character
On-chip peripherals
LIN synch field
Extra
‘1’
Start
bit
159/371

Related parts for st7pmc2s6