??? 12/08/06 13:33 Read: times |
#129178 - if you have to Responding to: ???'s previous message |
if you have to, go ahead and do it soft. You can buy uCs with hardware IIC for less than $1 (NXP LPC) so why fight with the (effects of) software IIC. Anyhow, whether you go 'hard' or 'soft' have a look at the NXP P89C668 datasheet, the detailled description of the HW IIC there will give you lots of information refgardless of whether you decide on 'soft' or 'hard'.
The problem with software IIC is that while it is active all other processes come to a halt, with hardware IIC everything is interrupt driven and only once per byte do you have to take action]. Should you decide to to the smart thing and use a processor with hardware IIC, then the CodeArchitect, free from http://www.esacademy.com will generate code that works on the LPCs and with 15 minutes of work will work on all others I know with the exception of SILabs F3x, f4x, f5x. Erik The best (and most) IIC appnotes: http://www.semiconductors.philips.com/buses/i2c...index.html and the ultimate "IIC class" http://www.standardics.nxp.com/literatur...n.2003.pdf get that one in your noggin and you will understand (almost) every nook and cranny there is about IIC |
Topic | Author | Date |
I2C Bus | 01/01/70 00:00 | |
it's wrong, but working... | 01/01/70 00:00 | |
if you have to | 01/01/70 00:00 | |
Remove the EEPROM![]() | 01/01/70 00:00 | |
Unfortunately, I have to... | 01/01/70 00:00 | |
Atmel appnote | 01/01/70 00:00 | |
Thanks,I\\\'ll correct the code now | 01/01/70 00:00 | |
receive doesn't work | 01/01/70 00:00 | |
sorry | 01/01/70 00:00 |