st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 144

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
On-chip peripherals
144/371
Figure 62. Word length programming
Transmitter
The transmitter can send data words of either 8 or 9 bits depending on the M bit status.
When the M bit is set, word length is 9 bits and the 9th bit (the MSB) has to be stored in the
T8 bit in the SCICR1 register.
Character transmission
During an SCI transmission, data shifts out least significant bit first on the TDO pin. In this
mode, the SCIDR register consists of a buffer (TDR) between the internal bus and the
transmit shift register (see
Procedure
Clearing the TDRE bit is always performed by the following software sequence:
1.
2.
Select the M bit to define the word length.
Select the desired baud rate using the SCIBRR and the SCIETPR registers.
Set the TE bit to send a preamble of 10 (M = 0) or 11 (M = 1) consecutive ones (idle
line) as first transmission.
Access the SCISR register and write the data to send in the SCIDR register (this
sequence clears the TDRE bit). Repeat this sequence for each data to be transmitted.
Accessing the SCISR register.
Writing to the SCIDR register.
9-bit word length (M bit is set)
Start
bit
9-bit word length (M bit is reset)
Start
bit
Bit 0
ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto
Bit 0
Bit 1
Bit 1
Data character
Data character
Figure
Bit 2
Bit 2
Bit 3
Break character
61).
Break character
Bit 3
Idle line
Idle line
Bit 4
Bit 4
Bit 5
Bit 5
Bit 6
Bit 6
Bit 7
Possible
parity
Bit 7
bit
Possible
parity
Bit 8
bit
Stop
Bit
Stop
bit
Extra
Next data character
Start
Next
start
bit
bit
’1’
Extra
Start
Next data character
Next
start
bit
’1’
bit
Start
bit
Start
bit

Related parts for st7pmc2s6