AT91SAM3S TWI repeated start / restart condition

Discussion around product based on ARM Cortex M3 core.

Moderators: nferre, ncollot

miked998
Posts: 3
Joined: Wed Feb 27, 2013 4:08 pm

AT91SAM3S TWI repeated start / restart condition

Wed Feb 17, 2016 7:18 pm

Hi everyone,

I'm trying to use the AT91SAM3S TWI interface in master mode. I am able to get the TWI to send a start condition, device address, and data... but am not able to get a repeated start condition sent (restart).

This is what I'd like to do with the TWI:
1. Start condition
2. Device Address + W
3. Send 'n' data bytes
4. Repeated Start Condition
5. Device Address + R
6. Read 'm' data bytes
7. Stop condition

Is this possible? I do not see it mentioned in the datasheet.

Return to “SAM3 Cortex-M3 MCU”

Who is online

Users browsing this forum: No registered users and 1 guest