|
MC68HC08AZ60A Datasheet, PDF (270/480 Pages) Motorola, Inc – Microcontrollers | |||
|
◁ |
Serial Peripheral Interface (SPI)
To protect status bits during the break state, a â0â should be written to the
BCFE bit. With BCFE at â0â (its default state), software can read and write
I/O registers during the break state without affecting status bits. Some
status bits have a two-step read/write clearing procedure. If software
does the first step on such a bit before the break, the bit cannot change
during the break state as long as BCFE is a â0â. After the break, the
second step clears the status bit.
Since the SPTE bit cannot be cleared during a break with the BCFE bit
cleared, a write to the data register in break mode will not initiate a
transmission, nor will this data be transferred into the shift register.
Therefore, a write to the SPDR in break mode with the BCFE bit cleared
has no effect.
17.12 I/O Signals
The SPI module has five I/O pins and shares four of them with a parallel
I/O port.
⢠MISO â data received
⢠MOSI â data transmitted
⢠SPSCK â serial clock
⢠SS â slave select
⢠VSS â clock ground
The SPI has limited inter-integrated circuit (I2C) capability (requiring
software support) as a master in a single-master environment. To
communicate with I2C peripherals, MOSI becomes an open-drain output
when the SPWOM bit in the SPI control register is set. In I2C
communication, the MOSI and MISO pins are connected to a
bidirectional pin from the I2C peripheral and through a pullup resistor to
VDD.
Advance Information
270
Serial Peripheral Interface (SPI)
MC68HC08AZ60A â Rev 0.0
MOTOROLA
|
▷ |