Lab 1: Create the Application

 Objective

In Lab 1, you will create an MPLAB Harmony v3 project using Microchip Harmony Configurator (MHC). The application you create will utilize:

  • A button to switch the application on or off
  • Timer System Service using TC Peripheral Library to periodically sample temperature sensor data
  • Asynchronous I2C driver using I2C Peripheral Library to read temperature from a temperature sensor
  • Debug System Service and Console System Service using CDC USB Peripheral Library to print the temperature values on a COM (serial) port terminal application running on a PC.

Overview

The whole application is divided into four tasks.

  • Sensor task
  • SD Card task
  • USB task
  • Wi-Fi task

Each task runs its own state machine. The tasks are called from the SYS_Tasks() routine, which is run in an infinite loop.

In Lab 1, you will develop the Sensor task which includes the USB operations to print the sensor logs.

lab1_sensor_task_state_machine.png

Procedure

Lab 1 Index

Part 1 - Create Project & Configure MCU

Part 2 - Add Application Code & Build the Application

© 2022 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.