I am trying to get the TWI to work in master receive mode. The Start error code returned is OK (0x08).
When the SLA+R address is sent the error code returned is 0x00. The data sheet the uP I'm using (ATmega88, doc8161.pdf, page 239) indicates this code indicates a
bus error due to an illegal START or STOP condition.
The remedy given also adds
Only the internal hardware is affected, no STOP condition is sent on the bus. In all cases, the bus is released and TWSO is cleared.
ldi TEMP, (1<<TWINT|1<<TWSTO) ; sts TWCR, TEMP ;
My question is after running the above code, to I need the resend the START or do I just try the SLA+R step again?