Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

ST72561AR7-Auto Datasheet(PDF) 235 Page - STMicroelectronics

Part # ST72561AR7-Auto
Description  Clock, reset and supply management
PDF  324 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST72561AR7-Auto Datasheet(HTML) 235 Page - STMicroelectronics

Back Button ST72561AR7-Auto Datasheet HTML 231Page - STMicroelectronics ST72561AR7-Auto Datasheet HTML 232Page - STMicroelectronics ST72561AR7-Auto Datasheet HTML 233Page - STMicroelectronics ST72561AR7-Auto Datasheet HTML 234Page - STMicroelectronics ST72561AR7-Auto Datasheet HTML 235Page - STMicroelectronics ST72561AR7-Auto Datasheet HTML 236Page - STMicroelectronics ST72561AR7-Auto Datasheet HTML 237Page - STMicroelectronics ST72561AR7-Auto Datasheet HTML 238Page - STMicroelectronics ST72561AR7-Auto Datasheet HTML 239Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 235 / 324 page
background image
ST72561-Auto
beCAN controller (beCAN)
Doc ID 12370 Rev 8
235/324
We could simply wait for the end of the reception, but this could take a long time (200µs for a
100-bit frame at 500 kHz), so we also monitor the Rx pin of the microcontroller to minimize
the time the application may wait in the while loop.
We know the critical window is located at the end of the frame, 6+ CAN bit times after the
acknowledge bit (exactly six full bit times plus the time from the beginning of the bit to the
sample point). Those bits represent the acknowledge delimiter + the end of frame slot.
We know also that those 6+ bits are in recessive state on the bus, therefore if the CAN Rx
pin of the device is at ‘0’, (reflecting a CAN dominant state on the bus), this is early enough
to be sure we can release the FIFO before the critical time slot.
Therefore, if the device hardware pin Rx is at 0 and there is a reception on going, its
message will be transferred to the FIFO only 6+ CAN bit times later at the earliest (if the
dominant bit is the acknowledge) or later if the dominant bit is part of the message.
Compiled with Cosmic C compiler, the workaround generates the following assembly lines:
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 critical period is 52 CPU cycles (48 for the 6 bit times + 4 for the (PROP SEG +
TSeg1). According to the 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 8tCANbit, therefore the maximum time spent in the
workaround is: 8tCANbit+tloop+ttest+trelease in this case or 8tCANbit+25tCPU.
At low speed, this time could represent a long delay for the application, therefore it makes
sense to evaluate how frequently this delay occurs.
In order to reach the critical FMP = 2, the CAN node needs to receive two messages without
servicing them. Then in order to reach the critical window, the cell has to receive a third one
and the application 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.
Cycles
if ((CRFR & 0x03) == 0x02)
ld
a, CRFR
3
and
a,#3
2
cp
a,#2
2
jrne
_RELEASE
3
test: 10 cycles
while
((CMSR & 0x20) && (CDGR & 0x08)) { };
_WHILELOOP:
btjf
CMSR,#5,_RELEASE
5
btjt
CDGR,#3,_WHILELOOP
5
loop: 10 cycles
CRFR |= B_RFOM;
_RELEASE:
bset
CRFR,#5
5
release: 5 cycles



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com