i2c_master_transmit_poll soetimes transmits nothing

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i2c_master_transmit_poll soetimes transmits nothing

558 次查看
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 回复数