View previous topic :: View next topic |
Author |
Message |
anjali
Joined: 22 May 2012 Posts: 9
|
external ADC |
Posted: Tue May 22, 2012 1:00 am |
|
|
Hello,
I need source code for TLV2543(external ADC) connected to pic dem2 plus board using i2c protocol on pic c compiler... please help me with codes at the earliest. |
|
|
Mike Walne
Joined: 19 Feb 2004 Posts: 1785 Location: Boston Spa UK
|
|
Posted: Tue May 22, 2012 3:12 am |
|
|
Do a search on the forum for *2543*.
You'll find some code for TLC2543 which appears to be the same part in a different package.
The code's for SPI serial interface rather than I2C.
Should get you off the ground, if it's so urgent.
Didn't take too long to find code, and data sheets for both parts on Google.
Quicker that waiting for somebody to do it for you.
Mike |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9226 Location: Greensville,Ontario
|
|
Posted: Tue May 22, 2012 5:20 am |
|
|
and....
You'll actually LEARN how to write real code like 'drivers', which should impress your schoolmates and teacher.
The more code you really cut, the better and faster programmer you become.
Just remember to select the correct pullup resistors for the I2C bus based on speed, Vdd, etc. (all in the datasheets). |
|
|
|