Initializing Module In Master/Slave Modes; Baud Rate Settings - NXP Semiconductors freescale KV4 Series Reference Manual

Table of Contents

Advertisement

Initialization/application information
1. Halt it by setting MCR[HALT].
2. Clear the transmit and receive FIFOs by writing a 1 to the CLR_TXF and CLR_RXF
bits in MCR.
3. Set the appropriate mode in MCR[MSTR] and enable it by clearing MCR[HALT].

44.6.3 Initializing Module in Master/Slave Modes

Once the appropriate mode in MCR[MSTR] is configured, the module is enabled by
clearing MCR[HALT]. It should be ensured that module Slave is enabled before enabling
it's Master. This ensures the Slave is ready to be communicated with, before Master
initializes communication.

44.6.4 Baud rate settings

The following table shows the baud rate that is generated based on the combination of the
baud rate prescaler PBR and the baud rate scaler BR in the CTARs. The values calculated
assume a 100 MHz protocol frequency and the double baud rate DBR bit is cleared.
The clock frequency mentioned above is given as an example in
this chapter. See the clocking chapter for the frequency used to
drive this module in the device.
2
4
6
8
16
32
64
128
256
512
1024
2048
1226
NOTE
Table 44-45. Baud rate values (bps)
2
25.0M
12.5M
8.33M
6.25M
3.12M
1.56M
781k
391k
195k
97.7k
48.8k
24.4k
Table continues on the next page...
KV4x Reference Manual, Rev. 2, 02/2015
Preliminary
Baud rate divider prescaler values
3
16.7M
10.0M
8.33M
5.00M
5.56M
3.33M
4.17M
2.50M
2.08M
1.25M
1.04M
625k
521k
312k
260k
156k
130k
78.1k
65.1k
39.1k
32.6k
19.5k
16.3k
9.77k
Freescale Semiconductor, Inc.
5
7
7.14M
3.57M
2.38M
1.79M
893k
446k
223k
112k
55.8k
27.9k
14.0k
6.98k

Advertisement

Table of Contents
loading

Table of Contents