Searching \ for 'I2C Master with 16C62A' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/i2cs.htm?key=i2c
Search entire site for: 'I2C Master with 16C62A'.

Truncated match.
PICList Thread
'I2C Master with 16C62A'
1998\01\20@015619 by Steen Jensen

flavicon
face
Hello All

I want to use the 16C62A as master i my I2C system. The 16C62A has a build
in SSP module for this operation, but the master mode is not described in
details in the application notes. Do any of you have some experience in
using the SSP module as master or maybe some example code for me to look
at. That would be a great help. Right now I'm stucked !

With kind regards
GDK-SSJ - Steen Schelle Jensen
Dept.: 1545
Internet e-mail: spam_OUTssjensenTakeThisOuTspamgrundfos.com

1998\01\20@033339 by Thomas Magin

flavicon
face
At 07:44 20.01.1998 +0100, you wrote:
>Hello All
>
>I want to use the 16C62A as master i my I2C system. The 16C62A has a build
>in SSP module for this operation, but the master mode is not described in
>details in the application notes. Do any of you have some experience in
>using the SSP module as master or maybe some example code for me to look

You can't use the SSP in Mastermode ! You have to implement it in software
instead. For example code have a look at the microchip webpage.

Regards

Thomas
=8-)

**********************************************************
* Thomas Magin                  FON:   ++49-761-4543-489 *
* marquette-Hellige GmbH        FAX:                -507 *
* Emergency Systems             email: .....maginKILLspamspam@spam@hellige.de  *
* Munzinger Str. 3                                       *
* D-79111 Freiburg / Germany                             *
**********************************************************

1998\01\20@035037 by Steen Jensen

flavicon
face
Then there is one thing I do not understand. If you take a look in the
datasheets for the 16C62A it says that the SSP can be configured as I2C
firmware controlled Master mode (SSPCON Register). Does firmware mean that
you have to implement it in software?? Do anybody have the code or some
documentation for a I2C Master?? There is no documentation for the code at
Microchip's webpage, so it's not easy to figure out the way they do it!!

Regards
Steen Jensen




From: maginspamKILLspamHELLIGE.DE on 20-01-98 09:33

Please respond to .....PICLISTKILLspamspam.....MITVMA.MIT.EDU

To:   EraseMEPICLISTspam_OUTspamTakeThisOuTMITVMA.MIT.EDU
cc:    (bcc: Steen Schelle Jensen/Sales/DK_GDK/Grundfos)
Subject:  Re: I2C Master with 16C62A




At 07:44 20.01.1998 +0100, you wrote:
>Hello All
>
>I want to use the 16C62A as master i my I2C system. The 16C62A has a build
>in SSP module for this operation, but the master mode is not described in
>details in the application notes. Do any of you have some experience in
>using the SSP module as master or maybe some example code for me to look
You can't use the SSP in Mastermode ! You have to implement it in software
instead. For example code have a look at the microchip webpage.
Regards
Thomas
=8-)
**********************************************************
* Thomas Magin                  FON:   ++49-761-4543-489 *
* marquette-Hellige GmbH        FAX:                -507 *
* Emergency Systems             email: maginspamspam_OUThellige.de  *
* Munzinger Str. 3                                       *
* D-79111 Freiburg / Germany                             *
**********************************************************

1998\01\20@045209 by Thomas Magin

flavicon
face
At 09:49 20.01.1998 +0100, you wrote:

Hi,

>Then there is one thing I do not understand. If you take a look in the
>datasheets for the 16C62A it says that the SSP can be configured as I2C
>firmware controlled Master mode (SSPCON Register). Does firmware mean that
>you have to implement it in software?? Do anybody have the code or some

unfortunately yes.

>documentation for a I2C Master?? There is no documentation for the code at
>Microchip's webpage, so it's not easy to figure out the way they do it!!

Look for AN554 "Softwareimplementation of I2C Bus Master". I've got it from
the "Embedded Control Handbook" but I it's available in WWW also. Have a
look at: http://www.microchip.com/10/Appnote/PIC16CXX.htm. There is a pdf
00554c.pdf and the sources in 00554.zip.

Regards

Thomas
=8-)

