This repository contains an example of MCC-generated source code for I2C as described in TBxxxx - Getting Started with I2C Using MSSP on PIC18 document from Microchip.
The PIC18F47Q10 configured in I2C Master Mode using the MSSP1 peripheral and performing write operations. This example will use the slave MCP23008, an I/O expander, addressed in 7-bit mode.
The PIC18F47Q10 Curiosity Nano Development Board is used as the test platform.
The following configurations must be made for this project:
Pin | Configuration |
---|---|
RB1 (SCL1) | With Pull Up |
RB2 (SDA1) | With Pull Up |
Connect the board to the PC.
Open the pic18f47q10-cnano-i2c-read-write-int-bare.X project in MPLAB® X IDE.
Configure the project properties:
Demo:
This project is an illustration for a basic use case based around MSSP1.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。