i2c_master_transmit_poll soetimes transmits nothing

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i2c_master_transmit_poll soetimes transmits nothing

557件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by remcopoelstra on Fri Oct 31 06:48:56 MST 2014
Hi,

I'm using the I2C rom driver on an LPC11A12. Setup runs fine (I get back a handle and no error when I set the bitrate).
Sometimes when I then call i2c_master_transmit_poll(), the function returns LPC_OK, but nothing is transmitted. Other times, it works fine, so I assume it must be a timing issue.
Unfortunately I've no idea where to start looking.
The SCL and SDA lines are high, so the bus is free.
The STAT register is 0xF8, so the controller is doing nothing.
Under what circumstances can the i2c_master_transmit_poll() return LPC_OK while not transmitting any data?

Thanks in advance.

Kind regards,

Remco Poelstra
ラベル(1)
0 件の賞賛
返信
0 返答(返信)