Anson Zhao caf1cb2360 init commmit. 6 years ago
..
I2C0_IE.c caf1cb2360 init commmit. 6 years ago
I2C1_IE.c caf1cb2360 init commmit. 6 years ago
I2C_IE.h caf1cb2360 init commmit. 6 years ago
gd32f3x0_it.c caf1cb2360 init commmit. 6 years ago
gd32f3x0_it.h caf1cb2360 init commmit. 6 years ago
gd32f3x0_libopt.h caf1cb2360 init commmit. 6 years ago
main.c caf1cb2360 init commmit. 6 years ago
readme.txt caf1cb2360 init commmit. 6 years ago

readme.txt

/*!
\file readme.txt
\brief description of the master receiver and slave transmitter interrupt
*/

/*
Copyright (C) 2017 GigaDevice

2017-06-06, V1.0.0, firmware for GD32F3x0
*/

This demo is based on the GD32350R-EVAL board, it shows how to use the I2C
interrupt programming mode in master receiving mode or slave transmitting mode.
In this demo, I2C0 is operated as the master receiver and I2C1 as the slave
transmitter. Moreover,the SCL line and SDA line of I2C0 interface are controled
by the I/O pin PB6 and PB7 respectively. The SCL and SDA of I2C1 are controled
by the pin PB10 and PB11 respectively.

This demo will send the data of i2c_buffer_transmitter array through I2C1 interface
to the I2C0, and it will store the data received by I2C0 in the i2c_buffer_receiver
array. If transfer is sucessfully completed, LED1 and LED2 are on.

We shoud use the jumper to connect the PB6 and PB10. The PB7 and PB11 areconnected
as well.In additon, the capacitance C8 of I/O pin PB11 needs to be removed.