
Boot Assist Module (BAM)
MPC5644A Microcontroller Reference Manual, Rev. 6
Freescale Semiconductor
635
2.5 x 2
27
system clock cycles and disables SWT watchdog. See
for examples of time out
periods.
The BAM code passes control to the loaded code at start address, which was received in step 2 of
the protocol.
NOTE
The loaded code must periodically refresh the core watchdog timer or
change the timeout period to a value that will not cause resets during normal
operation.
21.5.5.5
Baud rate detection procedure
To improve baud rate detection accuracy the baud rate detection routine is copied to the beginning of the
system RAM from the BAM ROM. Then the CPU branches to the RAM.
The device configures the CN_A_RX and SCI_A_RX pins as general purpose inputs and starts to poll
them until one of them goes low.
If the CN_A_RX pin transitions first, the BAM program starts CAN baud rate detection routine, ignoring
SCI_A_RX. After detecting the CAN baud rate, the BAM program transitions to the CAN download
protocol routine described above.
If the SCI_A_RX pin transitions first, the SCI baud rate detection and download protocol routines are
called, ignoring any further CAN pins activity.
21.5.5.5.1
SCI baud rate detection
The host has to send a zero byte to allow the device to detect the serial link baud rate. The host transmits
1 start bit, 8 zero data bits and 1 stop bit. The device does not echo it.
The device polls the SCI_A_RX pin for high to low transition and starts the core Time Base counter (TBU
and TBL). Then the device polls for low to high transition on the pin and when it happens, the device turns
off the TB counter. The TB content is used to calculate incoming signal baud rate. The SCI baud rate is
equal to the TB content divided by 144 (measured over 9 bits with 16 system clocks per bit).
21.5.5.6
CAN baud rate detection
The host transmits a zero length message with zero 11-bit ID and the device measures time over 40 bits,
polling CN_A_RX pin for high and low, according to the sent data. The device does not acknowledge this
message.
The CAN baud rate depends on the number of quanta per bit and serial clock frequency, which is defined
by a prescaler. The CAN baud rate detection routine selects these parameters to maximize number of
quanta per bit and achieve minimum difference between measured value and duration of the 40 CAN bits,
to be programmed with selected pair of the parameters.
The CAN controller can be programmed with 8 to 25 number of quanta per bit. The bit timing parameters,
selected by the baud rate detection routine, are shown in
. (See FlexCAN chapter for the
parameters definition).
Содержание MPC5644A
Страница 2: ...MPC5644A Microcontroller Reference Manual Rev 6 2 Freescale Semiconductor...
Страница 24: ...MPC5644A Microcontroller Reference Manual Rev 6 24 Freescale Semiconductor...
Страница 26: ...MPC5644A Microcontroller Reference Manual Rev 6 26 Freescale Semiconductor...
Страница 52: ...Introduction MPC5644A Microcontroller Reference Manual Rev 6 52 Freescale Semiconductor...
Страница 56: ...Memory Map MPC5644A Microcontroller Reference Manual Rev 6 56 Freescale Semiconductor...
Страница 130: ...Device Performance Optimization MPC5644A Microcontroller Reference Manual Rev 6 130 Freescale Semiconductor...
Страница 204: ...Multi Layer AHB Crossbar Switch XBAR MPC5644A Microcontroller Reference Manual Rev 6 204 Freescale Semiconductor...
Страница 212: ...Peripheral Bridge PBRIDGE MPC5644A Microcontroller Reference Manual Rev 6 212 Freescale Semiconductor...
Страница 558: ...System Integration Unit SIU MPC5644A Microcontroller Reference Manual Rev 6 558 Freescale Semiconductor...
Страница 582: ...Frequency modulated phase locked loop FMPLL MPC5644A Microcontroller Reference Manual Rev 6 582 Freescale Semiconductor...
Страница 766: ...Enhanced Time Processing Unit eTPU2 MPC5644A Microcontroller Reference Manual Rev 6 766 Freescale Semiconductor...
Страница 1228: ...Decimation Filter MPC5644A Microcontroller Reference Manual Rev 6 1228 Freescale Semiconductor...
Страница 1236: ...System Information Module and Trim SIM MPC5644A Microcontroller Reference Manual Rev 6 1236 Freescale Semiconductor...
Страница 1250: ...Cyclic Redundancy Checker CRC Unit MPC5644A Microcontroller Reference Manual Rev 6 1250 Freescale Semiconductor...
Страница 1336: ...Deserial Serial Peripheral Interface DSPI MPC5644A Microcontroller Reference Manual Rev 6 1336 Freescale Semiconductor...
Страница 1388: ...Enhanced Serial Communication Interface ESCI MPC5644A Microcontroller Reference Manual Rev 6 1388 Freescale Semiconductor...
Страница 1440: ...FlexCAN Module MPC5644A Microcontroller Reference Manual Rev 6 1440 Freescale Semiconductor...
Страница 1624: ...FlexRay Communication Controller FlexRay MPC5644A Microcontroller Reference Manual Rev 6 1624 Freescale Semiconductor...
Страница 1670: ...JTAG Controller JTAGC MPC5644A Microcontroller Reference Manual Rev 6 1670 Freescale Semiconductor...
Страница 1692: ...Nexus Port Controller NPC MPC5644A Microcontroller Reference Manual Rev 6 1692 Freescale Semiconductor...
Страница 1701: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 Freescale Semiconductor 1701...
Страница 1702: ...Development Trigger Semaphore DTS MPC5644A Microcontroller Reference Manual Rev 6 1702 Freescale Semiconductor...