Digi NS9215 manual O w c h a r t s, Master module normal mode, 16- bit

Models: NS9215

1 517
Download 517 pages 25.29 Kb
Page 457
Image 457

I 2 C M A S T E R / S L A V E I N T E R F A C E

. . .

Flow charts. .

F l o w c h a r t s

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Master module (normal mode, 16- bit)

 

 

 

host idle

 

 

 

 

write cmd

 

write (optional)

 

write cmd

write cmd

 

M_READ

 

M_ADDR_REG

 

M_WRITE

M_NOP

 

 

 

 

1

write

write

 

 

 

 

 

TX_DATA_REG

TX_DATA_REG

 

wait irq

4

M_ARBIT_LOST

 

 

 

 

read

 

 

 

 

 

 

irq

 

 

 

 

rx/status

 

 

 

 

 

 

 

 

 

 

 

 

 

2

 

wait irq

 

 

 

4

M_NO_ACK

 

 

 

wait irq

irq

 

read status

 

 

read

 

 

 

 

 

 

rx/status

 

 

 

 

 

 

 

 

write cmd

 

M_TX_DATA

 

M_RX_DATA

 

M_STOP

3

irq

 

 

irq

 

 

 

 

 

 

 

 

wait irq

 

 

 

 

 

 

read status

 

 

 

 

 

 

M_CMD_ACK

 

 

 

write cmd

write (optional)

irq

 

 

 

 

 

 

 

M_NOP

M_ADDR_REG

 

 

 

 

 

 

1

 

 

 

 

write cmd

write cmd

 

write cmd

 

 

M_READ

M_WRITE

 

M_STOP

 

 

Notes:

1Writing M_ADDR_REQ is not required if the device address is not changed.

2Read on a non-existing slave.

3Do not wait for the slave to perform a NO_ACK.

4STATUS_REG and RX_DATA_REG are read simultaneously.

www.digiembedded.com

457

Page 457
Image 457
Digi NS9215 manual O w c h a r t s, Master module normal mode, 16- bit