Rapid Prototyping a Bluetooth Smart Appliance Control Application on a 32-bit MCU-based Curiosity Nano Evaluation Kit using MPLAB® Harmony v3 Software Framework: Step 2
Last modified by Microchip on 2023/11/09 09:08
Configure I²C Peripheral Library and I²C Pins
Under the Available Components tab, expand Peripherals > SERCOM.
Double-click on SERCOM0 to add the SERCOM instance 0 to the project.
Select the SERCOM0 Peripheral Library and configure it for the I²C protocol.
Open the Pin Configuration tab by clicking MPLAB® Harmony Configurator (MHC) > Tools > Pin Configuration.
The mikroBUS socket #2 and socket #3 design schematics for the PIC32CM MC00 Curiosity Nano Evaluation Kit and Curiosity Nano Base Board are shown below.
Select the MHC Pin Settings tab and sort the entries by Ports names.
Now, scroll down to the PA08 and PA09 pins and configure as follows.
- Configure I²C Clock (SCL) on PA09 (Pin #12)
- Configure I²C Data (SDA) on PA08 (Pin #11)