View previous topic :: View next topic |
Author |
Message |
JohnKennedy
Joined: 12 May 2004 Posts: 38
|
Recommendations for demo board please |
Posted: Mon Nov 07, 2005 8:07 am |
|
|
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
|
|
Posted: Mon Nov 07, 2005 10:51 am |
|
|
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
|
|
Posted: Mon Nov 07, 2005 11:02 am |
|
|
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
|
|
Posted: Mon Nov 07, 2005 11:10 am |
|
|
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
|
|
Posted: Mon Nov 07, 2005 11:20 am |
|
|
Thanks for that PCM Programmer.
JFK |
|
|
|