Searching \ for '[pic]: SPI Slave mode' 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 Slave mode'.

Exact match. Not showing close matches.
PICList Thread
'[pic]: SPI Slave mode'
2001\01\24@022445 by Peter Weichel

picon face
--openmail-part-0114895c-00000002
Content-Type: text/plain; charset=ISO-8859-1
Content-Disposition: inline
       ;Creation-Date="Wed, 24 Jan 2001 08:25:08 +0100"
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by mx.tellabs.fi id JAA03260

Hi all,

I=B4v written here before but got no reply so i will try again :-)

a) Does anyone own the book "Serial PIC=B4n" ?
Is it worth investing in, i.e. can it give usefull information about SPI

b) Does anyone have code snippets to share using BSSP or MSSP modules to
implement
SPI slave mode in a PIC ?
I find the documentation somewhat poor from Microchip. There are plenty
examples of IIC and SPI master mode
but when it comes to SLAVE mode then the app. notes lack.

best regards
Peter Weichel
Tellabs Denmark



--openmail-part-0114895c-00000002
Content-Type: application/rtf
Content-Disposition: attachment; filename="BDY.RTF"
       ;Creation-Date="Wed, 24 Jan 2001 08:25:08 +0100"
Content-Transfer-Encoding: base64

e1xydGYxXGFuc2lcZGVmZjB7XGZvbnR0Ymx7XGYwXGZzd2lzc1xmY2hhcnNldDAgQXJpYWw7
fX0NClx2aWV3a2luZDRcdWMxXHBhcmRcbGFuZzEwMzBcZjBcZnMyMCBIaSBhbGwsXHBhcg0K
XHBhcg0KSVwnYjR2IHdyaXR0ZW4gaGVyZSBiZWZvcmUgYnV0IGdvdCBubyByZXBseSBzbyBp
IHdpbGwgdHJ5IGFnYWluIDotKVxwYXINClxwYXINCmEpIERvZXMgYW55b25lIG93biB0aGUg
Ym9vayAiU2VyaWFsIFBJQ1wnYjRuIiA/XHBhcg0KSXMgaXQgd29ydGggaW52ZXN0aW5nIGlu
LCBpLmUuIGNhbiBpdCBnaXZlIHVzZWZ1bGwgaW5mb3JtYXRpb24gYWJvdXQgU1BJXHBhcg0K
XHBhcg0KYikgRG9lcyBhbnlvbmUgaGF2ZSBjb2RlIHNuaXBwZXRzIHRvIHNoYXJlIHVzaW5n
IEJTU1Agb3IgTVNTUCBtb2R1bGVzIHRvIGltcGxlbWVudFxwYXINClNQSSBzbGF2ZSBtb2Rl
IGluIGEgUElDID9ccGFyDQpJIGZpbmQgdGhlIGRvY3VtZW50YXRpb24gc29tZXdoYXQgcG9v
ciBmcm9tIE1pY3JvY2hpcC4gVGhlcmUgYXJlIHBsZW50eSBleGFtcGxlcyBvZiBJSUMgYW5k
IFNQSSBtYXN0ZXIgbW9kZVxwYXINCmJ1dCB3aGVuIGl0IGNvbWVzIHRvIFNMQVZFIG1vZGUg
dGhlbiB0aGUgYXBwLiBub3RlcyBsYWNrLlxwYXINClxwYXINCmJlc3QgcmVnYXJkc1xwYXIN
ClBldGVyIFdlaWNoZWxccGFyDQpUZWxsYWJzIERlbm1hcmtccGFyDQpccGFyDQpccGFyDQp9
DQoA

--openmail-part-0114895c-00000002--

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\01\24@042422 by Chris Carr

flavicon
face
Peter Weichel Wrote
>Hi all,

>I4v written here before but got no reply so i will try again :-)

>a) Does anyone own the book "Serial PIC4n" ?

Yes since last Friday

>Is it worth investing in, i.e. can it give usefull information about SPI

I got it for that very reason. If time is money then yes it is worth
investing in. It clearly explains the differences in the 4 modes of
operation and provides code to implement them

>b) Does anyone have code snippets to share using BSSP or MSSP >modules to
implement SPI slave mode in a PIC ?

