Microchip Technology Audio Digital-to-Analog Converter Manual de usuario Pagina 24

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 45
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 23
24
© 2007 Microchip Technology Incorporated. All Rights Reserved. Audio Digital-to-Analog Converter Slide 24
Interrupts and Status
z Two Interrupts (one for each channel)
z Interrupt Conditions
FIFO is not full
FIFO is empty
z FIFO Status
FIFO is Full
FIFO is Empty
DAC reads data from FIFO/DACDFLT register every
256 DAC clock cycles.
The Audio DAC provides two interrupts, one for each channel. Depending on the
setting of the interrupt configuration bits (LITYPE for the left channel and RITYPE
for the right channel) in the DAC Status Register (DACxSTAT), the DAC interrupt
is triggered by either a “FIFO EMPTY” or “FIFO NOT FULL” condition. The FIFO
empty interrupt can be used with the Audio DAC to maximize throughput while
minimizing the impact of interrupts on the CPU. The FIFO EMPTY interrupt is the
simplest and preferred interrupt method for use with DMA. The FIFO NOT FULL
interrupt is used in applications without DMA to minimize the occurrence of DAC
under-run. This interrupt can also be used with DMA, but additional software
support is required.
Each channel also has two status bits that can be read to indicate the status of the
FIFO. The Right Channel Full (RFULL) and the Left Channel Full (LFULL) bits in
the DACxSTAT register indicate that the FIFO is FULL. The Right Channel Empty
(REMPTY) and the Left Channel Empty (LEMPTY) bits in the DACxSTAT
register indicate that the FIFO is EMPTY.
Vista de pagina 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 44 45

Comentarios a estos manuales

Sin comentarios