Rainbow-electronics AT89C51SND1C Manual do Utilizador Página 151

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 210
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 150
1 2 ... 146 147 148 149 150 151 152 153 154 155 156 ... 209 210

Comentários a estes Manuais

Sem comentários