ST72561R9 STMicroelectronics, ST72561R9 Datasheet - Page 189

no-image

ST72561R9

Manufacturer Part Number
ST72561R9
Description
8-BIT MCU WITH FLASH OR ROM, 10-BIT ADC, 5 TIMERS, SPI, LINSCI(TM), ACTIVE CAN
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST72561R9

Hdflash Endurance
100 cycles, data retention 40 years at 85°C
5 Power Saving Modes
Halt, Auto Wake Up From Halt, Active Halt, Wait and Slow
beCAN CONTROLLER (Cont’d)
In the worst case configuration, if the CAN cell
speed is set to the maximum baud rate, one bit
time is 8 CPU cycle. In this case the minimum time
between the end of the acknowledge and the criti-
cal period is 52 CPU cycles (48 for the 6 bit times
+ 4 for the (PROP SEG + T
previous code timing, we need less than 15 cycles
from the time we see the dominant state to the
time we perform the FIFO release (one full loop +
the actual release) therefore the application will
never release the FIFO at the critical time when
this workaround is implemented.
Timing analysis
- Time spent in the workaround
Inside a CAN frame, the longest period that the Rx
pin stays in recessive state is 5 bits. At the end of
the frame, the time between the acknowledge
dominant bit and the end of reception (signaled by
REC bit status) is 8t
time
8t
8t
At low speed, this time could represent a long de-
lay for the application, therefore it makes sense to
evaluate how frequently this delay occurs.
Figure 111. Critical Window Timing Diagram
Figure 112. Reception of a Sequence of Frames
CANbit
CANbit
FMP
BUS
CPU
+t
+25t
spent
loop
CPU
+t
test
.
t
+t
CAN frame
in
CANbit
release
Acknowledge: last
dominant bit in the frame
0
the
, therefore the maximum
Seg 1
1
in
Time to test RX pin and to
release the FIFO 4.5µs@4 MHz Time between the end of the
workaround
). According to the
this
case
CAN Frame
t
IT disable
t
CAN frame
is:
or
1
In order to reach the critical FMP = 2, the CAN
node needs to receive two messages without serv-
icing them. Then in order to reach the critical win-
dow, the cell has to receive a third one and the ap-
plication has to release the mailbox at the same
time, at the end of the reception.
In the application, messages are not processed
only if either the interrupt are disabled or higher
level interrupts are being serviced.
Therefore if:
t
the application will never wait in the workaround
t
interrupts with a level strictly higher than the CAN
interrupt level
t
disables the CAN interrupt (or all interrupts)
t
beginning of the CAN interrupt and the actual loca-
tion of the workaround
t
IT higher level
IT higher level
IT disable
IT CAN
CAN frame
2
acknowledge and the critical windows
- 6 full CAN bit times + time to the sample point
approx. 13µs @ 500 Kbaud
: This is the maximum duration between the
Critical window: the received
message is placed in the FIFO
: This is the longest time the application
t
: This is minimum CAN frame duration
IT higher level
+ t
: This the sum of the duration of all the
IT disable
t
CAN frame
+ t
IT CAN
2
t
IT CAN
A release is not
allowed at this time
< 2 x t
3
CAN frame
ST72561
189/265
2

Related parts for ST72561R9