I2C support in CrossWorks?

Comments

4 comments

  • Avatar
    Brian Myers

    Using interrupts is probably the way to go, but in that case, a library isn't really what you need - you need to write the I2C ISR.

    I found that my  User Manual (UM10120 - I'm using the LPC 2136) has a good section on the I2C peripheral, and info about how to code up the ISR.

     

    0
    Comment actions Permalink
  • Avatar
    Paul Robert Gaastra

    My LPC2103 user manual has lots of stuff too but using something that's already written seems a lot easier to me. 

    0
    Comment actions Permalink
  • Avatar
    Kevin Townsend

    It will still involve some work yourself, but the LPC2148 demo code from J.C. Wren is based on GCC code and has a nice ISR driven I2C code (and everything else imaginable).  Given that the code uses FreeRTOS and I believe the I2C code uses FreeRTOS's message queues you'll have to remove that part, but it's probably the best starting point.  http://www.jcwren.com/arm

    Kevin.

    0
    Comment actions Permalink
  • Avatar
    Paul Robert Gaastra

    Thanks for that, Kevin.  I have downloaded the jcwren code.  It looks like it might be good.  I am afraid I haven't got time right now to see if I can understand it. 

    0
    Comment actions Permalink

Please sign in to leave a comment.