730
Chapter 34 CAN Controller
4.CAN Application
The Status Interrupt has the highest priority. Among the message interrupts, the Message Object’ s interrupt
priority decreases with increasing message number.
A message interrupt is cleared by clearing the Message Object’s IntPnd bit. The Status Interrupt is cleared by
reading the Status Register.
The interrupt identifier IntId in the Interrupt Register indicates the cause of the interrupt. When no interrupt is
pending, the register will hold the value zero. If the value of the Interrupt Register is different from zero, then
there is an interrupt pending and, if IE is set, the interrupt line to the CPU is active. The interrupt line remains
active until the Interrupt Register is back to value zero (the cause of the interrupt is reset) or until IE is reset.
The value 0x8000 indicates that an interrupt is pending because the CAN Core has updated (not necessarily
changed) the Status Register (Error Interrupt or Status Interrupt). This interrupt has the highest priority. The
CPU can update (reset) the status bits RxOk, TxOk and LEC, but a write access of the CPU to the Status
Register can never generate or reset an interrupt.
All other values indicate that the source of the interrupt is one of the Message Objects, IntId points to the
pending message interrupt with the highest interrupt priority.
The CPU controls whether a change of the Status Register may cause an interrupt (bits EIE and SIE in the
CAN Control Register) and whether the interrupt line becomes active when the Interrupt Register is different
from zero (bit IE in the CAN Control Register). The Interrupt Register will be updated even when IE is reset.
The CPU has two possibilities to follow the source of a message interrupt. First it can follow the IntId in the
Interrupt Register and second it can poll the Interrupt Pending Register (see section
2.6 Message Handler
Registers (Page No.714)
.
An interrupt service routine reading the message that is the source of the interrupt may read the message and
reset the Message Object’s IntPnd at the same time (bit ClrIntPnd in the Command Mask Register). When
IntPnd is cleared, the Interrupt Register will point to the next Message Object with a pending interrupt.
4.17 Bit Time and Bit Rate
The timing parameter of the bit time (i.e. the reciprocal of the bit rate) can be configured individually for each
CAN node, creating a common bit rate even though the CAN nodes’ oscillator periods (f
osc
) may be different.
The frequencies of these oscillators are not absolutely stable, small variations are caused by changes in
temperature or voltage and by deteriorating components. As long as the variations remain inside a specific
oscillator tolerance range (df), the CAN nodes are able to compensate for the different bit rates by
resynchronising to the bit stream.
According to the CAN specification, the bit time is divided into four segments (see
Figure 4-5
). The
Synchronisation Segment, the Propagation Time Segment, the Phase Buffer Segment 1, and the Phase
Buffer Segment 2. Each segment consists of a specific, programmable number of time quanta (see Table 1).
The length of the time quantum (t
q
) , which is the basic time unit of the bit time, is defined by the CAN
controller’s system clock f
sys
and the Baud Rate Prescaler (BRP) : t
q
= BRP / f
sys
. The CAN’s system clock
f
sys
is the frequency of its CAN_CLK input.
The Synchronisation Segment Sync_Seg is that part of the bit time where edges of the CAN bus level are
expected to occur; the distance between an edge that occurs outside of Sync_Seg and the Sync_Seg is called
the phase error of that edge. The Propagation Time Segment Prop_Seg is intended to compensate for the
physical delay times within the CAN network. The Phase Buffer Segments Phase_Seg1 and Phase_Seg2
surround the Sample Point. The (Re-)Synchronisation Jump Width (SJW) defines how far a resynchronisation
may move the Sample Point inside the limits defined by the Phase Buffer Segments to compensate for edge
phase errors.
Summary of Contents for FR Family FR60 Lite
Page 2: ...FUJITSU LIMITED ...
Page 3: ...FR60 32 BIT MICROCONTROLLER MB91460 Series User s Manual ...
Page 15: ...xi ...
Page 16: ...xii ...
Page 38: ...22 Chapter 2 MB91460 Rev A Rev B Overview 4 Block Diagram ...
Page 128: ...112 Chapter 4 CPU Architecture 9 Addressing ...
Page 153: ...137 Chapter 8 Device State Transition 3 State Transition Diagram ...
Page 154: ...138 Chapter 8 Device State Transition 3 State Transition Diagram ...
Page 169: ...153 Chapter 9 Reset 10 Caution ...
Page 170: ...154 Chapter 9 Reset 10 Caution ...
Page 180: ...164 Chapter 10 Standby 7 Q A ...
Page 182: ...166 Chapter 10 Standby 8 Caution ...
Page 199: ...183 Chapter 12 Instruction Cache 2 Main body structure Figure 2 3 I Cache Address Map ...
Page 200: ...184 Chapter 12 Instruction Cache 2 Main body structure Figure 2 4 I Cacheable Area ...
Page 222: ...206 Chapter 13 Clock Control 8 Caution ...
Page 232: ...216 Chapter 14 PLL Interface 7 Caution ...
Page 236: ...220 Chapter 15 CAN Clock Prescaler 3 Registers ...
Page 288: ...272 Chapter 19 Timebase Timer 8 Caution ...
Page 314: ...298 Chapter 22 Main Oscillation Stabilisation Timer 8 Caution ...
Page 326: ...310 Chapter 23 Sub Oscillation Stabilisation Timer 8 Caution ...
Page 348: ...332 Chapter 25 External Interrupt 8 Caution ...
Page 398: ...382 Chapter 26 DMA Controller 6 DMA External Interface ...
Page 402: ...386 Chapter 27 Delayed Interrupt 8 Caution ...
Page 412: ...396 Chapter 28 Bit Search 8 Caution ...
Page 521: ...505 Chapter 30 I O Ports 3 Port Register Settings ...
Page 522: ...506 Chapter 30 I O Ports 3 Port Register Settings ...
Page 574: ...558 Chapter 31 External Bus 4 Endian and Bus Access Byte Access ...
Page 628: ...612 Chapter 31 External Bus 13 Notes on Using the External Bus Interface ...
Page 706: ...690 Chapter 33 I2C Controller 4 Programming Flow Charts ...
Page 748: ...732 Chapter 34 CAN Controller 4 CAN Application ...
Page 762: ...746 Chapter 35 Free Run Timer 8 Caution ...
Page 790: ...774 Chapter 37 Output Compare 8 Caution ...
Page 838: ...822 Chapter 39 Programmable Pulse Generator 8 Caution ...
Page 850: ...834 Chapter 40 Pulse Frequency Modulator 4 PFM Operation and Setting ...
Page 886: ...870 Chapter 42 Sound Generator 3 Registers ...
Page 900: ...884 Chapter 43 Stepper Motor Controller 4 Caution ...
Page 939: ...923 Chapter 47 LCD Controller 3 Configuration Figure 3 2 Register List ...
Page 943: ...927 Chapter 47 LCD Controller 4 Registers Correspondence between VRAM and Common Segment Pins ...
Page 964: ...948 Chapter 48 Clock Monitor 8 Caution ...
Page 994: ...978 Chapter 51 Low Voltage Reset Interrupt 3 Registers ...
Page 998: ...982 Chapter 52 Regulator Control 3 Registers ...
Page 1008: ...992 Chapter 53 Fixed Mode Reset Vector BOOT ROM 5 Bootloader Update Strategy ...
Page 1024: ...1008 Chapter 54 Flash Memory 8 Caution ...
Page 1032: ...1016 Chapter 55 Flash Security 4 Register ...
Page 1034: ...1018 Chapter 56 Electrical Specification ...
Page 1035: ...FR60 MB91460 Series Hardware Manual European Microcontroller Design Centre Author MBo ...
Page 1036: ......
Page 1038: ......