- •Preface
- •About this document
- •Intended audience
- •Organization
- •Typographical conventions
- •Timing diagram conventions
- •Further reading
- •ARM publications
- •Feedback
- •Feedback on this document
- •Feedback on the ARM PrimeCell Audio CODEC Interface (PL040)
- •Introduction
- •1.1 About the ARM PrimeCell Audio CODEC Interface (PL040)
- •1.1.1 Features of the PrimeCell ACI
- •1.1.2 An example CODEC interface
- •1.2 AMBA compatibility
- •Functional Overview
- •2.1 ARM PrimeCell Audio CODEC Interface (PL040) overview
- •2.2 PrimeCell ACI functional description
- •2.2.1 AMBA APB interface and register block
- •2.2.2 Frequency divider
- •2.2.3 Transmit FIFO
- •2.2.4 Receive FIFO
- •2.2.5 Transmit logic
- •2.2.6 Receive logic
- •2.2.7 Interrupt generation logic
- •2.2.8 Synchronizing registers and logic
- •2.2.9 Test registers and logic
- •2.3 PrimeCell ACI operation
- •2.3.1 Interface reset
- •2.3.2 Clock signals
- •2.3.3 PrimeCell ACI operation
- •2.3.4 System loopback testing
- •Programmer’s Model
- •3.1 About the programmer’s model
- •3.2 Summary of PrimeCell ACI registers
- •3.3 Register descriptions
- •3.3.1 ACIDR: [8] (+ 0x00)
- •3.3.2 ACICR: [5] (+ 0x04)
- •3.3.3 ACISR: [8] (+0x08)
- •3.3.4 ACICDR_L: [8] (+ 0x0c)
- •3.3.5 ACICDR_H: [2] (+ 0x10)
- •3.4 Interrupts
- •3.4.1 Interrupt generation logic
- •Programmer’s Model for Test
- •4.1 PrimeCell ACI test harness overview
- •4.2 Scan testing
- •4.3 Test registers
- •4.3.2 ACITCR [5] (+0x80)
- •4.3.3 ACITMR [3] (+0x84)
- •4.3.4 ACITISR [1] (+0x88)
- •4.3.5 ACITOCR [4] (+0x8c)
- •4.3.6 ACITCDR_L [8] (+0x90)
- •4.3.7 ACITCDR_H [2] (+0x94)
- •A.1 AMBA APB signals
- •A.2 On-chip signals
- •A.3 Signals to pads
Introduction
1.1About the ARM PrimeCell Audio CODEC Interface (PL040)
The ARM PrimeCell Audio CODEC Interface (ACI) is an Advanced Microcontroller Bus Architecture (AMBA) compliant System-on-a-Chip peripheral that is developed, tested and licensed by ARM.
The PrimeCell ACI is an AMBA slave block, and connects to the Advanced Peripheral Bus (APB). The PrimeCell ACI provides a digital serial interface to an off-chip 8-bit Pulse Code Modulation (PCM) CODEC. It provides all the necessary clocks and timing pulses to perform serialization or deserialization of the data stream to or from the CODEC device.
The features of the PrimeCell ACI are covered under the following headings:
•Features of the PrimeCell ACI
•An example CODEC interface.
1.1.1Features of the PrimeCell ACI
The PrimeCell ACI has the following features:
•compliance to the AMBA Specification (Rev 2.0) onwards for easy integration into System-on-a-Chip (SoC) implementation
•transmit and receive 16-byte FIFOs to reduce CPU interrupts
•programmable frequency divider allows division of the input clock ( ACICLK) by 2 to 1024 to generate an output bit clock (ACIBITCLK)
•synchronous communication interface to off-chip CODEC device
•transmit FIFO and receive FIFO level interrupts independently maskable.
•8-bit serial data interface
•single combined interrupt output also provided.
The frame synchronization pulse (ACIFSYNC) frequency is fixed at 1/8th of the output bit clock (ACIBITCLK) frequency.
Additional test registers and modes are implemented for functional verification and manufacturing test.
Figure 1-1 on page 1-3 shows a block diagram of the PrimeCell ACI.
1-2 |
© Copyright ARM Limited 1999. All rights reserved. |
ARM DDI 0146C |
Introduction
ACICLK
BnRES |
|
PCLK |
|
PSEL |
AMBA |
|
|
PENABLE |
APB |
|
|
PWRITE |
interface |
|
and |
PADDR[7:2] |
register block |
|
|
PWDATA[7:0] |
|
PRDATA[7:0] |
|
ACIRXINTR |
|
ACIINTR |
|
ACITXINTR |
|
nACIRST |
|
SCANMODE |
|
|
Frequency |
ACIBITCLK |
|
|
divider |
|
|
Receive |
Receive |
ACIDATAIN |
|
shift |
|||
FIFO |
|
||
register |
|
||
|
|
||
Interrupts |
Bit |
ACIFSYNC |
|
and FIFO |
|||
counter |
|
||
level status |
|
||
|
|
||
Transmit |
Transmit |
ACIDATAOUT |
|
shift |
|||
FIFO |
|
||
register |
|
||
|
|
Figure 1-1 PrimeCell ACI block diagram
ARM DDI 0146C |
© Copyright ARM Limited 1999. All rights reserved. |
1-3 |
Introduction
1.1.2An example CODEC interface
The PrimeCell ACI could be used to implement a CODEC interface to an external 8-bit single channel CODEC IC, such as the OKI MSM7702-01/02/03. This low-power, single rail device for voice signals from 300 to 3400Hz uses ITU-T A/μ-law companding. This requires a frame synchronization frequency of 8kHz +/- 50ppm (to guarantee AC specifications) and the data rate will be 64kHz, which is equal to the output bit clock, ACIBITCLK.
1-4 |
© Copyright ARM Limited 1999. All rights reserved. |
ARM DDI 0146C |