??? 08/11/06 12:33 Read: times |
#122034 - I am against "sharing code" but it is there Responding to: ???'s previous message |
I am testing the i2c of my p89lpc9221. Anyone could share their code with me since i am new?
This is the question that ALWAYS should get a resounding NO. Copying code will give you ZERO experience/knowledge. The exception here is that most companies supply various tools (appnotes etc) which often is the only way to understand the functioning of their devices. Do note that such rarely works "out of the box" but it will get you going. The assumption that if it does not work it is wrong, is faulty, it works under the circumstances specified, which - hopefully - are different from yours. There is an excellent product, supported by Philips named CodeArchitect for the LPC9xx free from http://www.esacademy.com that will get you there. PLEASE try not just to 'use' the code, spend some time understanding it. I also urge you to download the datasheet for the Philips P89C66x it has the most complete description of the IIC interface that (as far as I know) all but the SILabs deviates (F3x, F4x) use. NOTE: for non 66x devices, the oscillator setup may be different, but the rest is the same. Erik |