??? 11/30/06 19:23 Read: times |
#128789 - Here! Responding to: ???'s previous message |
// then I get this over & over case 0x40:// Slave address + R transmitted, Ack received STA = 0; STO = 0; if (i2c_master_islastrxbyte(mbytenum)) { AA = 0; // return NACK for data byte, two more bytes } else { AA = 1; // return ACK for data byte } // if break; This is what I have for AA unsigned char i2c_master_islastrxbyte(unsigned int bytenum) // number of the byte in this transfer // (0 = first byte) { if (bytenum == 3)// want to send 3 bytes { return 0; // AA = 0 } else return 1; // AA = 1 } // i2c_master_islastrxbyte Is this the right way to approach this? What do I need? |
Topic | Author | Date |
P89LPC936 I2C | 01/01/70 00:00 | |
use CodwArchitect | 01/01/70 00:00 | |
I did | 01/01/70 00:00 | |
no, I do not do 'time' | 01/01/70 00:00 | |
It's me | 01/01/70 00:00 | |
Erik I need help | 01/01/70 00:00 | |
what about AA? | 01/01/70 00:00 | |
Here! | 01/01/70 00:00 | |
read the p89v66x datasheet and go through | 01/01/70 00:00 | |
What about this | 01/01/70 00:00 | |
the address issue ... | 01/01/70 00:00 | |
Don't shift | 01/01/70 00:00 | |
In other words if a slave uC (or some other | 01/01/70 00:00 | |
SI != 0 | 01/01/70 00:00 | |
I do not handle bits, I write the SFR in one go | 01/01/70 00:00 | |
What is that? | 01/01/70 00:00 | |
sorry, SILABS SFR doing exactly the same | 01/01/70 00:00 | |
I tried | 01/01/70 00:00 | |
are you using a bondout? | 01/01/70 00:00 | |
Yes | 01/01/70 00:00 | |
try it the old fashioned way | 01/01/70 00:00 | |
OK | 01/01/70 00:00 | |
is this easier to understand? | 01/01/70 00:00 | |
It Cleared | 01/01/70 00:00 | |
send an e-mail | 01/01/70 00:00 | |
OK | 01/01/70 00:00 | |
License Expired | 01/01/70 00:00 | |
let your friendly local NXP contact know![]() | 01/01/70 00:00 |