13
13-82
Rev.1.0
➁
Setting the number of sampling times
Select the number of times the CAN bus is sampled. This can be chosen to "sample
once" or "sample three times."
•
When chosen to sample once, the value sampled at the end of Phase Segment1 is
assumed to be the value of the bit.
•
When chosen to sample three times, the bus is sampled at three points-the first
sampling point and 1 Tq and 2 Tq's before that, and the sampled values are resolved
by majority logic to determine the value of the bit.
(5) Setting the ID Mask Registers
Set values in the ID mask registers used in acceptance filtering of the received message (Global
Mask Register and Local Mask Registers A and B).
(6) Settings when operating in BasicCAN mode
•
Set the CAN Extended ID Register IDE14 and IDE15 bits. (Setting the same value for
both is recommended.)
•
Set the ID in message slots 14 and 15.
•
Set the Message Control Registers 14 and 15 to receive a data frame (H'40).
(7) Setting CAN module operation mode
Using the CAN Control Register (CANCNT), select operation mode of the CAN module
(BasicCAN or loopback mode) and the clock source for the time stamp counter.
(8) Releasing the CAN module from reset
After initial settings in (1) through (7) above, clear the CAN Control Register (CANCNT)'s forcible
reset (FRST) and reset (RST) bits to 0. Then, after detecting 11 consecutive recessive bits on the
CAN bus, the CAN module becomes ready to communicate.
Synchronization
Segment
Propagation Segment
Phase Segment1
Phase Segment2
(1)
(2)
(3)
Sampling Point
1Tq
1 Bit
•
This diagram shows bit timing when one bit is comprised of 8 Tq's.
•
When chosen to sample once, the value sampled at Sampling Point (1) is assumed to be the value
of the bit.
•
When chosen to sample three times, the CAN bus values sampled at Sampling Points (1), (2), and
(3) are resolved by majority logic to determine the value of the bit.
Figure 13.4.1
Example of Bit Timing
CAN MODULES
13.4 Initialization of the CAN Module
Содержание 32172
Страница 20: ... This is a blank page 16 ...
Страница 21: ...1 1 Overview 1 2 Block Diagram 1 3 Pin Functions 1 4 Pin Layout CHAPTER 1 CHAPTER 1 OVERVIEW ...
Страница 44: ...1 1 24 Rev 1 0 This is a blank page Overview 1 4 Pin Layout ...
Страница 58: ...2 2 14 Rev 1 0 This is a blank page CPU 2 6 Data Formats ...
Страница 122: ...4 4 26 Rev 1 0 This is a blank page EIT 4 13 Precautions on EIT ...
Страница 200: ...7 7 6 Rev 1 0 This is a blank page RESET 7 4 Precautions to Be Taken Immediately after Reset ...
Страница 240: ...8 8 40 Rev 1 0 This is a blank page INPUT OUTPUT PORTS AND PIN FUNCTIONS 8 5 Precautions on Input Output Ports ...
Страница 298: ...9 9 58 Rev 1 0 This is a blank page DMAC 9 4 Precautions on Using DMAC ...
Страница 416: ...10 10 118 Rev 1 0 This is a blank page INPUT OUTPUT TIMERS 10 6 TOM Output Related 16 bit Timers ...
Страница 658: ...14 14 16 Rev 1 0 REAL TIME DEBUGGER RTD 14 4 Typical Connection with the Host This is a blank page ...
Страница 718: ...16 16 16 Rev 1 0 This is a blank page D A CONVERTERS 16 3 Functional Description of the D A Converters ...
Страница 766: ...18 18 22 Rev 1 0 WAIT CONTROLLER 18 3 Typical Operation of the Wait Controller This is a blank page ...
Страница 776: ...19 19 10 Rev 1 0 RAM BACKUP MODE 19 4 Exiting RAM Backup Mode Wakeup This is a blank page ...
Страница 777: ...CHAPTER 20 CHAPTER 20 OSCILLATION CIRCUIT 20 1 Oscillator Circuit 20 2 Clock Generator Circuit ...
Страница 782: ...20 20 6 Rev 1 0 OSCILLATION CIRCUIT 20 2 Clock Generator Circuit This is a blank page ...
Страница 856: ...23 23 26 Rev 1 0 This is a blank page ELECTRICAL CHARACTERISTICS 23 6 AC Characteristics ...
Страница 857: ...24 1 A D Conversion Characteristics CHAPTER 24 CHAPTER 24 STANDARD CHARACTERISTICS ...
Страница 859: ...Appendix 1 1 Dimensional Outline Drawing APPENDIX 1 APPENDIX 1 MECHANICAL SPECIFICATIONS ...
Страница 861: ...Appendix 2 1 M32R E Instruction Processing Time APPENDIX 2 APPENDIX 2 INSTRUCTION PROCESSING TIME ...
Страница 865: ...Appendix 3 1 Precautions about Noise APPENDIX 3 APPENDIX 3 PRECAUTIONS ABOUT NOISE ...