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 !
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