Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: alexparser on April 14, 2015, 11:28:42 PM

Title: External clock
Post by: alexparser on April 14, 2015, 11:28:42 PM
Hi all!
I can use external clock for A20 PCM audio as on Raspberry Pi (https://hifiduino.wordpress.com/2014/11/13/raspberry-pi-b-digital-audio/ (https://hifiduino.wordpress.com/2014/11/13/raspberry-pi-b-digital-audio/))?

Thanks!
Title: Re: External clock
Post by: Gerrit on April 15, 2015, 12:02:15 AM
I think you want to solve a non existing problem, the A20 does not have the same chip or clock.

https://github.com/OLIMEX/OLINUXINO/blob/master/HARDWARE/A20-PDFs/A20%20Datasheet%20v1.0%2020130227.pdf
Title: Re: External clock
Post by: jmyreen on April 15, 2015, 09:09:16 AM
Quote from: alexparser on April 14, 2015, 11:28:42 PM
I can use external clock for A20 PCM audio as on Raspberry Pi (https://hifiduino.wordpress.com/2014/11/13/raspberry-pi-b-digital-audio/ (https://hifiduino.wordpress.com/2014/11/13/raspberry-pi-b-digital-audio/))?

From what I could gather from the A20 User Manual, the clock is always generated internally. But you can choose from a wide range of clock divisors.
Title: Re: External clock
Post by: alexparser on April 16, 2015, 01:38:03 AM
Thanks for your answer's,
but your think what the A20 don't have  a external clock?
Title: Re: External clock
Post by: jmyreen on April 16, 2015, 09:12:34 AM
Quote from: alexparser on April 16, 2015, 01:38:03 AM
Thanks for your answer's,
but your think what the A20 don't have  a external clock?

If you configure the A20 Digital Audio Interface in slave mode, then the I2S_SCLK/PCM_CLK and I2S_LRC/PCM_SYNC lines become inputs and should be connected to some other I2S or PCM interface that acts as a master. When the A20 interface is acting as a master, the master clock signal comes from an on-chip PLL that generates a fixed frequency (24.567 MHz or 22.528 MHz.)

It's not clear what you are trying to achieve and what your problem is. The frequency problems mentioned in the Raspberry Pi article you linked to do not apply to the A20.