Keil Logo

Infineon XC16x I²C Example Program

This example program shows how to configure and use the I²C interface of the following microcontroller:

  • Infineon XC16x

Two projects are included:

  • I2CMaster: an I²C EEPROM is attached to the XC167.
  • I2CSlave: configures the XC167 as I²C slave.

To run this program...

  1. Build the project (Project Menu, Build Target).
  2. Start the debugger (Debug Menu, Start/Stop Debug Session).
  3. View the Serial Window (View Menu, Serial Window #1).
  4. View the I²C converter peripheral (Peripheral Menu, IIC Module).
  5. Run the program (Debug Menu, Go).

In the I²C-Master example project a debug scripts simulates a I²C EEPROM device. You may view the contents of the EEPROM in µVision's memory windows at address 0x800000.

The I²C-Slave contains a debug script, that defines three toolbar buttons (I²C Transmit, I²C Receive, I²C Data Byte), that allow you to perform basic I²C operations.

XC16X_I2C_EX.ZIP (195K)
Wednesday, August 13, 2014
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.