Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
ARM PrimeCell generic infrared interface technical reference manual.pdf
Скачиваний:
10
Добавлен:
23.08.2013
Размер:
487.36 Кб
Скачать

Chapter 2

Functional Overview

This chapter describes the major functional blocks of the ARM PrimeCell Generic Infrared Interface (PL140):

ARM PrimeCell Generic Infrared Interface (PL140) overview on page 2-2

PrimeCell GIR functional description on page 2-3

PrimeCell GIR operation on page 2-11.

ARM DDI 0149B

© Copyright ARM Limited 1999. All rights reserved.

2-1

Functional Overview

2.1ARM PrimeCell Generic Infrared Interface (PL140) overview

The PrimeCell GIR can be used to implement a generic infrared interface, which can communicate using most of the commonly available standards, to an infrared peripheral device such as a remote control. This flexibility has been achieved using programmable features in the PrimeCell GIR, and implementing the various data encoding/decoding protocols in software.

The CPU reads and writes data and control/status information via the AMBA APB interface. The transmit and receive paths are buffered with internal FIFO memories allowing up to sixteen 17-bit values to be stored independently in both transmit and receive modes. Serial data are transmitted on GIROUT and received on GIRIN.

Data are encoded/decoded in software and then communicated as a serial stream of digital binary symbols which may or may not be modulated on a relatively high frequency carrier signal (20-60kHz).

Received pulse width values are stored in the receive FIFO, and transmit pulse widths are generated according to the values read from the transmit FIFO.

The PrimeCell GIR includes independent transmit and receive programmable clock generation. It divides down the input reference clock GIRCLK, to generate the internal clock enable frequencies used by the transmit and receive logic.

Modulation and demodulation can be enabled or disabled according to whether data are modulated on a carrier, or data are sent using direct pulse transmission. The input reference clock GIRCLK, should be sixteen times the modulation carrier frequency

and the duty cycle of the transmitted carrier pulses is programmable from 1/16 to 15/16 of the carrier signal period using GIRTXDUTYCR.

The PrimeCell GIR operating modes are programmed using the function control register GIRFCR.

Three individually maskable interrupt outputs are generated:

GIRTXINTR requests servicing of the transmit buffer

GIRRXINTR requests servicing of the receive buffer

GIRRORINTR indicates an overrun condition in the receive FIFO.

A single combined interrupt, GIRINTR output is asserted if any of the individual interrupts are asserted and unmasked.

2-2

© Copyright ARM Limited 1999. All rights reserved.

ARM DDI 0149B