SAM9263 Atmel Corporation, SAM9263 Datasheet - Page 622

no-image

SAM9263

Manufacturer Part Number
SAM9263
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of SAM9263

Flash (kbytes)
0 Kbytes
Pin Count
324
Max. Operating Frequency
240 MHz
Cpu
ARM926
Hardware Qtouch Acquisition
No
Max I/o Pins
160
Ext Interrupts
160
Usb Transceiver
3
Usb Speed
Full Speed
Usb Interface
Host, Device
Spi
2
Twi (i2c)
1
Uart
4
Can
1
Ssc
2
Ethernet
1
Sd / Emmc
2
Graphic Lcd
Yes
Video Decoder
No
Camera Interface
Yes
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
96
Self Program Memory
NO
External Bus Interface
2
Dram Memory
sdram
Nand Interface
Yes
Picopower
No
Temp. Range (deg C)
-40 to 85
I/o Supply Class
1.8/3.3
Fpu
No
Mpu / Mmu
No / Yes
Timers
3
Output Compare Channels
3
Input Capture Channels
3
Pwm Channels
4
32khz Rtc
Yes
Calibrated Rc Oscillator
No
Figure 36-6. Audio Transfer (PCM L Front, PCM R Front) on Channel x
36.6.2.5
36.6.2.6
622
Read access to
(Codec output)
AC97C_RHRx
(AC97C_SR)
RXRDYCx
AC97RX
AC97FS
AT91SAM9263
Slot #
AC97 Input Frame
Configuring and Using Interrupts
TAG
0
The application can also wait for an interrupt notice in order to read data from AC97C_CxRHR.
The interrupt remains active until RXRDY is cleared by reading AC97C_CxSR.
The RXRDY flag in AC97C_CxSR is set automatically when data is received in the Channel x
shift register. Data is then shifted to AC97C_CxRHR.
If the previously received data has not been read by the application, the new data overwrites the
data already waiting in AC97C_CxRHR, therefore the OVRUN flag in AC97C_CxSR is raised.
The application can either poll the OVRUN flag in AC97C_CxSR or wait for an interrupt notice.
The interrupt remains active until the OVRUN flag in AC97C_CxSR is set.
The AC97 Controller can also be used in sound recording devices in association with an AC97
Codec. The AC97 Controller may also be exposed to heavy PCM transfers. The application can
use the PDC connected to channel A in order to reduce processor overhead and increase per-
formance especially under an operating system.
The PDC receive counter values must be equal to the number of PCM samples to be received,
each sample goes in one slot.
The AC97 Controller receives a thirteen slot frame on the AC-Link sent by the AC97 Codec. The
first slot (tag slot or slot 0) flags the validity of the entire frame and the validity of each slot;
whether a slot carries valid data or not. Slots 1 and 2 are used if the application requires status
informations from AC97 Codec. Slots [3:12] are used according to AC97 Controller Output
Channel Assignment Register (AC97C_ICA) content. The AC97 Controller will not receive any
data from any slot if AC97C_ICA is not assigned to a channel in input.
Instead of polling flags in AC97 Controller Global Status Register (AC97C_SR) and in AC97
Controller Channel x Status Register (AC97C_CxSR), the application can wait for an interrupt
notice. The following steps show how to configure and use interrupts correctly:
The interrupt handler must read both AC97 Controller Global Status Register (AC97C_SR) and
AC97 Controller Interrupt Mask Register (AC97C_IMR) and AND them to get the real interrupt
source. Furthermore, to get which event was activated, the interrupt handler has to read AC97
Controller Channel x Status Register (AC97C_CxSR), x being the channel whose event triggers
the interrupt.
STATUS
• Set the interruptible flag in AC97 Controller Channel x Mode Register (AC97C_CxMR).
• Set the interruptible event and channel event in AC97 Controller Interrupt Enable Register
ADDR
(AC97C_IER).
1
STATUS
DATA
2
LEFT
3
PCM
RIGHT
4
PCM
LINE 1
DAC
5
6
PCM
MIC
RSVED
7
RSVED
8
RSVED
9
LINE 2
ADC
10
HSET
11
ADC
6249I–ATARM–3-Oct-11
STATUS
12
IO

Related parts for SAM9263