??? 09/16/05 19:19 Read: times |
#101180 - That may have been true then, this is no Responding to: ???'s previous message |
Michael Karas said:
It is my honest opnion that the use of the I2C engine is not the easiest thing in the world to implement....especially if you try to use it in the interrupt driven manner and you are new to coding with state machines. Since there is a plethora of on-line examples of software bit-bang I2C code around it may just possibly be easier for lesser experienced programmers to get their arms a software bit bang implementation. That may have been true then, this is now The thing that makes HW IIC dead easy is CodeArchitect, free from http://www.esacademy.com. The CodeArchitect generates full, finished code for a LPC device and to use the code with any Philips chip or SILabs derivative (not the f3xx deviates) all you have to do is to change a few SFR names and the oscillator setup. The oscillator setup is the only thing that is different beyond the totally mundane. So, what is easiest? generating code where all is already right or adapting code from the libray? Erik PS the CodeArchitect is useful for many things for any derivative. E.g. click in the oscillator frequency and a desired time and the TCON, TMOD, TH and TL values are right there. |
Topic | Author | Date |
Using IIC.ASM | 01/01/70 00:00 | |
address, speed | 01/01/70 00:00 | |
Yes | 01/01/70 00:00 | |
two things | 01/01/70 00:00 | |
Is HW I2C easier? | 01/01/70 00:00 | |
That may have been true then, this is no | 01/01/70 00:00 | |
Replies. | 01/01/70 00:00 | |
Check SBCMON | 01/01/70 00:00 | |
SBCMON | 01/01/70 00:00 | |
try a serial memory | 01/01/70 00:00 | |
let us try another tack | 01/01/70 00:00 | |
another tack. | 01/01/70 00:00 | |
you have created just about the worst co | 01/01/70 00:00 | |
Worst conditions. | 01/01/70 00:00 | |
oscilloscope | 01/01/70 00:00 | |
oscilloscope | 01/01/70 00:00 | |
To verify that your programming ("burnin | 01/01/70 00:00 | |
verifying. | 01/01/70 00:00 | |
Without a scope you are kind of stuck, s | 01/01/70 00:00 | |
Success.![]() | 01/01/70 00:00 | |
back to the roots | 01/01/70 00:00 | |
Success. | 01/01/70 00:00 | |
To Mike! | 01/01/70 00:00 | |
Hello Mehdi | 01/01/70 00:00 | |
Or... | 01/01/70 00:00 | |
this is a bootleg, use the original | 01/01/70 00:00 | |
i2cbits | 01/01/70 00:00 | |
you may want to go here | 01/01/70 00:00 | |
Clock width is only 2 uSec in IIC_ASM ex | 01/01/70 00:00 |