Rainbow-electronics AT89C51SND1C Manual de usuario Pagina 151

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 210
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 150
151
AT8xC51SND1C
4109E805106/03
Interrupt The SPI handles 2 interrupt sources that are the end of transfer and the mode fault
flags.
As shown in Figure 118, these flags are combined toghether to appear as a single inter-
rupt source for the C51 core. The SPIF flag is set at the end of an 8-bit shift in and out
and is cleared by reading SPSTA and then reading from or writing to SPDAT.
The MODF flag is set in case of mode fault error and is cleared by reading SPSTA and
then writing to SPCON.
The SPI interrupt is enabled by setting ESPI bit in IEN1 register. This assumes inter-
rupts are globally enabled by setting EA bit in IEN0 register.
Figure 118. SPI Interrupt System
ESPI
IEN1.2
SPI Controller
Interrupt Request
SPIF
SPSTA.7
MODF
SPSTA.4
Vista de pagina 150
1 2 ... 146 147 148 149 150 151 152 153 154 155 156 ... 209 210

Comentarios a estos manuales

Sin comentarios