using i2c engine in interrupts

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

using i2c engine in interrupts

253 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nicob on Thu Feb 03 02:15:59 MST 2011
[FONT=Arial]Hi folks,[/FONT]
[FONT=Arial][/FONT]
[FONT=Arial]I am developping on a LPC1111. I am using the i2c engine from the example and it works smoothly.[/FONT]
[FONT=Arial][/FONT]
[FONT=Arial]Although, when I'm calling the "[SIZE=2]I2CEngine();" [SIZE=3]function in a timer- or external-interrupt, the i2c-bus will not work properly. I guess it has something to do with the clock.[/SIZE][/SIZE][/FONT]
[FONT=Arial][SIZE=2][SIZE=3][/SIZE][/SIZE][/FONT]
[FONT=Arial][SIZE=2][SIZE=3]Does anybody know, what I have to do to make it work?[/SIZE][/SIZE][/FONT]
[FONT=Arial][SIZE=2][SIZE=3][/SIZE][/SIZE][/FONT]
[FONT=Arial][SIZE=2][SIZE=3]Cheers[/SIZE][/SIZE][/FONT]
[FONT=Arial][SIZE=2][SIZE=3]nicob[/SIZE]
[/SIZE][/FONT]
0 Kudos
1 Reply

226 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Europe on Thu Feb 03 04:59:16 MST 2011
Hello nicob,

it can be a problem to call for the I2C-engine (interrupts) inside an other interrupt.

Can you set a flag in your e.g. timer-interrupt and go to the I2C-engine later?
0 Kudos