Navid T
Full Member level 3
Hi friends
I write this kind of code to send start bit and address to slave:
It works but the problem is if slave doesn't send ack it'll always wait for ack for ever, how should i write my code that wait for ack but not always?
Regards
I write this kind of code to send start bit and address to slave:
Code:
_SEN=1;
while(_SEN);
I2CTRN = 0B11010000;
while(_TRSTAT);
It works but the problem is if slave doesn't send ack it'll always wait for ack for ever, how should i write my code that wait for ack but not always?
Regards