---
title: "W7500 I2c 예제소스"
url: "https://maker.wiznet.io/forum/12404"
markdown_url: "https://maker.wiznet.io/forum/12404/md"
type: "Forum topic"
category: "MCU & Boards"
author: "kl94lim"
created: "2017-07-31T09:00:48+09:00"
last_activity: "2017-08-01T01:09:11+09:00"
language: "ko"
views: 1294
replies: 1
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# W7500 I2c 예제소스

## Question

Asked by kl94lim on 2017-07-31 in MCU & Boards.

W7500의 I2c 예제 소스를 부탁드립니다. MBED가 아닌 KEIL C용으로 부탁드립니다.

## Replies

### Reply 1 by Matthew, 2017-08-01

안녕하세요.

WIZnet 연구원 Matthew 입니다.
W7500은 하드웨어 상에서 I2C를 지원하지 않습니다.
I2C를 구현하고 싶으시면, GPIO를 이용하여, 소프트웨어 단에서 구현하셔야 합니다.
소프트웨어 단에서 구현하는 것은
WIZ750SR의 i2cHandler 를 참조하시면 될 것 같습니다. (해당 소스는 W7500P 기반입니다. )

[github.com](https://github.com/Wiznet/WIZ750SR/blob/master/Projects/S2E_App/src/PlatformHandler/i2cHandler.c)

#### [Wiznet/WIZ750SR/blob/master/Projects/S2E_App/src/PlatformHandler/i2cHandler.c](https://github.com/Wiznet/WIZ750SR/blob/master/Projects/S2E_App/src/PlatformHandler/i2cHandler.c)

```
/* Includes ------------------------------------------------------------------*/
#include "i2cHandler.h"
#include "eepromHandler.h"

/* Private functions prototype -----------------------------------------------*/
void I2C_delay_us(uint16_t num);

/* Private functions ---------------------------------------------------------*/
void I2C_SCL_HIGH(void)
{
	GPIO_SetBits(I2C_SCL_PORT, I2C_SCL_PIN);
}

void I2C_SCL_LOW(void)
{
	GPIO_ResetBits(I2C_SCL_PORT, I2C_SCL_PIN);
}

void I2C_SDA_HIGH(void)
```

This file has been truncated. [show original](https://github.com/Wiznet/WIZ750SR/blob/master/Projects/S2E_App/src/PlatformHandler/i2cHandler.c)

---

Source: https://maker.wiznet.io/forum/12404
