Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC18F44800TE/ML Datasheet(PDF) 332 Page - Microchip Technology

Part # PIC18F44800TE/ML
Description  28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology
PDF  484 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18F44800TE/ML Datasheet(HTML) 332 Page - Microchip Technology

Back Button PIC18F44800TE/ML Datasheet HTML 328Page - Microchip Technology PIC18F44800TE/ML Datasheet HTML 329Page - Microchip Technology PIC18F44800TE/ML Datasheet HTML 330Page - Microchip Technology PIC18F44800TE/ML Datasheet HTML 331Page - Microchip Technology PIC18F44800TE/ML Datasheet HTML 332Page - Microchip Technology PIC18F44800TE/ML Datasheet HTML 333Page - Microchip Technology PIC18F44800TE/ML Datasheet HTML 334Page - Microchip Technology PIC18F44800TE/ML Datasheet HTML 335Page - Microchip Technology PIC18F44800TE/ML Datasheet HTML 336Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 332 / 484 page
background image
PIC18F2480/2580/4480/4580
DS39637A-page 330
Preliminary
 2004 Microchip Technology Inc.
23.7.3
ENHANCED FIFO MODE
When configured for Mode 2, two of the dedicated
receive buffers in combination with one or more pro-
grammable transmit/receive buffers, are used to create
a maximum of an 8 buffer deep FIFO buffer. In this
mode, there is no direct correlation between filters and
receive buffer registers. Any filter that has been
enabled can generate an acceptance. When a mes-
sage has been accepted, it is stored in the next avail-
able receive buffer register and an internal write pointer
is incremented. The FIFO can be a maximum of 8 buff-
ers deep. The entire FIFO must consist of contiguous
receive buffers. The FIFO head begins at RXB0 buffer
and its tail spans toward B5. The maximum length of
the FIFO is limited by the presence or absence of the
first transmit buffer starting from B0. If a buffer is con-
figured as a transmit buffer, the FIFO length is reduced
accordingly. For instance, if B3 is configured as a trans-
mit buffer, the actual FIFO will consist of RXB0, RXB1,
B0, B1 and B2, a total of 5 buffers. If B0 is configured
as a transmit buffer, the FIFO length will be 2. If none
of the programmable buffers are configured as a trans-
mit buffer, the FIFO will be 8 buffers deep. A system
that requires more transmit buffers should try to locate
transmit buffers at the very end of B0-B5 buffers to
maximize available FIFO length.
When a message is received in FIFO mode, the inter-
rupt flag code bits (EICODE<4:0>) in the CANSTAT
register will have a value of ‘10000’, indicating the
FIFO has received a message. FIFO Pointer bits,
FP<3:0> in the CANCON register, point to the buffer
that contains data not yet read. The FIFO pointer bits,
in this sense, serve as the FIFO read pointer. The user
should use FP bits and read corresponding buffer data.
When receive data is no longer needed, the RXFUL bit
in the current buffer must be cleared, causing FP<3:0>
to be updated by the module.
To determine whether FIFO is empty or not, the user
may use FP<3:0> bits to access the RXFUL bit in the
current buffer. If RXFUL is cleared, the FIFO is consid-
ered to be empty. If it is set, the FIFO may contain one
or more messages. In Mode 2, the module also pro-
vides a bit called FIFO High Water Mark (FIFOWM) in
the ECANCON register. This bit can be used to cause
an interrupt whenever the FIFO contains only one or
four empty buffers. The FIFO high water mark interrupt
can serve as an early warning to a full FIFO condition.
23.7.4
TIME-STAMPING
The CAN module can be programmed to generate a
time-stamp for every message that is received. When
enabled, the module generates a capture signal for
CCP1, which in turn captures the value of either Timer1
or Timer3. This value can be used as the message
time-stamp.
To use the time-stamp capability, the CANCAP bit
(CIOCAN<4>) must be set. This replaces the capture
input for CCP1 with the signal generated from the CAN
module. In addition, CCP1CON<3:0> must be set to
‘0011’ to enable the CCP special event trigger for CAN
events.
23.8
Message Acceptance Filters
and Masks
The message acceptance filters and masks are used to
determine if a message in the Message Assembly
Buffer should be loaded into any of the receive buffers.
Once a valid message has been received into the MAB,
the identifier fields of the message are compared to the
filter values. If there is a match, that message will be
loaded into the appropriate receive buffer. The filter
masks are used to determine which bits in the identifier
are examined with the filters. A truth table is shown
below in Table 23-2 that indicates how each bit in the
identifier is compared to the masks and filters to deter-
mine if a message should be loaded into a receive
buffer. The mask essentially determines which bits to
apply the acceptance filters to. If any mask bit is set to
a zero, then that bit will automatically be accepted
regardless of the filter bit.
TABLE 23-2:
FILTER/MASK TRUTH TABLE
In Mode 0, acceptance filters RXF0 and RXF1 and filter
mask RXM0 are associated with RXB0. Filters RXF2,
RXF3, RXF4 and RXF5 and mask RXM1 are
associated with RXB1.
Mask
bit n
Filter
bit n
Message
Identifier
bit n001
Accept or
Reject
bit n
0x
x
Accept
10
0
Accept
10
1
Reject
11
0
Reject
11
1
Accept
Legend: x = don’t care



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