W7500x Reference Manual Version1.1.0
367 / 399
F
SSPCLK
(min) => 12 x F
SSPCLKIN
(max), for slave mode.
The maximum frequency of SSPCLK is calculated by the following equations, both of which
must be satisfied:
F
SSPCLK
(max) <= 254 x 256 x F
SSPCLKOUT
(min), for master mode
F
SSPCLK
(max) <= 254 x 256 x F
SSPCLKIN
(min), for slave mode.
Programming the SSPCR0 Control Register
The SSPCR0 register is used to:
• program the serial clock rate
• select one of the three protocols
• select the data word size, where applicable.
The Serial Clock Rate (SCR) value in conjunction with the SSPCPSR clock prescale divisor value,
CPSDVSR, is used to derive the PrimeCell SSP transmit and receive bit rate from the external
SSPCLK.
The frame format is programmed through the FRF bits and the data word size through the DSS
bits.
Bit phase and polarity applicable to Motorola SPI format only are programmed through the SPH
and SPO bits.
Programming the SSPCR1 Control Register
The SSPCR1 register is used to:
• select master or slave mode
• enable a loop back test feature
• enable the PrimeCell SSP peripheral.
To configure the PrimeCell SSP as a master, clear the SSPCR1 register master or slave selection
bit, MS, to 0. This is the default value on reset.
Setting the SSPCR1 register MS bit to 1 configures the PrimeCell SSP as a slave. When
configured as a slave, enabling or disabling of the PrimeCell SSP SSPTXD signal is provided
through the SSPCR1 slave mode SSPTXD output disable bit, SOD. You can use this in some multi-
slave environments where masters might parallel broadcast.
Содержание W7500
Страница 28: ...W7500x Reference Manual Version1 1 0 28 399 Memory map Figure 2 W7500x memory map ...
Страница 324: ...W7500x Reference Manual Version1 1 0 324 399 Figure 46 UART character frame ...
Страница 391: ...W7500x Reference Manual Version1 1 0 391 399 1 SSP1 must not drive the SSPTXD output in slave mode ...