We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, I’m designing a micro system on an ADuC842 with I2C communications between ICs. I using Keil to design and debug my code but I’m having trouble interpreting the display from the I2C interface window. I wrote code for a slave device and used Keil I2C interface to communicate with it successfully but I can’t tell if my master code is working or not because the interface window confuses me. I would be very grateful if someone could help me out and explain how to verify that my master code is working, as in what does the window do when you successfully communicate with it? Thanks, Donagh
that Keil rarely (never?) simulate drivativge specific I/O
Erik
I2C is a standard IEEE communication protocol. Keil uVision 4 has an I2C simulation function. I was merely asking for advice on interpreting its response to my I2C master code (assembly).
Please don’t respond if you don’t have something useful to say
Is it??
I have written code to simulate a couple of I2C devices in the Keil debugger. It isn't too hard if you do know the device - if you don't, then you will not be able to write the microcontroller code anyway.