Demonstrating 8-bit I2C Controller Read, Step 5: Test Application for the PIC18F47Q10 Hardware

Last modified by Microchip on 2023/11/09 08:54

Verify Correct Operation
Launch MPLAB® Data Visualizer by clicking the Data Visualizer Data Visualizer Launch icon icon.
Select the correct port and set it for 9600 baud. Press the Play button for the port.

Note: Your comm number will likely be different. To verify, unplug the USB cable and reattach it. The correct port listing will disappear and reappear under PIC18F47Q1 Curiosity Nano Connections.

MPLAB Data Visualizer Settings

Send to Terminal

MPLAB Data Visualizer will now show the temperature on the terminal screen. Pinch the thermocouple sensor to verify temperature change.

Successful Output

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.