Sign in

username:

password:



Not a member?

Search Comp.Arch.Embedded



Search tips

embedded by Keywords

68HC11 | 68HC12 | 8051 | 8052 | ARM | ARM7 | Asic | AT91 | AT91RM9200 | Atmel | AVR | AVRStudio | Bootloader | CFP | CompactFlash | Cygnal | Cypress | Dataflash | DSP | eCos | EEPROM | Embedded Linux | Emulator | Endian | Ethernet | Firewire | FPGA | Freescale | GCC | GNUARM | GSM | H8 | HDLC | I2C | Infineon | Interrupts | Java | JTAG | LCD | LED | LPC2000 | MCU | Microchip | MMC | MPLAB | MSP430 | PC104 | PCB | PCI | PCMCIA | PowerPC | Rabbit | RS232 | RS485 | RTOS | SBC | SDRAM | Sensor | SPI | STK500 | UART | UML | USART | USB | Verilog | VHDL | VxWorks | Xilinx

Discussion Groups

Discussion Groups | Comp.Arch.Embedded | Simultaneous use of USARTs and SPI on ATmega64

There are 7 messages in this thread.

You are currently looking at messages 0 to 7.

Simultaneous use of USARTs and SPI on ATmega64 - Anon - 07:13 18-02-05



Dear All,

I guess a lot of you are using the AVR range of devices, so hope the answer 
to my question below will seem straightforward.

The hardware engineers on my team wish to use the ATmega64 in a design we're 
working on. I'm the software engineer. The design relies on having 2 UARTs 
and and an SPI bus available simultaneously. On paper, this processor seems 
to provide this. However, I'm concerned that some of these functions may be 
multiplexed, i.e. can only have 2 UARTs and no SPI, or 1 UART and SPI 
present.

The data sheets are a little vague on this. Can anyone shed some light on 
this?

Very many thanks in anticipation!

Kind regards,

Clive Wilson 



Re: Simultaneous use of USARTs and SPI on ATmega64 - Meindert Sprang - 07:55 18-02-05

"Anon" <a...@nowhere.invalid> wrote in message
news:9...@giganews.com...
> Dear All,
>
> I guess a lot of you are using the AVR range of devices, so hope the
answer
> to my question below will seem straightforward.
>
> The hardware engineers on my team wish to use the ATmega64 in a design
we're
> working on. I'm the software engineer. The design relies on having 2 UARTs
> and and an SPI bus available simultaneously. On paper, this processor
seems
> to provide this. However, I'm concerned that some of these functions may
be
> multiplexed, i.e. can only have 2 UARTs and no SPI, or 1 UART and SPI
> present.
>
> The data sheets are a little vague on this. Can anyone shed some light on
> this?

Well, a quick glance at the datasheet reveals that RXD0, TXD0, RXD1, TXD1,
MOSI, MISO and SCK all have their own pins. Not much of a problem then...
:-)

Meindert



Re: Simultaneous use of USARTs and SPI on ATmega64 - Anon - 08:55 18-02-05

"Meindert Sprang" <m...@NOcustomSPAMware.nl> wrote in message 
news:1...@corp.supernews.com...
> "Anon" <a...@nowhere.invalid> wrote in message
> news:9...@giganews.com...

<snip>

> Well, a quick glance at the datasheet reveals that RXD0, TXD0, RXD1, TXD1,
> MOSI, MISO and SCK all have their own pins. Not much of a problem then...
> :-)

OK, thanks. After having posted I took another, more careful look, and 
realised I was panicking unnecessarily.

Thanks anyway,

Clive Wilson 



Re: Simultaneous use of USARTs and SPI on ATmega64 - Jeroen - 11:39 18-02-05

"Anon" <a...@nowhere.invalid> schreef in bericht
news:W...@giganews.com...
>
> "Meindert Sprang" <m...@NOcustomSPAMware.nl> wrote in message
> news:1...@corp.supernews.com...
> > "Anon" <a...@nowhere.invalid> wrote in message
> > news:9...@giganews.com...
>
> <snip>
>
> > Well, a quick glance at the datasheet reveals that RXD0, TXD0, RXD1,
TXD1,
> > MOSI, MISO and SCK all have their own pins. Not much of a problem
then...
> > :-)
>
> OK, thanks. After having posted I took another, more careful look, and
> realised I was panicking unnecessarily.
>
> Thanks anyway,
>
> Clive Wilson
>

Better panic now then when everything has been designed and changing things
is far more costly ;)

Jeroen



Re: Simultaneous use of USARTs and SPI on ATmega64 - Mark Borgerson - 13:46 18-02-05

In article <42161a28$0$28985$e...@news.xs4all.nl>, n...@none.com 
says...
> 
> "Anon" <a...@nowhere.invalid> schreef in bericht
> news:W...@giganews.com...
> >
> > "Meindert Sprang" <m...@NOcustomSPAMware.nl> wrote in message
> > news:1...@corp.supernews.com...
> > > "Anon" <a...@nowhere.invalid> wrote in message
> > > news:9...@giganews.com...
> >
> > <snip>
> >
> > > Well, a quick glance at the datasheet reveals that RXD0, TXD0, RXD1,
> TXD1,
> > > MOSI, MISO and SCK all have their own pins. Not much of a problem
> then...
> > > :-)
> >
> > OK, thanks. After having posted I took another, more careful look, and
> > realised I was panicking unnecessarily.
> >
>
There are other issues to consider than whether SPI and USART have 
separate pins.   That is true on the MSP430, but internally, both
modes use some common registers.   That can make it difficult
to use both the SPI and USART in anything except polled mode operation.

If you are going to rely on interrupt-driven I/O for the USART, you
may not have the freedom to switch modes between SPI and USART without
risking the loss of incoming USART data.

Mark Borgerson


Re: Simultaneous use of USARTs and SPI on ATmega64 - Ulf Samuelsson - 16:54 18-02-05

> > Well, a quick glance at the datasheet reveals that RXD0, TXD0, RXD1,
TXD1,
> > MOSI, MISO and SCK all have their own pins. Not much of a problem
then...
> > :-)
>
> OK, thanks. After having posted I took another, more careful look, and
> realised I was panicking unnecessarily.
>

After everything else fails, read the instructions ;-)
I think this should work fine.

-- 
Best Regards,
Ulf Samuelsson
u...@a-t-m-e-l.com
This message is intended to be my own personal view and it
may or may not be shared by my employer Atmel Nordic AB




Re: Simultaneous use of USARTs and SPI on ATmega64 - Hans-Bernhard Broeker - 04:54 19-02-05

Ulf Samuelsson <u...@a-t-m-e-l.com> wrote:

> After everything else fails, read the instructions ;-)

Or, as an acquaintance of mine puts it: "RTFM?  You must be kidding.
Real engineers only refer to documentation if the keyboard-shaped
dents in their forehead become too obvious."

-- 
Hans-Bernhard Broeker (b...@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.