readme.txt 1.0 KB

123456789101112131415161718192021222324
  1. /*!
  2. \file readme.txt
  3. \brief description of the master receiver and slave transmitter interrupt
  4. */
  5. /*
  6. Copyright (C) 2017 GigaDevice
  7. 2017-06-06, V1.0.0, firmware for GD32F3x0
  8. */
  9. This demo is based on the GD32350R-EVAL board, it shows how to use the I2C
  10. interrupt programming mode in master receiving mode or slave transmitting mode.
  11. In this demo, I2C0 is operated as the master receiver and I2C1 as the slave
  12. transmitter.Moreover,the SCL line and SDA line of I2C0 interface are controled
  13. by the I/O pin PB6 and PB7 respectively. The SCL and SDA of I2C1 are controled
  14. by the pin PB10 and PB11 respectively.
  15. This demo will send the data of i2c_buffer_transmitter array through I2C1 interface
  16. to the I2C0, and it will store the data received by I2C1 in the i2c_buffer_receiver
  17. array. If transfer is sucessfully completed, LED1 and LED2 are on.
  18. We shoud use the jumper to connect the PB6 and PB10. The PB7 and PB11 are connected
  19. as well.In additon, the capacitance C8 of I/O pin PB11 needs to be removed.