User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 562
UG585 (v1.11) September 27, 2016
Chapter 18: CAN Controller
Set can.SRR[CEN] = 1
To enter sleep mode from normal mode (interrupt generated):
Set can.MSR[SLEEP] = 1
Events that cause the controller to exit sleep mode (interrupt generated):
Rx signal activity (hardware sets can.MSR[SLEEP] = 0)
TxFIFO or TxHPB activity (hardware sets can.MSR[SLEEP] = 0)
Software writes 0 to can.MSR[SLEEP]
Mode Settings
Table 18-1 defines the CAN controller modes of operation and corresponding control and status bits.
.
X-Ref Target - Figure 18-3
Figure 18-3: CAN Operating Mode Transitions
can.SRR[CEN] = 0
Configuration
Normal
Loop
Back
Snoop
Sleep
Diagnostics
UG585_c18_05_021113
Reset
Reset
slcr.CAN_RST_CTRL[CANx_CPU1x_RST] =1
OR
can.SRR[SRST] = 1
(Self-clearing)
Hardware Forces
can.SRR[CEN] = 0
Reset:
slcr.CAN_RST_CTRL[CANx_CPU1x_RST] = 0
Table 18-1: CAN Controller Modes of Operation
CAN
CPU_1x
PS Reset
(slcr)
Software Reset
Register (can.SRR)
Mode Select Register
(MSR) (Read/Write bits)
Status Register (SR)
(Read Only bits)
Operational
Mode
SRST
(CAN
Reset)
CEN
(CAN
Enable)
LBACK SLEEP SNOOP CONFIG LBACK SLEEP NORMAL SNOOP
1 XXXXX100 0 0Reset
01XXXX 100 0 0Reset