MCP2515
4.4.1
DISABLED
4.3
Start-of-Frame Signal
The RXBnBF pins can be disabled to the high-
impedance state by clearing BFPCTRL.BnBFE.
If enabled, the Start-Of-Frame signal is generated on
the SOF pin at the beginning of each CAN message
detected on the RXCAN pin.
4.4.2
CONFIGURED AS BUFFER FULL
The RXCAN pin monitors an idle bus for a recessive-
to-dominant edge. If the dominant condition remains
until the sample point, the MCP2515 interprets this as
a SOF and a SOF pulse is generated. If the dominant
condition does not remain until the sample point, the
MCP2515 interprets this as a glitch on the bus and no
SOF signal is generated. Figure 4-1 illustrates SOF
signalling and glitch-filtering.
The RXBnBF pins can be configured to act as either
buffer full interrupt pins or as standard digital outputs.
Configuration and status of these pins is available via
the BFPCTRL register (Register 4-3). When set to
operate in Interrupt mode (by setting BFPCTRL.BxBFE
and BFPCTRL.BxBFM bits), these pins are active-low
and are mapped to the CANINTF.RXnIF bit for each
receive buffer. When this bit goes high for one of the
receive buffers (indicating that a valid message has
been loaded into the buffer), the corresponding
RXBnBF pin will go low. When the CANINTF.RXnIF bit
is cleared by the MCU, the corresponding interrupt pin
will go to the logic-high state until the next message is
loaded into the receive buffer.
As with One-shot mode, one use for SOF signaling is
for TTCAN-type systems. In addition, by monitoring
both the RXCAN pin and the SOF pin, a MCU can
detect early physical bus problems by detecting small
glitches before they affect the CAN communications.
4.4
RX0BF and RX1BF Pins
In addition to the INT pin, which provides an interrupt
signal to the MCU for many different conditions, the
receive buffer full pins (RX0BF and RX1BF) can be
used to indicate that a valid message has been loaded
into RXB0 or RXB1, respectively. The pins have three
different configurations (Register 4-1):
1. Disabled.
2. Buffer Full Interrupt.
3. Digital Output.
FIGURE 4-1:
START-OF-FRAME SIGNALING
Normal SOF Signaling
START-OF-FRAME BIT
ID BIT
Sample
Point
RXCAN
SOF
Glitch-Filtering
EXPECTED START-OF-FRAME BIT
Sample
Point
Expected
BUS IDLE
RXCAN
SOF
DS21801D-page 24
Preliminary
© 2005 Microchip Technology Inc.