Searching \ for '[PIC] SPI and RS-232 on save PIC' 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 RS-232 on save PIC'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] SPI and RS-232 on save PIC'
2004\09\01@083248 by Gordon Williams

picon face
Hi All,

I would like to use both SPI and RS-232 on a 18 or 28 pin PIC.  Looking at
the data sheets of a number of PICs the pins for these peripherals appear to
overlap.

Can SPI and serial be used concurently?  I sure hope so, but can't figure
out how.

Regards,

Gordon Williams


_______________________________________________
http://www.piclist.com
View/change your membership options at
http://mailman.mit.edu/mailman/listinfo/piclist

2004\09\01@084702 by hael Rigby-Jones

picon face


>-----Original Message-----
>From: spam_OUTpiclist-bouncesTakeThisOuTspammit.edu [.....piclist-bouncesKILLspamspam@spam@mit.edu]
>On Behalf Of Gordon Williams
>Sent: 01 September 2004 13:38
>To: pic microcontroller discussion list
>Subject: [PIC] SPI and RS-232 on save PIC
>
>
>Hi All,
>
>I would like to use both SPI and RS-232 on a 18 or 28 pin PIC.
> Looking at the data sheets of a number of PICs the pins for
>these peripherals appear to overlap.
>
>Can SPI and serial be used concurently?  I sure hope so, but
>can't figure out how.

On a 28pin PIC they do not overlap, 14,15 & 16 are SPI pins, 17 & 18 are
UART.  I've not used any 18pin PIC that have had both peripherals so I can't
comment on them.

Regards

Mike

=======================================================================
This e-mail is intended for the person it is addressed to only. The
information contained in it may be confidential and/or protected by
law. If you are not the intended recipient of this message, you must
not make any use of this information, or copy or show it to any
person. Please contact us immediately to tell us that you have
received this e-mail, and return the original to us. Any use,
forwarding, printing or copying of this message is strictly prohibited.
No part of this message can be considered a request for goods or
services.
=======================================================================
_______________________________________________
http://www.piclist.com
View/change your membership options at
http://mailman.mit.edu/mailman/listinfo/piclist

2004\09\01@085842 by olin_piclist

face picon face
Gordon Williams wrote:
> I would like to use both SPI and RS-232 on a 18 or 28 pin PIC.
> Looking at the data sheets of a number of PICs the pins for these
> peripherals appear to overlap.
>
> Can SPI and serial be used concurently?  I sure hope so, but can't
> figure out how.

RS-232 in hardware is done using the USART module, and SPI using the MSSP
module.  You can do them both concurrently in hardware if your PIC has both
these modules.

However, a SPI master is trivial to code in software, so you can easily use
a PIC with just a USART and no MSSP.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com
_______________________________________________
http://www.piclist.com
View/change your membership options at
http://mailman.mit.edu/mailman/listinfo/piclist

2004\09\01@090639 by D. Jay Newman

flavicon
face
> I would like to use both SPI and RS-232 on a 18 or 28 pin PIC.  Looking at
> the data sheets of a number of PICs the pins for these peripherals appear to
> overlap.

Which PICs are you talking about?

Every PIC I've dealt with (being human I can only experience a small
part of their product line) has the serial pins totally separate from
the SPI/I2C pins).

> Can SPI and serial be used concurently?  I sure hope so, but can't figure
> out how.

I've done it many times.
--
D. Jay Newman           ! DCX - it takes off and lands base down,
jayspamKILLspamsprucegrove.com     !       as God and Robert Heinlein intended.
http://enerd.ws/robots/ !
_______________________________________________
http://www.piclist.com
View/change your membership options at
http://mailman.mit.edu/mailman/listinfo/piclist

2004\09\01@092929 by Gordon Williams

picon face
Thanks to all.  That makes sense.  I don't know what I was looking at
before.

Regards,

Gordon Williams

----- Original Message -----
From: "Michael Rigby-Jones" <.....Michael.Rigby-JonesKILLspamspam.....bookham.com>
To: "'Microcontroller discussion list - Public.'" <EraseMEpiclistspam_OUTspamTakeThisOuTmit.edu>
Sent: Wednesday, September 01, 2004 8:49 AM
Subject: RE: [PIC] SPI and RS-232 on save PIC


>
>
> >{Original Message removed}

2004\09\01@100719 by Alan B. Pearce

face picon face
>I would like to use both SPI and RS-232 on a 18
>or 28 pin PIC.  Looking at the data sheets of a
>number of PICs the pins for these peripherals
>appear to overlap.
>
>Can SPI and serial be used concurently?  I sure
>hope so, but can't figure out how.

Yes. Not sure about the 18 pin devices without checking the datasheet, but
certainly on the 28 pin.

Note that the internal hardware uses separate modules, SSP or MSSP for the
I2C or SPI, and USART for the serial comms.

_______________________________________________
http://www.piclist.com
View/change your membership options at
http://mailman.mit.edu/mailman/listinfo/piclist

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