This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

XC167 IIC Problem

My master transmitter code is working fine, but i can't get my master receiver running.

how exactly is the procedure to receive some bytes from a slave?

i tried the following
set buffer depth to 1
set data direction to out
write slave address with read mask to iic_rtbl
generate start condition
in the interrupt i received only the address byte, though there were more bytes on oscilloscope.

i also tried to set data direction to in, before writing address (which didn't work) and i also tried to set buffer depth to 4, before starting transfer.

nothing seems to work properly.

any help welcome!

thanks in advance