Keil Logo Arm Logo

File Download Area

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

To 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 (61K)
Monday, January 17, 2005

Estimated File Download Time:
< 15 Seconds: 56Kb Modem
< 10 Seconds: 128Kb ISDN
< 10 Seconds: T1/Broadband

Keil logo

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.