MPC8260 PowerQUICC II Family Reference Manual, Rev. 2
xlii Freescale Semiconductor
Contents
Paragraph
Number Title
Page
Number
38.3.1 The SPI as a Master Device ...................... ......................... .. ........................ .............. 38-3
38.3.2 The SPI as a Slave Device .................. ......................... ........................ .. .................... 38-4
38.3.3 The SPI in Multimaster Operation.............................................................................38-4
38.4 Programming the SPI R egisters...... ........................... ........................ ........................ ....38 -6
38.4.1 SPI Mode Register (SPMODE) .............. ......................... ........................ .. ................ 38-6
38.4.1.1 SPI Examples with Diffe rent SPMODE[LEN] Values........ ........................ .......... 38-8
38.4.2 SPI Event/Mask Register s (SPIE/SPIM) ....................... ........................ .................... 38-9
38.4.3 SPI Command Register ( SPCOM) ...................... ........................ ........................ ....38- 10
38.5 SPI Parameter RAM ......... ........................ ......................... .......................... ................ 38-10
38.5.1 Receive/Transmit Function Code Registers (RFCR/TFCR)....................................38-12
38.6 SPI Commands ......... ........................ ......................... ........................ ........................ ..38-12
38.7 The SPI Buffer Descriptor (BD) Table ........... .. ......................... ........................ .......... 38-13
38.7.1 SPI Buffer Descriptors ( BDs)....... ......................... ........................ ........................ ..38- 13
38.7.1.1 SPI Receive BD (RxBD)............................................................. ...... ...... ...... ...... 38-14
38.7.1.2 SPI Transmit BD (TxBD) ..................... .. ......................... ........................ .. .......... 38-15
38.8 SPI Master Programming Example ..................... ........................ ........................ ........ 38-16
38.9 SPI Slave Programming E xample............... ......................... .......................... .............. 38-17
38.10 Handling Interrupts in the SPI ...................... ......................... ........................ .............. 38-18
Chapter 39
I2C Controller
39.1 Features..........................................................................................................................39-2
39.2 I2C Controller Clocking and Sign a l F u n c t i o n s ................ ........................ ...................... 39-2
39.3 I2C Controller Transfers ..... ........................ ......................... .......................... ................ 39-2
39.3.1 I2C Master Write (Slave Read) ..................... ......................... ........................ ............ 39-3
39.3.2 I2C Loopback Testing................................................................................................ 39-4
39.3.3 I2C Master Read (Slave Write) ..................... ......................... ........................ ............ 39-4
39.3.4 I2C Multi-Master Consi derations .................... ........................ ........................ .......... 39-5
39.4 I2C Registers ....................... ........................ ......................... ........................ .................. 39-6
39.4.1 I2C Mode Register (I2MO D)................ ......................... .......................... .................. 39-6
39.4.2 I2C Address Register (I2ADD).................................................................................. 39-6
39.4.3 I2C Baud Rate Generator Register (I2BRG) ......... ........................ ........................ ....39- 7
39.4.4 I2C Event/Mask Register s (I2CER/I2CMR) ........... .......................... ........................ 39-7
39.4.5 I2C Command Register ( I2COM)................. ......................... ........................ ............ 39-8
39.5 I2C Parameter RAM........ ........................ ......................... ........................ ...................... 39-9
39.6 I2C Commands.......... ........................ ......................... ........................ .......................... 3 9-11
39.7 The I2C Buffer Descriptor (BD) Table ......... ......................... ........................ .............. 39-11
39.7.1 I2C Buffer Descriptors ( BDs)..... ......................... ........................ ........................ ....39- 12
39.7.1.1 I2C Receive Buffer Descriptor (RxBD)............................................................... 39-12
39.7.1.2 I2C Transmit Buffer Descriptor (TxBD).............................................................39-13