[Mini51] I2C LIRC Master

Post Reply
chhsieh3
Posts: 309
Joined: 13 Mar 2020, 09:08

07 Apr 2020, 11:04

  • Application: This document describes how to set I2C clock source to LIRC and how a Master access Slave.
  • BSP Version: Mini51DE Series BSP CMSIS V3.02.000
  • Hardware: NuTiny-EVB-Mini51_V2.1
This example code demonstrates how to set clock source of I2C to LIRC and how a Master access Slave. The system clock source is LIRC. Since clock source of Mini51 I2C is the same as system clock. Hence, the clock source of I2C is also from LIRC. The bus clock of I2C is set to 833Hz. Then, Master accesses Slave with Byte Write and Byte Read operations, and check if the read data is equal to the programmed data.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 1217201158
Nuvoton

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 119 guests