![Toshiba TMPM3V4 Manual Download Page 347](http://html.mh-extra.com/html/toshiba/tmpm3v4/tmpm3v4_manual_428626347.webp)
14.5 SSP operation
14.5.1 Initial setting for SSP
Settings for the SSP communication protocol must be made with the SSP disabled.
Control registers SSPCR0 and SSPCR1 need to configure this SSP as a master or slave operating under
one of the following protocols. In addition, make the settings related to the communication speed in the
clock prescale registers SSPCPSR and SSPCR0 <SCR>.
This SSP supports the following protocols:
・
SPI
・
SSI
・
Microwire
14.5.2 Enabling SSP
The transfer operation starts when the operation is enabled with the transmitted data written in the trans-
mit FIFO, or when transmitted data is written in the transmit FIFO with the operation enabled.
However, if the transmit FIFO contains only four or fewer entries when the operation is enabled, a trans-
mit interrupt will be generated. This interrupt can be used to write the initial data.
Note:
When the SSP is in the SPI slave mode and the SPFSS pin is not used, be sure to transmit data of
one byte or more in the FIFO before enabling the operation. If the operation is enabled with the trans-
mit FIFO empty, the transfer data will not be output correctly.
14.5.3 Clock ratios
When setting a frequency for fsys , the following conditions must be met.
・
In master mode
f
SPCLK
(maximum) → f
sys
/2
f
SPCLK
(minimum) → f
sys
/(254×256)
・
In slave mode
f
SPCLK
(maximum) → f
sys
/12
f
SPCLK
(minimum) → f
sys
/(254×256)
Note:
The maximum baud-rate in the master mode is equal or less than 10Mbps.
TMPM3V6/M3V4
Page 325
2019-02-06
Summary of Contents for TMPM3V4
Page 1: ...32 Bit RISC Microcontroller TX03 Series TMPM3V6 M3V4 ...
Page 2: ... 2019 Toshiba Electronic Devices Storage Corporation ...
Page 7: ...Revision History Date Revision Comment 2019 02 06 1 First Release ...
Page 8: ......
Page 22: ...xiv ...
Page 52: ...TMPM3V6 M3V4 3 Processor Core 3 6 Exclusive access Page 30 2019 02 06 ...
Page 148: ...TMPM3V6 M3V4 7 Exceptions 7 6 Exception Interrupt Related Registers Page 126 2019 02 06 ...
Page 178: ...TMPM3V6 M3V4 9 Input Output port 9 2 Block Diagrams of Ports Page 156 2019 02 06 ...
Page 354: ...TMPM3V6 M3V4 14 Synchronous Serial Port SSP 14 6 Frame Format Page 332 2019 02 06 ...
Page 419: ...TMPM3V6 M3V4 Page 397 2019 02 06 ...
Page 462: ...TMPM3V6 M3V4 21 Watchdog Timer WDT 21 5 Control register Page 440 2019 02 06 ...
Page 544: ......