- •Preface
- •About this document
- •Intended audience
- •Organization
- •Typographical conventions
- •Further reading
- •ARM publications
- •Feedback
- •Feedback on this document
- •Feedback on the ARM PrimeCell Generic Infrared Interface (PL140)
- •Introduction
- •1.1 About the ARM PrimeCell Generic Infrared Interface (PL140)
- •1.1.1 Features of the PrimeCell GIR
- •1.1.2 Programmable parameters
- •1.2 Block diagram
- •1.3 AMBA compatibility
- •Functional Overview
- •2.1 ARM PrimeCell Generic Infrared Interface (PL140) overview
- •2.2 PrimeCell GIR functional description
- •2.2.1 AMBA APB interface
- •2.2.2 Register block
- •2.2.3 Receive and transmit clock divider
- •2.2.4 Transmit FIFO
- •2.2.5 Receive FIFO
- •2.2.6 Transmit logic
- •2.2.7 Receive logic
- •2.2.8 Interrupt generation logic
- •2.2.9 Synchronizing registers and logic
- •2.2.10 Test registers and logic
- •2.3 Infrared methodology
- •2.4 PrimeCell GIR operation
- •2.4.1 Interface reset
- •2.4.2 Clock signals
- •2.4.3 Receive processing
- •2.4.4 Receive demodulation
- •2.4.5 Receive FIFO information
- •2.4.6 Transmit processing
- •2.4.7 Transmit modulation
- •2.4.8 Clock dividers
- •Programmer’s Model
- •3.1 About the programmer’s model
- •3.2 Summary of PrimeCell GIR registers
- •3.3 Register descriptions
- •3.3.1 GIRFCR: [15] (+ 0x00)
- •3.3.5 GIRSTAT: [8] (+0x10)
- •3.3.7 GIRIIR/GIRICR: [3/0] (+0x18)
- •Programmer’s Model for Test
- •4.1 PrimeCell GIR test harness overview
- •4.2 Scan testing
- •4.3 Test registers
- •4.3.4 GIRTISR: [1] (+0x88)
- •4.3.5 GIRTOCR: [5] (+0x8c)
- •4.3.6 GIRTTXCDC [16] (+0x90)
- •4.3.7 GIRTRXCDC [16] (+0x94)
- •4.3.8 GIRTTXC [20] (+0x98)
- •4.3.9 GIRTRXPTC [20] (+0x9c)
- •4.3.10 GIRTDC [7] (+0xa0)
- •A.1 AMBA APB signals
- •A.2 On-chip signals
- •A.3 Signals to pads
Functional Overview
Note
The minimum HIGH phase duration supported is limited to 2/16 of the carrier period and a value 0000 is an invalid selection.
2.4.8Clock dividers
The reference clock input GIRCLK is used to drive programmable dividers within the block, which generate the internal clock frequencies used by the transmit and receive logic. The internal clock frequency must be 16 times the carrier frequency when modulation, or demodulation is in use. If a carrier is not required, the clock rate selected does not have to be 16 times the symbol rate (though often it will be). A separate divider is provided for transmit and receive paths. The registers GIRRXGENCR and GIRTXGENCR need to be programmed with the value clkdiv for the receive and transmit clock dividers respectively.
When carrier modulation and demodulation is required in the receive or transmit logic, the required divisor to create the correct internal clock is given by:
Divisor = FGIR / (16 x carrier rate)
where FGIR is the input clock frequency of GIRCLK.
When no demodulation or modulation is required, the internal frequency can be set by the incoming symbol rate (the repetition rate of the HIGHs and LOWs on the data). Assuming the use of 16 times the symbol rate, the required divisor to create the correct internal clock is given by:
Divisor = FGIR / (16 x symbol rate)
where FGIR is the PrimeCell GIR input reference clock frequency.
The value written to the clock generator control register GIRRXGENCR and
GIRTXGENCR is related to the divisor as stated below:
clkdiv = Divisor – 1.
2-16 |
© Copyright ARM Limited 1999. All rights reserved. |
ARM DDI 0149B |