GD32A50x User Manual
526
Figure 20-20. Programming model for master receiving (N<=255)
IDLE
START Condition
Master sends Address
Slave sends Acknowledge
Slave sends DATA(1)
Master sends Acknowledge
(
Data transmission
)
Slave sends DATA(N)
Master don't send ACK
Master generates STOP
condition
Software initialization
Set RBNE
Set RBNE
Read DATA(x)
Set RBNE
Read DATA(1)
Slave sends DATA(N-1)
Master sends Acknowledge
Set RBNE
Read DATA(N), set STOP
I2C Line State
Hardware Action
Software Flow
Set START
Read DATA(N-1)
AUTOEND=0
BYTENUM[7:0]=N