Demonstrating 8-bit I2C Controller Read, Step 5: Test Application for the PIC18F47Q10 Hardware
Verify Correct Operation
Launch MPLAB® Data Visualizer by clicking the Data Visualizer icon.
Select the correct port and set it for 9600 baud. Press the Play button for the port.
MPLAB Data Visualizer will now show the temperature on the terminal screen. Pinch the thermocouple sensor to verify temperature change.
Results
You observed the application read and display the temperature using the PIC18F47Q10 MCU.
Analysis
You have successfully demonstrated Inter-Integrated Circuit (I2C) functionality using MPLAB Code Configurator (MCC). Your project used fundamental I2C elements to read data from the MCP9600 that can benefit many applications. This demonstration continuously reads the temperature and moves data to the EUSART Core Independent Peripherals (CIP) for transmission and display on a terminal. This process is repeated to provide continuous temperature information.
You used MCC to configure the system clock, Master Synchronous Serial Port (MSSP) configured as a Controller to query the MCP9600 temperature registers, EUSART to output the temperature to the PIC18F47Q10 Curiosity Nano virtual serial port and General Purpose Input/Output (GPIO) to configure port pins for I2C and EUSART communication.