Content originally posted in LPCWare by Wenzu on Tue Mar 22 13:22:01 MST 2011
Hi Larry,
The I2C code I was experimenting with is exactly the one that was posted in the previous link. When I stripped down everything else to post, it came almost exactly to the zipped file, except the registers I added for accessing the data.
After Zero's [I]pointer[/I] , and also, as I was stripping down the code for posting, subsequent reads immediately worked ( topic name redundant ?? ;), whenever I was reading I2C freely, and not according to the data ready interrupt coming out from this device.
I am still not successful in achieving what I want, but that's because I'm a [I]( [/I]somewhat [I]courageous[/I] ;) nooob.
Re-reading the UM is helping, as well as learning how to control interrupt priorities.
So, now that I confirmed that the quoted example works, and learned/identified/visualized where all ISR's are happening in the I2C example, I need to spend some more sleepless nights trying to figure out what I need to tailor in my use to be able to have successful interrupt reading without any interference from other parts of the code.
I don't know if an RTOS is the solution, but as I really have thirst to learn keen coding, I want to still pursue this challenge. :eek: