This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

P89LPC9xx i2c routines for uVision

Hi all,

does somebody knows where can i find i2c routines for the P89LPC9xx in uVision format? I've problems with the routines provided by Philips in the AN10155.

Thanks in advance !

Parents
  • "routines ... in uVision format?"

    There's no such thing - uVision has nothing to do with source code syntax or semantics!

    Do you mean you want Keil C51 syntax?

    " I've problems with the routines provided by Philips in the AN10155."

    What problems?
    Philips make the P89LPC9xx, and Philips own the I2C bus - so if you're having problems with Philips Application Notes, what makes you think that you'll get any further with any others?

Reply
  • "routines ... in uVision format?"

    There's no such thing - uVision has nothing to do with source code syntax or semantics!

    Do you mean you want Keil C51 syntax?

    " I've problems with the routines provided by Philips in the AN10155."

    What problems?
    Philips make the P89LPC9xx, and Philips own the I2C bus - so if you're having problems with Philips Application Notes, what makes you think that you'll get any further with any others?

Children
  • I am not sure which version you need of the Keil tools. But if you are using C51 V8.0 with uVision3 then go to the help menu and select the Contents tab. Then select uVision IDE User's Guide help book and open the folder Simulation Templates. Now open the I2C Simulation folder. Here you will find information to create a Virtual template. You will also find an example that you could use as your starting point as an example. Note, you may need to modify some of the register/port names to match your target. You program it as you would with normal "C" code and then load it when you start the debugger (as ini file).

    As a side comment, I have only used this feature on a XC167 device to simulate a custom ASIC using the SSC (SPI). It is a very nice feature that I would highly recommend everyone to explore and try for themselves.

    Best regards,
    Chris