03.08.2013 Views

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

MC9S12VR-Family - Data Sheet - Freescale Semiconductor

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SPI<br />

Interrupt<br />

Request<br />

Bus Clock<br />

SPI<br />

SPI Control Register 1<br />

SPI Control Register 2<br />

SPI Status Register<br />

SPIF MODF SPTEF<br />

Interrupt Control<br />

Baud Rate Generator<br />

Prescaler<br />

Counter<br />

Clock Select<br />

SPPR 3 SPR 3<br />

SPI Baud Rate Register<br />

SPI <strong>Data</strong> Register<br />

Baud Rate<br />

Slave<br />

Control<br />

Master<br />

Control<br />

11.2 External Signal Description<br />

Figure 11-1. SPI Block Diagram<br />

<strong>MC9S12VR</strong> <strong>Family</strong> Reference Manual, Rev. 2.8<br />

Serial Peripheral Interface (S12SPIV5)<br />

This section lists the name and description of all ports including inputs and outputs that do, or may, connect<br />

off chip. The SPI module has a total of four external pins.<br />

11.2.1 MOSI — Master Out/Slave In Pin<br />

This pin is used to transmit data out of the SPI module when it is configured as a master and receive data<br />

when it is configured as slave.<br />

11.2.2 MISO — Master In/Slave Out Pin<br />

Slave Baud Rate<br />

Master Baud Rate<br />

Shifter<br />

LSBFE=1 LSBFE=0<br />

MSB<br />

LSBFE=1<br />

LSBFE=0<br />

LSB<br />

LSBFE=0 LSBFE=1<br />

CPOL CPHA<br />

Phase +<br />

Polarity<br />

Control<br />

Phase +<br />

Polarity<br />

Control<br />

SCK In<br />

SCK Out<br />

<strong>Data</strong> In<br />

<strong>Data</strong> Out<br />

Port<br />

Control<br />

Logic<br />

This pin is used to transmit data out of the SPI module when it is configured as a slave and receive data<br />

when it is configured as master.<br />

<strong>Freescale</strong> <strong>Semiconductor</strong> 345<br />

2<br />

2<br />

BIDIROE<br />

SPC0<br />

Shift Sample<br />

Clock Clock<br />

MOSI<br />

SCK<br />

SS

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!