牛卧堂MCU技术交流

标题: [Mini51] I2C LIRC Master [打印本页]

作者: admin    时间: 2023-12-14 10:06
标题: [Mini51] I2C LIRC Master

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





欢迎光临 牛卧堂MCU技术交流 (http://nuvoton-mcu.com/) Powered by Discuz! X3.2