Content originally posted in LPCWare by brownm on Wed Oct 15 19:11:49 MST 2014
Hi all
I'm trying to use the ROM API for the i2C bus in the 11u68,
I am using the LPCOpen example project "periph_i2c_rom_interrupt" as a basis for my code.
I can read and write single bytes (and no doubt multiple bytes - however my device doesn't have these)
I need to issue a repeated start command to read the next register of the device (MAX9611), I have tried setting the stop_flag in the params struct to false. but that causes the I2C to lockup at the interrupt handler.
Any ideas on what the stop_flag actually does - I can't find any documentation on it?
Any ideas on how to issue a repeated start command.
it hangs here in the handler (but not if stop_flag == true)
Thanks and Regards
Marshall
Hi all
I'm trying to use the ROM API for the i2C bus in the 11u68,
I am using the LPCOpen example project "periph_i2c_rom_interrupt" as a basis for my code.
I can read and write single bytes (and no doubt multiple bytes - however my device doesn't have these)
I need to issue a repeated start command to read the next register of the device (MAX9611), I have tried setting the stop_flag in the params struct to false. but that causes the I2C to lockup at the interrupt handler.
Any ideas on what the stop_flag actually does - I can't find any documentation on it?
Any ideas on how to issue a repeated start command.
|
it hangs here in the handler (but not if stop_flag == true)
|
Thanks and Regards
Marshall