User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 575
UG585 (v1.11) September 27, 2016
Chapter 18: CAN Controller
All the controller registers are listed in Table 18-6 and are described in detail in Appendix B, Register
Details.
18.3.2 Configuration Mode State
The CAN controller enters configuration mode, irrespective of the operation mode, when any of
these actions are performed:
•Writing a 0 to the CEN bit in the SRR register.
•Writing a 1 to the SRST bit in the SRR register. The controller enters Configuration mode
immediately following the software reset.
•Driving a 1 on the Reset input controlled via SLCR. The controller continues to be in reset as
long as Reset is 1. The controller enters configuration mode after Reset is negated to 0.
In configuration mode the following apply:
The CAN controller loses synchronization with the CAN bus and drives a constant recessive bit
on the bus line.
The Error Count register (ECR) is reset.
The Error Status register (ESR) is reset.
The Bit Timing register (BTR) and Baud Rate Prescaler register (BRPR) can be modified.
The CAN controller does not receive any new messages.
The CAN controller does not transmit any messages. Messages in the TxFIFO and the TxHPB are
appended. These packets are sent when normal operation is resumed.
Reads from the RxFIFO can be performed.
Writes to the TxFIFO and TxHPB can be performed (provided the SNOOP bit is not set).
Interrupt Status register bits ARBLST, TXOK, RXOK, RXOFLW, ERROR, BSOFF, SLP, and WKUP are
be cleared.
Interrupt Status register bits RXNEMP and RXUFLW can be set due to read operations to the
RxFIFO.
Interrupt Status register bits TXBFLL and TXFLL, and Status register bits TXBFLL and TXFLL can be
set due to write operations to the TX HPB and TX FIFO, respectively.
Interrupts are generated if the corresponding bits in the Interrupt Enable register (IER) are 1.
All Configuration registers are accessible.
When in configuration mode, the CAN controller stays in this mode until the CEN bit in the SRR
register is set to 1. After the CEN bit is set to 1 the CAN controller waits for a sequence of 11
recessive bits before exiting configuration mode.
The CAN controller enters normal, loop back, snoop, or sleep modes from configuration mode,
depending on the LBACK, SNOOP, and SLEEP bits in the MSR register.