ST72521R9 STMicroelectronics, ST72521R9 Datasheet - Page 130

no-image

ST72521R9

Manufacturer Part Number
ST72521R9
Description
8-BIT MCU WITH NESTED INTERRUPTS, FLASH, 10-BIT ADC, FIVE TIMERS, SPI, SCI, I2C, CAN INTERFACE
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST72521R9

Hdflash Endurance
100 cycles, data retention
Clock Sources
crystal/ceramic resonator oscillators, internal RC oscillator and bypass for external clock
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 on one timer, 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
ST72F521, ST72521B
CONTROLLER AREA NETWORK (Cont’d)
10.8.2 Main Features
– Support of CAN specification 2.0A and 2.0B pas-
– Three prioritized 10-byte Transmit/Receive mes-
– Two programmable global 12-bit message ac-
– Programmable baud rates up to 1 MBit/s
– Buffer flip-flopping capability in transmission
– Maskable interrupts for transmit, receive (one
– Automatic low-power mode after 20 recessive
– Interrupt-driven wake-up from standby mode
– Optional dominant pulse transmission on leaving
– Automatic message queuing for transmission
– Programmable loop-back mode for self-test op-
– Advanced error detection and diagnosis func-
– Software-efficient buffer mapping at a unique ad-
– Scalable architecture.
10.8.3 Functional Description
10.8.3.1 Frame Formats
A summary of all the CAN frame formats is given
in
ard frame format since the extended one is only
acknowledged.
A message begins with a start bit called Start Of
Frame (SOF). This bit is followed by the arbitration
field which contains the 11-bit identifier (ID) and
the Remote Transmission Request bit (RTR). The
RTR bit indicates whether it is a data frame or a re-
mote request frame. A remote request frame does
not have any data byte.
The control field contains the Identifier Extension
bit (IDE), which indicates standard or extended
format, a reserved bit (ro) and, in the last four bits,
a count of the data bytes (DLC). The data field
ranges from zero to eight bytes and is followed by
the Cyclic Redundancy Check (CRC) used as a
frame integrity check for detecting bit errors.
130/215
sive
sage buffers
ceptance filters
per buffer), error and wake-up
bits or on demand (standby mode)
upon reception of dominant pulse
standby mode
upon writing of data byte 7
eration
tions
dress space
Figure 69
for reference. It covers only the stand-
The acknowledgement (ACK) field comprises the
ACK slot and the ACK delimiter. The bit in the ACK
slot is placed on the bus by the transmitter as a re-
cessive bit (logical 1). It is overwritten as a domi-
nant bit (logical 0) by those receivers which have
at this time received the data correctly. In this way,
the transmitting node can be assured that at least
one receiver has correctly received its message.
Note that messages are acknowledged by the re-
ceivers regardless of the outcome of the accept-
ance test.
The end of the message is indicated by the End Of
Frame (EOF). The intermission field defines the
minimum number of bit periods separating con-
secutive messages. If there is no subsequent bus
access by any station, the bus remains idle.
10.8.3.2 Hardware Blocks
The CAN controller contains the following func-
tional blocks (refer to
– ST7 Interface: buffering of the ST7 internal bus
– TX/RX Buffers: three 10-byte buffers for trans-
– ID Filters: two 12-bit compare and don’t care
– PSR: page selection register (see memory map).
– BRPR: clock divider for different data rates.
– BTR: bit timing register.
– ICR: interrupt control register.
– ISR: interrupt status register.
– CSR: general purpose control/status register.
– TECR: transmit error counter register.
– RECR: receive error counter register.
– BTL: bit timing logic providing programmable bit
– BCDL: bit coding logic generating a NRZ-coded
– SHREG: 8-bit shift register for serialization of
– CRC: 15-bit CRC calculator and checker.
– EML: error detection and management logic.
– CAN Core: CAN 2.0B passive protocol control-
and address decoding of the CAN registers.
mission and reception of maximum length mes-
sages.
masks for message acceptance filtering.
sampling and bit clock generation for synchroni-
zation of the controller.
datastream with stuff bits.
data to be transmitted and parallelisation of re-
ceived data.
ler.
Figure
68):

Related parts for ST72521R9