ST7MC2R6 STMicroelectronics, ST7MC2R6 Datasheet - Page 122

no-image

ST7MC2R6

Manufacturer Part Number
ST7MC2R6
Description
8-BIT MCU WITH NESTED INTERRUPTS, FLASH, 10-BIT ADC,BRUSHLESS MOTOR CONTROL, 5 TIMERS, SPI, LINSCI(TM)
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST7MC2R6

Hdflash Endurance
100 cycles, data retention
Clock Sources
crystal/ceramic resonator oscillators and by-pass for external clock, clock security system.
Four Power Saving Modes
Halt, Active-Halt, Wait and Slow
Main Clock Controller With
Real time base, Beep and Clock-out capabilities
Two 16-bit Timers With
2 input captures, 2 output compares, external clock input, PWM and pulse generator modes
8-bit Pwm Auto-reload Timer With
2 input captures, 4 PWM outputs, output compare and time base interrupt, external clock with event detector

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST7MC2R6
Manufacturer:
ST
0
ST7MC1xx/ST7MC2xx
LINSCI™ SERIAL COMMUNICATION INTERFACE (LIN Mode)
10.5.9 LIN Mode - Functional Description.
The block diagram of the Serial Control Interface,
in LIN slave mode is shown in
It uses six registers:
– 3 control registers: SCICR1, SCICR2 and
– 2 status registers: the SCISR register and the
– A baud rate register: LPR mapped at the SCI-
The bits dedicated to LIN are located in the
SCICR3. Refer to the register descriptions in
tion
10.5.9.1 Entering LIN Mode
To use the LINSCI in LIN mode the following con-
figuration must be set in SCICR3 register:
– Clear the M bit to configure 8-bit word length.
– Set the LINE bit.
Master
To enter master mode the LSLV bit must be reset
In this case, setting the SBK bit will send 13 low
bits.
Then the baud rate can programmed using the
SCIBRR, SCIERPR and SCIETPR registers.
In LIN master mode, the Conventional and / or Ex-
tended Prescaler define the baud rate (as in stand-
ard SCI mode)
122/309
1
SCICR3
LHLR register mapped at the SCIERPR address
BRR address and an associated fraction register
LPFR mapped at the SCIETPR address
10.5.10for the definitions of each bit.
Figure
66.
Sec-
Slave
Set the LSLV bit in the SCICR3 register to enter
LIN slave mode. In this case, setting the SBK bit
will have no effect.
In LIN Slave mode the LIN baud rate generator is
selected instead of the Conventional or Extended
Prescaler. The LIN baud rate generator is com-
mon to the transmitter and the receiver.
Then the baud rate can be programmed using
LPR and LPRF registers.
Note: 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.
10.5.9.2 LIN Transmission
In LIN mode the same procedure as in SCI mode
has to be applied for a LIN transmission.
To transmit the LIN Header the proceed as fol-
lows:
– First set the SBK bit in the SCICR2 register to
– reset the SBK bit
– Load the LIN Synch Field (0x55) in the SCIDR
– Wait until the SCIDR is empty (TDRE bit set in
– Load the LIN message Identifier in the SCIDR
start transmitting a 13-bit LIN Synch Break
register to request Synch Field transmission
the SCISR register)
register to request Identifier transmission.

Related parts for ST7MC2R6