Electronic Components Datasheet Search
  English  ▼

X  

70353C Datasheet(PDF) 53 Page - Microchip Technology

Part # 70353C
Description  Section 21. Enhanced Controller Area Network
PDF  76 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

70353C Datasheet(HTML) 53 Page - Microchip Technology

Back Button 70353C Datasheet HTML 49Page - Microchip Technology 70353C Datasheet HTML 50Page - Microchip Technology 70353C Datasheet HTML 51Page - Microchip Technology 70353C Datasheet HTML 52Page - Microchip Technology 70353C Datasheet HTML 53Page - Microchip Technology 70353C Datasheet HTML 54Page - Microchip Technology 70353C Datasheet HTML 55Page - Microchip Technology 70353C Datasheet HTML 56Page - Microchip Technology 70353C Datasheet HTML 57Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 53 / 76 page
background image
© 2008-2011 Microchip Technology Inc.
DS70353C-page 21-53
Section 21. Enhanced Controller Area Network (ECAN™)
21
21.7.3.1 RECEIVING MESSAGES INTO FIFO AREA
The acceptance filter stores the received message in the FIFO area when FnBP<3:0> = 1111.
It uses a simple buffer pointer, beginning with the start of the FIFO as defined above, and
incrementing sequentially through the set of buffers within the FIFO area. When the end of the
buffer is reached, the counter wraps and points to the start of the FIFO area.
The write pointer value is accessible and is readable only by the user software in the FBP<5:0>
bits (CiFIFO<13:8>). When the message is stored in the buffer, the RXFUL bit associated with
the buffer is set, and the FIFO buffer counter increments.
If the FBP<5:0> value points to a buffer, and the RXFUL bit associated with that buffer is
already ‘1’ at the time of the filter hit and before writing of the message contents, the RXOVL bit
associated with that buffer is set and the message is lost. After the message is lost, the FBP<5:0>
value increments normally.
If the FBP<5:0> value points to a transmit/receive buffer that is selected as a transmit buffer at
the time of the filter hit and before writing of the message contents, the RXOVL bit associated
with that buffer is set and the message is lost. After the message is lost, the FBP<5:0> value
increments normally.
The user software unloads the FIFO by reading the contents of a buffer. Once the buffer location
is read, the user software clears the RXFUL bit corresponding to that buffer. When an RXFUL bit
is cleared, the number of that corresponding buffer, plus one, is written to the FNRB<5:0> bits
(CiFIFO<5:0>) by the module. Only the user software can read this value; left shift it by four bits
and use it as an address offset for the next buffer to be read. The user software should read the
buffers sequentially.
The module generates an interrupt condition, if the FIFO is about to be full. This condition is
computed as shown in Equation 21-1.
Equation 21-1:
FIFO Interrupt Calculation
The interrupt is generated as the RXFUL bit is set for the buffer that was just written to, and after
the FBP bit has been updated. The computation uses the updated FBP value.
21.7.4
FIFO Example
Figure 21-15 illustrates seven case examples of FIFO operation. The cases illustrated assume
that the Start of FIFO is set to message buffer 5 (CiFCTRL<4:0> = 101) and the End of FIFO is
set to message buffer 11 (CiFCTRL<15:13> = 011).
• Case 1 – is the initialized case of the FIFO before any messages are received. The FIFO
Buffer Pointer points to message buffer 5 (FRB = 5), and the FIFO Next Read Buffer
Pointer points to message buffer 6 (FNRB = 5).
• Case 2 – shows the FIFO after one message is received and transferred to message
buffer 5. The FIFO Buffer Pointer is incremented (FBP = 6), and the RXFUL status bit for
message buffer 5 is set (RXFUL = 1).
• Case 3 – shows the FIFO after the sixth received message. The FIFO Buffer Pointer points
to the last location in the FIFO area (FBP = 5 + 6 = 11), and the FIFO Next Read Pointer
points to start of the FIFO (FNRB = 5). In this case, the FIFO is almost full and generates a
FIFO interrupt.
• Case 4 – shows the FIFO after the user software reads the first received message. When the
user software clears the RXFUL status bit for message buffer 5, the module writes the FIFO
Next Read Buffer Pointer with message buffer 5 plus 1 (FNRB = 5 + 1 = 6).
• Case 5 – shows the FIFO after the seventh message is received and written to message
buffer 11. The RXFUL status bit for message buffer 11 is set (RXFUL = 1). Instead of
incrementing, the FIFO Buffer Pointer is reloaded with the FIFO Start address
(FBP = FSA = 5). Note that FBP is now mathematically one less than FNRB, which is the
condition that generates the FIFO interrupt at the time the RXFUL status bit is set for
message buffer 11.
FNRB FBP
–
1
=
Or
and
FNRB
START
=
()
FBP
END
=
()



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


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