2011-07-01 06:21 AM
HI..in attach file there's my code. i've to manage smbus using interrupt (no polling allowed).
I don't understand why the interrupt doesn't start. The code doesn't me any error. Is it correct manage the smbus protocol inside the interrupt? What is the event that start the interrupt. Please give a look at my code..i don't know what to do. Thank you!!! #i2c #interrupt #smbus #stm32-i2c-smbus #problem #interrupt2011-07-01 08:43 AM
Problem solved :)
The code is ok... Anyone has the right sequence to implement, inside a interrupt, the slave?2011-07-03 09:26 AM
Hi there...I'm again blocked inside the code..
At the moment the interrupt go well, i mean that when master send in the bus the address of my STm32f100x, the interrupt event of smbus start.
I'm a slave in the trasmission.
I'm noy able to found an example that desribes the step to do inside the interrupt. I've found lots of example that use polling to implement smbus, but don't that use interrupt.
Anyone knows how do it?
Nico
2011-07-03 12:31 PM
In situations like this, one would typically read the documentation, paying particular attention to the registers/events, draw a state diagram, investigate the behaviour of the polled examples. The number of possible events/states looks to be fairly finite.
Look at how this is done with I2C slaves. If you have a commercially viable project, your ST distributor/representative/FAE should be able to provide assistance. ST also maintains a list of consultants.