Reply by Ulf Samuelsson April 13, 20062006-04-13
"jaac" <jaime.aranguren@gmail.com> skrev i meddelandet 
news:1144357700.726570.299560@i39g2000cwa.googlegroups.com...
> Hi, > > I want to know if it is possible to use at the same time the USB and > UART peripheral on the AT91SAM7S256-128-64-321, with zero error on the > UART part. > > The clocking scheme is what concerns me. As far as I understand you > have the main clock MCK from an external crystal (or clock signal). Is > MCK derived directly, I mean, does MCK have the same frequency as the > external crystal? The UART peripheral takes its input from either MCK > or MCK/DIV. USB needs a couple of clocks: clock from the PLL at 48MHz > and MCK. > > So, what are the recommendded values of external clock and external PLL > filter if one needs: > > 1. Core running at 60 MHz > 2. UART running at 115200 bps / 57600 bps / 38400 bps / 19200 bps / > 9600 bps (possibility of using any of them) > 3. USB connectivity > > Or are USART and USB connectivity mutyally exclusive??? >
You only have a single PLL so you can run USB only if the core is running 48 MHz. This is an excellent starting point for UARTs since the PC UART BAUD rate generator is using a 24 MHz crystal presaled by 13. The SAM7S has resolution enhancement - Have to read the datasheet carefully to discover that... so you should be able to run 1,842 Mbps if needed.
> Regards, >
-- Best Regards, Ulf Samuelsson This is intended to be my personal opinion which may, or may bot be shared by my employer Atmel Nordic AB
Reply by MK April 7, 20062006-04-07
"jaac" <jaime.aranguren@gmail.com> wrote in message
news:1144357700.726570.299560@i39g2000cwa.googlegroups.com...
> Hi, > > I want to know if it is possible to use at the same time the USB and > UART peripheral on the AT91SAM7S256-128-64-321, with zero error on the > UART part. > > The clocking scheme is what concerns me. As far as I understand you > have the main clock MCK from an external crystal (or clock signal). Is > MCK derived directly, I mean, does MCK have the same frequency as the > external crystal? The UART peripheral takes its input from either MCK > or MCK/DIV. USB needs a couple of clocks: clock from the PLL at 48MHz > and MCK. > > So, what are the recommendded values of external clock and external PLL > filter if one needs: > > 1. Core running at 60 MHz > 2. UART running at 115200 bps / 57600 bps / 38400 bps / 19200 bps / > 9600 bps (possibility of using any of them) > 3. USB connectivity > > Or are USART and USB connectivity mutyally exclusive??? > > Regards, > > JaaC >
My reading of the data sheet tells me that if you want to use USB the maximum MCK you can use is 48MHz. This is because you must use PLL clock at 48, 96 or 192 MHz for USB but the MCK prescale only offers divide by 2, 4, 8 etc. There is no problem with getting close to your UART frequencies with 48MHz MCK. Michael Kellett www.mkesc.co.uk
Reply by jaac April 6, 20062006-04-06
Hi,

I want to know if it is possible to use at the same time the USB and
UART peripheral on the AT91SAM7S256-128-64-321, with zero error on the
UART part.

The clocking scheme is what concerns me. As far as I understand you
have the main clock MCK from an external crystal (or clock signal). Is
MCK derived directly, I mean, does MCK have the same frequency as the
external crystal? The UART peripheral takes its input from either MCK
or MCK/DIV. USB needs a couple of clocks: clock from the PLL at 48MHz
and MCK.

So, what are the recommendded values of external clock and external PLL
filter if one needs:

1. Core running at 60 MHz
2. UART running at 115200 bps / 57600 bps / 38400 bps / 19200 bps /
9600 bps (possibility of using any of them)
3. USB connectivity

Or are USART and USB connectivity mutyally exclusive???

Regards,

JaaC