![Freescale Semiconductor MPC5604B Quick Start Manual Download Page 124](http://html1.mh-extra.com/html/freescale-semiconductor/mpc5604b/mpc5604b_quick-start-manual_2330604124.webp)
9.
CAN Transceiver(MCZ33905S5EK) Configuration
The starter kit TRK-MPC5604B is equipped with a SBC (System Basis Chip) which also fulfils the
role of a CAN transceiver for FlexCAN1 (or FlexCAN4, they both have the same pins). For this
transceiver to work, this chip has to be powered up and put in debug mode for configuration.
And then it has to be configured using SPI commands.
For powering this chip up, an external power source is necessary, therefore a power supply from
9V to 12V should be used. Be aware that using an external power supply can be problematic for
programming MPC5604B using USB, so, we suggests powering up the board from USB and
letting the external power supply only work on the SBC.
For putting SBC to the debug mode, a voltage over 8V must be applied to the DGB (TP1) pin. This
can be done by removing the jumper on J4 and putting a jumper on J5.
Once all these steps are completed, SBC can be configured using MPC5604B, the DSPI1 modules
PORT H pins are connected to the SBC, so all that is needed is to configure DSPI1 to work on
PORT H and send the following commands with over 1ms of delay between them to allow
transient operations to be completed:
-
0xDF80 : Read Vreg register H, clear power on flags,
-
0x5A00: Go into ‘Normal Mode’,
-
0x5E90: configure voltage regulator,
-
0x60C0: activate CAN transceiver for TX/RX.
Here’s an example code initializing the SPI and the SBC chip’s CAN transceiver:
Summary of Contents for MPC5604B
Page 1: ...LAAS CNRS Quick Start to MPC5604B Embedded Development Sahin Serdar 21 06 2013...
Page 31: ...Figure 33 INTC SW HW mode comparison Freescale Tutorial...
Page 87: ......
Page 132: ......
Page 133: ...127 Appendix 2 Pad Configurations...
Page 134: ......
Page 135: ......
Page 136: ......
Page 137: ......
Page 138: ......
Page 139: ......
Page 140: ......
Page 141: ...Appendix 3 Peripheral input pin selection...
Page 142: ......
Page 143: ...137 Appendix 4 Interrupt Vector Table...
Page 144: ......
Page 145: ......
Page 146: ......
Page 147: ......
Page 148: ...Appendix 5 I C Baud Rate Prescaler Values...
Page 149: ......
Page 150: ......