??? 03/14/05 19:07 Read: times |
#89659 - the skinny Responding to: ???'s previous message |
Suppose i've to take 8000 to 10000 samples/second of some signal and give it to micro. using I2C and this is almost continuous operation, say some process monitoring/control, whats better hardware/software I2C ?
Hardware IIC is always better, the question is is it needed? In the above case it IS needed. What exactly is difference between them? not just that h/w has 2pins of SDA and SCL ? Hard or soft you still have "2pins of SDA and SCL" the only difference is that with HW IIC the pins are what they are, with soft IIC you choose which port pins. Exactly how it affects performance and why? Find a soft IIC code e.g. in the code library here, have a look. Then download (for free) CodeArchitect from http://www.esacademy.com and generate the code for hard IIC. You will see that where soft IIC consumes code time per bit, hard IIC consume time per byte so the ratio will be something like 1:8. (That is by no means precise, the code for either will change the ratio) A recommendation: since IIC involve addressing, you can speed things up a bit by combining, say, 16 samples in one record. Erik |
Topic | Author | Date |
89C66x and 89C51RD2 | 01/01/70 00:00 | |
hw IIC vs bitbang | 01/01/70 00:00 | |
can u illustrate/elaborate wth some code | 01/01/70 00:00 | |
rate does not matter | 01/01/70 00:00 | |
Not true ! | 01/01/70 00:00 | |
Total Agreement | 01/01/70 00:00 | |
what about XRAM? | 01/01/70 00:00 | |
XRAM and mnufacturers | 01/01/70 00:00 | |
XRAM, more | 01/01/70 00:00 | |
SW-I2C mostly sufficient ! | 01/01/70 00:00 | |
similar CPU load?? pray explain | 01/01/70 00:00 | |
"...significant advantage..." | 01/01/70 00:00 | |
how do you do soft IIC with 1% load | 01/01/70 00:00 | |
1% = | 01/01/70 00:00 | |
Peters 1% | 01/01/70 00:00 | |
very high data rates?? | 01/01/70 00:00 | |
consider the whole program ! | 01/01/70 00:00 | |
Its really very high. | 01/01/70 00:00 | |
how can microresistance | 01/01/70 00:00 | |
Forum rules - no SMS | 01/01/70 00:00 | |
the skinny![]() | 01/01/70 00:00 | |
sorry for the informal language | 01/01/70 00:00 |