Sorry I'm working on the Master and some quick calculations on a scrap of
paper showed that a PIC was not man enough for the job so I have had to
resort to a different processor :-(

>I find the documentation somewhat poor from Microchip. There are >plenty
examples of IIC and SPI master mode
>but when it comes to SLAVE mode then the app. notes lack.

There is code for Slave Mode in the book but I have not taken a look at it
so I cannot comment on its usefulness. That is for a future date, when I
have the time or need.

Regards

Chris

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\01\24@094420 by James Paul

flavicon
face
Peter,

I own the book "Serial PIC'n" and in my opinion, YES, it's worth
having.  There are many routines in there for just about any of the
PIC's, and any protocol you desire.  There are routines for I2C, SPI,
other three and four wire derivitives, RS232, TTL, etc.  This one
book should just about take care of all of your serial comms needs
now and in the future.  And if it doesn't, it imparts enough know
how that you can write any routines that aren't included in here.
My recommendation...Buy the book.  You won't regret it.

As an aside, you may want to consider the other books written and
sold by David Benson.  ie "Easy PIC'n", Pic'n Up The Pace" and
one more that I can't recall right off hand.  These books have been
very interesting for me to read and are now references that I consult
ocassionally for tidbits and routine ideas.   I do most of my soft-
ware writing in 'C' now, but assembly still comes in handy in time
critical apps.  Also, for some short programs that are not
sophiscated enough to use the higher level language.

Anyway, hope this answers your question.
                                         Regards,

                                           Jim




On Tue, 23 January 2001, Peter Weichel wrote:

{Quote hidden}

spam_OUTjimTakeThisOuTspamjpes.com

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\01\24@142621 by Les

flavicon
picon face
Hello Peter

In my opinion, (and I must emphasise, that it is only my opinion). The
serial PIC,n, in fact all three PIC,n books, are not worth the paper their
printed on. They are basically a book full of rather obscure code listings,
with a small amount of text explaining them, and the circuit diagrams are
designed in some form of pseudo symbols. They are hard to follow, even for a
seasoned veteran of PIC's. In fact, you sometimes already need to know what
to do, before you can understand some of the code.

Myke predko's new book is a much better deal!

I wasted nearly #100 in buying all three books a once , mail order. If I'd
bought one first, I could have saved a lot of money.

This will probably cause some controversy, as everyone has a different point
of view. And quite rightly so!

Regards
Les

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\01\24@153729 by Dan Michaels

flavicon
face
Les wrote:
>Hello Peter
>
>In my opinion, (and I must emphasise, that it is only my opinion). The
>serial PIC,n, in fact all three PIC,n books, are not worth the paper their
>printed on. They are basically a book full of rather obscure code listings,
>with a small amount of text explaining them, and the circuit diagrams are
>designed in some form of pseudo symbols. They are hard to follow, even for a
>seasoned veteran of PIC's. In fact, you sometimes already need to know what
>to do, before you can understand some of the code.
>
>Myke predko's new book is a much better deal!


Anyone have an opinion on the following books?
by Jan Axelson [?]

- Serial Port Complete
- Parallel Port Complete

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\01\24@193058 by Dwayne Reid

flavicon
face
At 03:37 PM 1/24/01 -0500, Dan Michaels wrote:

>Anyone have an opinion on the following books?
>by Jan Axelson [?]
>
>- Serial Port Complete
>- Parallel Port Complete

Both are excellent!  Add to the list "USB Complete" - also by Jan.  Peter
Anderson has written a couple of parallel port books for his students and
are well worth his small asking fee.

I have bought most of the books mentioned here on the list, including the
first two books from Benson.  They really do make it easier for new
engineers and techs to come up to speed on this stuff - in other words,
they are a library resource.  And that is where they live - in our shop
library.

dwayne



Dwayne Reid   <.....dwaynerKILLspamspam@spam@planet.eon.net>
Trinity Electronics Systems Ltd    Edmonton, AB, CANADA
(780) 489-3199 voice          (780) 487-6397 fax

Celebrating 17 years of Engineering Innovation (1984 - 2001)

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Do NOT send unsolicited commercial email to this email address.
This message neither grants consent to receive unsolicited
commercial email nor is intended to solicit commercial email.

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\01\25@012401 by Peter Anderson

flavicon
face
I share Jim's enthusiasm.  I don't sell anything I don't think is a
good buy and I do sell all of Square One's books at less 20 percent.

Peter H Anderson, pha(at)phanderson.com, http://www.phanderson.com

Sign up for Free-for-Life E-mail at http://www.Africana.com

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email listservspamKILLspammitvma.mit.edu with SET PICList DIGEST in the body


2001\01\25@085255 by Olin Lathrop

face picon face
> >- Serial Port Complete
> >- Parallel Port Complete
>
> Both are excellent!  Add to the list "USB Complete" - also by Jan.

I can kindof see the point to books like the two above since there is no
standard or definitive reference for serial ports or paralell ports.  They
evolved over many years with some details you have to know to know about
them.

USB, on the other hand, is a well specified standard.  Anyone can download a
copy for free and print it out or whatever (I keep mine on the top shelf of
my book case).  At best these kinds of books merely read the standard to you
without garbling anything.  The standard is a bit dry, but all the
information is in there.  If you can't understand the standard, then you
shouldn't trying to mess with USB.


*****************************************************************
Olin Lathrop, embedded systems consultant in Devens Massachusetts
(978) 772-3129, .....olinKILLspamspam.....embedinc.com, http://www.embedinc.com

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email EraseMElistservspam_OUTspamTakeThisOuTmitvma.mit.edu with SET PICList DIGEST in the body


2001\01\27@113159 by Snail Instruments

flavicon
face
Hi Peter,

I have used SPI on PIC16C73 in slave mode to catch data sent to MAX7213 LED
display driver. As far as I remember, it worked without much troubles.
Extracted code below. The underscored bit names are #defines including the
proper register, like #define _C STATUS,0

Josef

CBLOCK __GPRAM
       TEMPW, TEMPS, TEMPF
       FLAGS ...
       SSPADR...
       ....
ENDC
CBLOCK 0x60
       SSPDAT:SSPBLEN
ENDC

#define _FSSPDT FLAGS,6

; ================================================================
; INTERRUPT--INTERRUPT--INTERRUPT--INTERRUPT--INTERRUPT--INTERRUPT
; ================================================================
       ORG     4
       _INT_SAVE_REG TEMPW, TEMPS
SSPINT: BTFSS   _SSPIF
       GOTO    INTER
       BCF     _SSPIF
       BTFSC   _FSSPDT         ;flag indicates if address or data
       GOTO    SSPI0           ;was received, it is MAX7213 specific
       MOVF    SSPBUF,W
       ADDLW   SSPDAT
       MOVWF   SSPADR
       BSF     _FSSPDT
       GOTO    IEND
SSPI0:  MOVFF   FSR,TEMPF
       MOVFF   SSPADR,FSR
       MOVFF   SSPBUF,INDF
       MOVFF   TEMPF,FSR
       GOTO    IEND
INTER:  BTFSS   _INTF           ;RB0 connected to CS of Maxim
       GOTO    IEND
       BCF     _INTF
       BCF     _FSSPDT
       BSF     _FDSUPD
       ;GOTO   IEND
IEND:   _INT_RESTORE_REG TEMPW,TEMPS
       RETFIE

SPI inicialization:

LDB    SSPCON,B'00110101'      ;ENABLE SPI SLAVE, RECEIVE ON RISING EDGE
LDB    RCSTA,1<<SPEN|1<<CREN   ;ENABLE RECEIVE, ENABLE SERIAL ASYNC. COMM.

Macros:
MOVFF S,D =  MOVF S,W; MOVWF D
LDB F,K   =  MOVLW K; MOVWF F

>b) Does anyone have code snippets to share using BSSP or MSSP modules to
>implement
>SPI slave mode in a PIC ?
>I find the documentation somewhat poor from Microchip. There are plenty
>examples of IIC and SPI master mode
>but when it comes to SLAVE mode then the app. notes lack.
>
=======================================================================
Electronical devices for chemical laboratory, custom electronics design
-----------------------------------------------------------------------
Snail Instruments                      Josef Hanzal, M. S.
Vojanova 615                           phone/fax: +420-311-624433
266 01 Beroun                          e-mail: snailspamspam_OUTiol.cz
Czech Republic                         URL: http://www.vitrum.cz/snail/
GPS: 49deg58'28" North, 14deg 4'35" East
=======================================================================

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads



'[pic]: SPI Slave mode'
2001\02\01@054228 by fernteix
flavicon
face
Hi,

The book has many pages , some diagrams and long lists, about SPI .
SPI SPICOMS.GRP; master to A/D SPITOD.TXT ; master to EEPROM; to display
driver;
Perhaps you already know, but you could find the programs in the editor
page:  http://www.sq-1.com

Best Regards

Fernando
Portugal

{Original Message removed}

2001\02\09@150521 by M. Adam Davis

flavicon
face
Peter Weichel wrote:
> a) Does anyone own the book "Serial PIC4n" ?
> Is it worth investing in, i.e. can it give usefull information about SPI

You can read my review of it here:

http://ubasics.com/adam/books/ser_picn.shtml

-Adam

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email @spam@listservKILLspamspammitvma.mit.edu with SET PICList DIGEST in the body


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