CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Recommendations for demo board please

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
JohnKennedy



Joined: 12 May 2004
Posts: 38

View user's profile Send private message

Recommendations for demo board please
PostPosted: Mon Nov 07, 2005 8:07 am     Reply with quote

Hi

I have an application coming up that requires that I communicate with a battery using the SMbus. I haven't had any experience of using this or a serial interface before.

Can someone please advise as to a suitable demo board that I can use to learn its use, I'm in the UK if that makes any difference to whats available.

Any other relevant advice greatly appreciated

thanks

JFK
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Nov 07, 2005 10:51 am     Reply with quote

Quote:

I have an application coming up that requires that I communicate with a
battery using the SMbus.

Have you used i2c with CCS before ? If so, it should be no problem.

SMBus is very similar to i2c. Read this Maxim appnote on the differences:
http://www.maxim-ic.com/appnotes.cfm?appnote_number=476

Most PICs with a MSSP module (e.g., 16F877, and many others) have
a bit in the SSPSTAT register which can configure the module for
SMBus mode. CCS supports this feature in their #use i2c() library,
with the SMBUS parameter. Look in the CCS manual for more information.
JohnKennedy



Joined: 12 May 2004
Posts: 38

View user's profile Send private message

PostPosted: Mon Nov 07, 2005 11:02 am     Reply with quote

I haven't used i2c either, thats why I really need to learn more about this, any advice or recommendations for demo boards / books that are relevant to this would be appreciated.

thanks

JFK
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Nov 07, 2005 11:10 am     Reply with quote

I assume you have some existing prototyping board. Just buy a
24LC256 eeprom, install it on your board, and write test programs for it.
CCS has a driver file, 24256.c, in the drivers folder:
c:\Program Files\Picc\Drivers
There are some test programs for the 24LC256 eeprom in the forum
archives.

If you need a schematic whichs shows how to connect it, then download
the PicDem2-Plus manual, here:
http://ww1.microchip.com/downloads/en/DeviceDoc/51275b.pdf
Go to page 19, and look at the upper right side of the page.
It shows U4 (24LC256) and the pull-up resistors, and other connections
to the PIC.
JohnKennedy



Joined: 12 May 2004
Posts: 38

View user's profile Send private message

PostPosted: Mon Nov 07, 2005 11:20 am     Reply with quote

Thanks for that PCM Programmer.

JFK
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group