Electronic Components Datasheet Search
  English  ▼

X  

70353C Datasheet(PDF) 52 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) 52 Page - Microchip Technology

Back Button 70353C Datasheet HTML 48Page - Microchip Technology 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 52 / 76 page
background image
dsPIC33E/PIC24E Family Reference Manual
DS70353C-page 21-52
© 2008-2011 Microchip Technology Inc.
21.7.2.5 RECEIVE BUFFER STATUS BITS
The receive buffers contain two status bits per message buffer, the Message Buffer Full
Flag (RXFULn), and the Message Buffer Overflow Flag (RXOVFn). These status bits are
grouped into registers for buffer-full status and buffer-overflow status.
• CiRXFUL1: ECAN Receive Buffer Full Register 1
• CiRXFUL2: ECAN Receive Buffer Full Register 2
• CiRXOVF1: ECAN Receive Buffer Overflow Register 1
• CiRXOVF2: ECAN Receive Buffer Overflow Register 2
When a received message is stored into a message buffer, the respective Buffer Full Flag
(RXFULn) is set in the Receive Buffer Full register, and a received buffer interrupt (CiINTF<1>)
is generated. If an incoming message caused a filter match, and the message buffer assigned to
the matching filter is full (that is, the RXFULn bit associated with that buffer is already ‘1’), the
corresponding RXOVFn bit (where ‘n’ is the number of the message buffer associated with that
buffer) is set and a received buffer overflow interrupt is generated (CiINTF<2>). The message is
lost.
21.7.3
FIFO Buffer Operation
The ECAN module supports up to 32 message buffers. The user application can employ the DMA
Buffer Size bits (DMABS<2:0>) in the ECAN FIFO Control register (CiFCTRL<15:13>) to specify
the 4, 6, 8, 12, 16, 24 or 32 message buffers. The FIFO Start Area (FSA<4:0>)
bits (CiFCTRL<4:0>) are used to specify the start of the FIFO within the buffer area. The end of
FIFO is based on the number of message buffers defined in the DMABS<2:0> bits.
The user application should not allocate a FIFO area that contains the transmit buffers. Should
this condition occur, the module will attempt to point to the transmit buffer, but when a message
is received for that buffer, an overflow condition will cause the message contents to be lost.
Figure 21-14 illustrates that one of the message acceptance filters is set to store a received
message in FIFO (FnBP = 1111). The start of FIFO is set to message buffer 5
(CiFCTRL<4:0> = 00101) and the end of FIFO is set to message buffer 11
(CiFCTRL<15:13> = 011) by allocating 12 message buffers.
Figure 21-14: Receiving Messages in FIFO
Note:
If multiple filters match the identifier of the incoming message, and all the message
buffers assigned to all the matching filters are full, the RXOVFn bit corresponding
to the lowest numbered matching filter is set.
MASK 2
MASK 1
MASK 0
Filter 15
Filter Masks
Message Acceptance Filters
FIFO
FIFO Buffer 0
FIFO Buffer n
Filter 0
FIFO Start
FIFO End
FnBP
Device RAM
Message Buffer 0
Message Buffer 1
Message Buffer 31
FIFO Buffer 1
Message Buffer 11
Message Buffer 5
Note 1:
The Acceptance Filter Buffer Pointer (FnBP) should be ‘1111’ to store the received message in FIFO.
2:
The starting address of the FIFO is specified by the FSA<4:0> bits (CiFCTRL<4:0>). In the figure, FSA <4:0> = 00101.
3:
The end address of the FIFO is specified by DMABS<2:0> = 011 (CiFCTRL<15:13>).
1
2
3



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