**********************************************************
* Thomas Magin                  FON:   ++49-761-4543-489 *
* marquette-Hellige GmbH        FAX:                -507 *
* Emergency Systems             email: @spam@maginKILLspamspamhellige.de  *
* Munzinger Str. 3                                       *
* D-79111 Freiburg / Germany                             *
**********************************************************

1998\01\20@050454 by Mike Keers

flavicon
face
-----Original Message-----
From: Steen Jensen <KILLspamssjensenKILLspamspamGRUNDFOS.COM>
To: RemoveMEPICLISTTakeThisOuTspamMITVMA.MIT.EDU <spamBeGonePICLISTspamBeGonespamMITVMA.MIT.EDU>
Date: Tuesday, January 20, 1998 12:51 AM
Subject: Re: I2C Master with 16C62A


{Quote hidden}

Hi
   While I have not tried i2c yet here is the path to the application
notes the one you want is

AN554
Description: Software Implementation of IIC Bus Master
Date: 8/26/97
Documentation: 00554c.pdf (576055 bytes)
Source Code: 00554.zip(72667 bytes)
or
AN578
Description: Use of the SSP Module in the IIC Multi-Master   Environment
Date: 8/26/97
Documentation: 00578b.pdf (227004 bytes)
Source Code: 00578(23951 bytes)




it is located at http://www.microchip.com/10/Appnote/AppNotes.htm

I hope this helps

Mike Keers

1998\01\23@074153 by Keith Howell

flavicon
face
Beware!

AN554 and AN578 are only approximations to I2C.

At the bit level, the I2C spec says that an I2C slave
holds SCL low to 'wait-state' the master.

Looking closely at AN578, you see that the code
interprets this as a bus error.

This is a serious and fundamental bug IMHO.

I'm horrified at the number of people looking for
example I2C code, who then get pointed to these notes.

They really are appalling.

I'm writing PIC code which uses the I2C bus,
and I think I would have been better off writing
I2C code from scratch from the I2C bus spec
than starting off with these notes.

1998\01\23@075821 by Steen Jensen

flavicon
face
You are right Keith !! If you have good working I2C software - send it to
the list !!

Have a nice weekend
Steen Jensen



From: RemoveMEkeithhEraseMEspamEraseMEARCAM.CO.UK on 23-01-98 10:46 GMT

Please respond to RemoveMEPICLISTspam_OUTspamKILLspamMITVMA.MIT.EDU

To:   RemoveMEPICLISTTakeThisOuTspamspamMITVMA.MIT.EDU
cc:    (bcc: Steen Schelle Jensen/Sales/DK_GDK/Grundfos)
Subject:  Re: I2C Master with 16C62A




Beware!
AN554 and AN578 are only approximations to I2C.
At the bit level, the I2C spec says that an I2C slave
holds SCL low to 'wait-state' the master.
Looking closely at AN578, you see that the code
interprets this as a bus error.
This is a serious and fundamental bug IMHO.
I'm horrified at the number of people looking for
example I2C code, who then get pointed to these notes.
They really are appalling.
I'm writing PIC code which uses the I2C bus,
and I think I would have been better off writing
I2C code from scratch from the I2C bus spec
than starting off with these notes.

1998\01\23@113527 by Conor O'Rourke

flavicon
face
Keith Howell said:

> Beware!
>
> AN554 and AN578 are only approximations to I2C.
>
> At the bit level, the I2C spec says that an I2C slave
> holds SCL low to 'wait-state' the master.
>
> Looking closely at AN578, you see that the code
> interprets this as a bus error.

Bleugh. That's really bad. I just browsed over that code, never
realising - thanks for pointing this out. I learnt about I2C from
the excellent I2C faq at:

http://www.ping.be/~ping0751/i2c/i2c.htm

There's lots of other i2c stuff there too including the "ICee" drivers
which create an I2C bus on the parallel port of your PC. Cool.

Conor.

1998\01\23@133511 by Mitchell D. Miller

flavicon
face
Where does one get the IIC spec?

-- Mitch


------------------------------
Mitch Miller
EraseMEmdmillerspamspamspamBeGonenque.com
------------------------------


{Original Message removed}

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