Searching \ for '[PIC:] SPI and USART' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/ios.htm?key=spi
Search entire site for: 'SPI and USART'.

Exact match. Not showing close matches.
PICList Thread
'[PIC:] SPI and USART'
2006\08\08@161321 by John Chung

picon face
I have spent a terrible amount of time on Atmel 169P
....... to find out that SPI and USART cannot be use
simultanously. Example. Send a byte on the USART line
and a few instructions away use SPI. Bad idea.

So my question is this. Can SPI and USART co-exist in
mid range PIC peacefully? For example using SPI and
USART as a protocol translator?

Thanks,
John

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

2006\08\08@163703 by David VanHorn

picon face
On 8/8/06, John Chung <spam_OUTkravnusTakeThisOuTspamyahoo.com> wrote:
>
> I have spent a terrible amount of time on Atmel 169P
> ....... to find out that SPI and USART cannot be use
> simultanously. Example. Send a byte on the USART line
> and a few instructions away use SPI. Bad idea.


Oh?   Why would that be?

I have multiple systems using SPI and USART, in the m128 platform, but 169
should not be different

2006\08\08@165358 by Herbert Graf

flavicon
face
On Tue, 2006-08-08 at 13:13 -0700, John Chung wrote:
> I have spent a terrible amount of time on Atmel 169P
> ....... to find out that SPI and USART cannot be use
> simultanously. Example. Send a byte on the USART line
> and a few instructions away use SPI. Bad idea.
>
> So my question is this. Can SPI and USART co-exist in
> mid range PIC peacefully? For example using SPI and
> USART as a protocol translator?

Yes. I do that on my serial-ethernet bridge project:

http://repatch.dyndns.org:8383/pic_stuff/housemon/ser_eth_bridge/index.html

SPI is used to connect to the ENC28J60 chip, the USART is used to
connect to an RS232 port.

TTYL

2006\08\08@175734 by Harold Hallikainen

face picon face

> I have spent a terrible amount of time on Atmel 169P
> ........ to find out that SPI and USART cannot be use
> simultanously. Example. Send a byte on the USART line
> and a few instructions away use SPI. Bad idea.
>
> So my question is this. Can SPI and USART co-exist in
> mid range PIC peacefully? For example using SPI and
> USART as a protocol translator?
>
> Thanks,
> John


Oh, that's really strange!!! Yes, the SPI and UART on a PIC can be used at
the same time. No problem!

Harold

--
FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!

2006\08\08@182422 by Michael Dipperstein

face
flavicon
face
I don't know about the ATmega169P, but the ATmega48/88/168 have two
different methods of communicating by SPI.  They have a dedicated SPI
module and they also have a USART that can be used as an SPI master.  It
makes sense that the you can't use the USART for SPI and RS-232 at the
same time, but I do have a few applications that use both the SPI module
and the USART for SPI and RS232 at the same time.  Check the Mega169P
datasheet for a separate SPI module.

-Mike

{Original Message removed}

2006\08\08@224912 by John Chung

picon face
I have recheck everything again. I believe I have nail
the problem to the stake. Here goes.

I am using AVR Butterfly. SPI and USART works
concurrently. My mistake here. NOW why did I make this
mistake. It seems that the darn Butterfly needs power
from the lithium holder. I was developing by removing
the batt. coin and had NO problems with USART by
powering it from an external battery. No limiting
current resistor here. The program is able to obtain
the status query of the external dataflash. But when
it comes to page erase and page moving from / to the
dataflash USART suffers. All the USART character gets
junk.

Yes USART and SPI are on separate modules as said on
the datasheet.

Thanks to all that answered my question.
John

--- David VanHorn <.....dvanhornKILLspamspam@spam@microbrix.com> wrote:

{Quote hidden}

> --

2006\08\08@224934 by John Chung

picon face
Thanks for the assurance.
John

--- Herbert Graf <.....mailinglist3KILLspamspam.....farcite.net> wrote:

{Quote hidden}

repatch.dyndns.org:8383/pic_stuff/housemon/ser_eth_bridge/index.html
>
> SPI is used to connect to the ENC28J60 chip, the
> USART is used to
> connect to an RS232 port.
>
> TTYL
>
> --

More... (looser matching)
- Last day of these posts
- In 2006 , 2007 only
- Today
- New search...