Searching \ for '[PIC]: mssp i2c problem' 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/i2cs.htm?key=i2c
Search entire site for: 'mssp i2c problem'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: mssp i2c problem'
2001\09\12@075203 by Vasile Surducan

flavicon
face
Accordingly to Mplab, I can't write the SSPSTAT register in I2C
initialisation sequence.
Bank switching is ok, all SSPCON2 and SSPADD are initialised OK.
What should I do ?

Vasile

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


2001\09\13@135057 by Barry Gershenfeld

picon face
The data sheet I looked at says you can only write to the
top two bits of SSPSTAT.

If it were me I might suspect MPLAB was interfering, and I'd
arrange to write a routine to let the chip itself test
this.   (Set the bit, test the bit, light an LED if it's
set, etc.)

Barry


At 01:47 PM 9/12/01 +0300, you wrote:
>Accordingly to Mplab, I can't write the SSPSTAT register in I2C
>initialisation sequence.
>Bank switching is ok, all SSPCON2 and SSPADD are initialised OK.
>What should I do ?
>
>Vasile

--
http://www.piclist.com hint: To leave the PICList
.....piclist-unsubscribe-requestKILLspamspam@spam@mitvma.mit.edu


2001\09\14@021911 by Vasile Surducan

flavicon
face
Barry, is exactly the thing I've done. But SMP bit appears it can't be
set.
I have Mplab 4.99.07.
Vasile

On Thu, 13 Sep 2001, Barry Gershenfeld wrote:

{Quote hidden}

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


2001\09\14@175024 by Barry Gershenfeld

picon face
I looked again, and noticed this:

 "SMP must be cleared when SPI is used in slave mode"

I wonder, if you were in slave mode, maybe it would keep
you from being able to set it?

I'm surprised someone on this list doesn't know this one.  Must
be spending too much time over on [OT]

I've actually got an 877 board somewhere.  I'd try it myself if
knew where the board was, had the time, was currently up on
coding in PIC.    Let me know how bad it gets...

Have you ruled out the "bad chip" thing?

Barry


At 07:35 AM 9/14/01 +0300, you wrote:
{Quote hidden}

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


2001\09\17@022942 by Vasile Surducan

flavicon
face
Thanks Barry, but you must know I always read data sheet, I'm in the
master mode and before asking something here I had spend several hours (
more than 8 ...) trying to understand.
And of course I read only PIC and EE tags. ( but living in a democrat
and european country I could tell my position into an OT subject even
probably it seems you don't like it )

Thanks, Vasile



On Fri, 14 Sep 2001, Barry Gershenfeld wrote:

{Quote hidden}

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


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