CAN Sampler
MPC5606S Microcontroller Reference Manual, Rev. 7
184
Freescale Semiconductor
7.4
Functional description
As the CAN Sampler is driven by the 16 MHz IRC to properly sample the CAN identifier, two modes are
possible, depending on both the CAN baud rate and the low-power mode used:
•
Immediate sampling on falling edge detection (first CAN frame): this mode is used when the IRC
16 MHz is available in low-power mode, for example Stop or Halt.
•
Sampling on next frame (second CAN frame): this mode is used when the IRC 16 MHz is switched
off in low-power mode, for example Standby. Due to the startup times of both the voltage regulator
and the IRC 16 MHz (~10 µs), the CAN Sampler would miss the first bits of a CAN identifier sent
at 500 kbit/s. Therefore the first identifier is ignored and the sampling is performed on the first
falling edge of after interframe space.
The CAN Sampler performs sampling on a user-selected CAN Rx port, normally when the device is in
Standby or Stop mode storing the samples in internal registers. The user is required to configure the baud
rate to achieve 8 samples per CAN nominal bit. It does not perform any sort of filtering on input samples.
Thereafter, the software must enable the sampler by setting the CAN_SMPLR_EN bit in the CR register.
It then becomes the master controller for accessing the internal registers implemented for storing samples.
When enabled, the CAN Sampler waits for a low pulse on the selected Rx line, taking it as a valid bit of
the first CAN frame. It generates the RC wakeup request, which can be used to start the RC oscillator.
Depending on the mode, it stores the first 8 samples of the 48 bits on the selected Rx line or skips the first
frame and stores 8 bits for the first 48 bits of the second frame. In FF_MODE, it samples the CAN Rx line
on the RC clock and stores the 8 samples of the first 48 bits (384 samples). In SF_MODE, it samples the
Rx line and waits for 11 consecutive dominant bits (11 × 8 samples), taking it as the end of the first frame.
It then waits for the first low pulse on the Rx line, taking it as a valid Start of Frame (SOF) of the second
frame. The sampler takes 384 samples (48 bytes × 8) using the RC clock (configuring 8 samples per
Address Offset: 0x04
Reset value: xxxx xxxxh
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
SR[0:15]
W
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
R
SR[16:31]
W
Figure 7-3. Sample Register 0
Address Offset: 0x30
Reset value: xxxx xxxxh
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
R
SR[0:15]
W
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
R
SR[16:31]
W
Figure 7-4. Sample Register 11
Содержание MPC5602S
Страница 76: ...Overview MPC5606S Microcontroller Reference Manual Rev 7 74 Freescale Semiconductor...
Страница 82: ...Memory Map MPC5606S Microcontroller Reference Manual Rev 7 80 Freescale Semiconductor...
Страница 112: ...Signal Description MPC5606S Microcontroller Reference Manual Rev 7 110 Freescale Semiconductor...
Страница 166: ...Analog to Digital Converter ADC MPC5606S Microcontroller Reference Manual Rev 7 164 Freescale Semiconductor...
Страница 182: ...Boot Assist Module BAM MPC5606S Microcontroller Reference Manual Rev 7 180 Freescale Semiconductor...
Страница 234: ...Clock Description MPC5606S Microcontroller Reference Manual Rev 7 232 Freescale Semiconductor...
Страница 286: ...Crossbar Switch XBAR MPC5606S Microcontroller Reference Manual Rev 7 284 Freescale Semiconductor...
Страница 470: ...e200z0h Core MPC5606S Microcontroller Reference Manual Rev 7 468 Freescale Semiconductor...
Страница 524: ...Enhanced Direct Memory Access eDMA MPC5606S Microcontroller Reference Manual Rev 7 522 Freescale Semiconductor...
Страница 546: ...Error Correction Status Module ECSM MPC5606S Microcontroller Reference Manual Rev 7 544 Freescale Semiconductor...
Страница 669: ...Flash Memory MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 667...
Страница 670: ...Flash Memory MPC5606S Microcontroller Reference Manual Rev 7 668 Freescale Semiconductor...
Страница 716: ...FlexCAN MPC5606S Microcontroller Reference Manual Rev 7 714 Freescale Semiconductor...
Страница 882: ...LIN Controller LINFlex MPC5606S Microcontroller Reference Manual Rev 7 880 Freescale Semiconductor...
Страница 901: ...Memory Protection Unit MPU MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 899...
Страница 902: ...Memory Protection Unit MPU MPC5606S Microcontroller Reference Manual Rev 7 900 Freescale Semiconductor...
Страница 955: ...Mode Entry Module MC_ME MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 953...
Страница 956: ...Mode Entry Module MC_ME MPC5606S Microcontroller Reference Manual Rev 7 954 Freescale Semiconductor...
Страница 1072: ...Quad Serial Peripheral Interface QuadSPI MPC5606S Microcontroller Reference Manual Rev 7 1070 Freescale Semiconductor...
Страница 1096: ...Reset Generation Module MC_RGM MPC5606S Microcontroller Reference Manual Rev 7 1094 Freescale Semiconductor...
Страница 1106: ...Real Time Clock RTC API MPC5606S Microcontroller Reference Manual Rev 7 1104 Freescale Semiconductor...
Страница 1186: ...Stepper Stall Detect SSD MPC5606S Microcontroller Reference Manual Rev 7 1184 Freescale Semiconductor...
Страница 1213: ...System Integration Unit Lite SIUL MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 1211...
Страница 1214: ...System Integration Unit Lite SIUL MPC5606S Microcontroller Reference Manual Rev 7 1212 Freescale Semiconductor...
Страница 1238: ...Voltage Regulators and Power Supplies MPC5606S Microcontroller Reference Manual Rev 7 1236 Freescale Semiconductor...
Страница 1252: ...Wakeup Unit WKPU MPC5606S Microcontroller Reference Manual Rev 7 1250 Freescale Semiconductor...
Страница 1258: ...Registers Under Protection MPC5606S Microcontroller Reference Manual Rev 7 1256 Freescale Semiconductor...
Страница 1323: ...Register Map MPC5606S Microcontroller Reference Manual Rev 7 Freescale Semiconductor 1321...
Страница 1324: ...Register Map MPC5606S Microcontroller Reference Manual Rev 7 1322 Freescale Semiconductor...