Anson Zhao caf1cb2360 init commmit. 6 anos atrás
..
gd32f3x0_libopt.h caf1cb2360 init commmit. 6 anos atrás
main.c caf1cb2360 init commmit. 6 anos atrás
readme.txt caf1cb2360 init commmit. 6 anos atrás

readme.txt

/*!
\file readme.txt
\brief description of the master receiver and slave transmitter in fast mode plus
*/

/*
Copyright (C) 2017 GigaDevice

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

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

This demo shows the receiving data process of the master and the sending data process
of the slave. 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 are connected as well.
In additon, the capacitance C8 of I/O pin PB11 needs to be removed.