Searching \ for '[PIC]: CCSC compiler and I2C' 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: 'CCSC compiler and I2C'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: CCSC compiler and I2C'
2002\06\06@230517 by Stephen Curtis Inkpen

flavicon
face
Hello,

Has anyone had any difficulties using I2C with the CCS C compiler? I've
been trying to get communications working but the system doesn't seem to
be very stable. Sometimes I'll get an address byte and then data and
sometimes I'll just get the address.

I'm looking for something weird in the compiler itself. If other's have
had no problem getting it to work with CCS compiler than there must be
something i'm doing wrong.

Thanks,

Stephen Inkpen
spam_OUTsinkpenTakeThisOuTspamcs.mun.ca

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


2002\06\07@004834 by Dale Botkin

flavicon
face
I haven't had any I2C problems...  might want to try the discussion board
on CCS' web site, there are people there who use it a LOT.  I've only used
it for a few projects, but all are 100% solid.

Dale
--
"Curiosity is the very basis of education and if you tell me that
curiosity killed the cat, I say only the cat died nobly."
         - Arnold Edinborough


On Fri, 7 Jun 2002, Stephen Curtis Inkpen wrote:

> Has anyone had any difficulties using I2C with the CCS C compiler?

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\06\07@073236 by Olin Lathrop

face picon face
> Has anyone had any difficulties using I2C with the CCS C compiler? I've
> been trying to get communications working but the system doesn't seem to
> be very stable. Sometimes I'll get an address byte and then data and
> sometimes I'll just get the address.
>
> I'm looking for something weird in the compiler itself. If other's have
> had no problem getting it to work with CCS compiler than there must be
> something i'm doing wrong.

There are definitely a few issues with Micrchip's implementation of IIC, and
you have to do things just right on your end too.  I ran into one of those
just recently myself.

However, I don't want to waste time getting into these issues when there is
a compiler getting in the way.  If you're not sure where the fault lies,
separate the potential sources as much as possible.  Get it working in
assembler first, then switch to compiled code if you ultimate aim is to have
it working that way.  At least you'll know whether it is a true IIC problem
or a compiler issue.


*****************************************************************
Embed Inc, embedded system specialists in Littleton Massachusetts
(978) 742-9014, http://www.embedinc.com

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics


2002\06\09@095222 by rusque (listas)

face
flavicon
face
Hello Stephen,

> Has anyone had any difficulties using I2C with the CCS C compiler? I've
> been trying to get communications working but the system doesn't seem to
> be very stable. Sometimes I'll get an address byte and then data and
> sometimes I'll just get the address.
>
> I'm looking for something weird in the compiler itself. If other's have
> had no problem getting it to work with CCS compiler than there must be
> something i'm doing wrong.

   I've used CCS I2C routines both hardware and bit-banged, master and
slave. Everything worked fine, always.

   Some months ago I've posted a msg on this list saying that I couldn't
made a serial EEPROM work at 400kHz, but found the error this week. I have
both SCL and SDA lines set as output (Me dumb, me dumb!) on the PIC. Setting
both as input solved the problem.

   Best regards,

   Brusque

-----------------------------------------------------------------
Edson Brusque                 C.I.Tronics Lighting Designers Ltda
Researcher and Developer               Blumenau  -  SC  -  Brazil
Say NO to HTML mail                          http://www.citronics.com.br
-----------------------------------------------------------------

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


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