Microchip | The Embedded Control Solutions Company Register Login
Browse All
Microchip Technology
 369 Code Snippets

PIC16F18446 Sensor Board Pressure

Microchip Technology

Check out this project's MPLAB Xpress Webpage to view the complete code example along with a detailed step by step write-up and description, or visit the PIC16F18446 Device Product Page for more information.

About this Code Example


The PIC16F184xx family has a new Analog to Digital Converter with Computation (ADCC) with a 12-bit resolution. This project shows the reading of an analog pressure sensor (MP3V5050GP) using the ADCC.


In this example we will be using the PIC16F18446 Sensor Board. The PIC reads the pressure sensor, and displays the current atmospheric pressure in Pascal units. Also, two graphs display the variations of the 12-bit and 10-bit pressure values in real time.

Here is a picture of the pressure sensor:

MCC Settings

Here are the settings used for MSSP, CLC, FVR, and ADCC. MSSP + CLC are used for the LCD control.

MSSP Settings

CLC Settings

FVR Settings

FVR is used as positive refference for the ADCC, to get higher accuracy and gain.

ADCC Settings

ADRPT register is set to 0x40, to average a burst of 64 samples.

PIN Grid

PIN Module


Release History

  • Dec 4, 2018

    Version: 1.0.0

    Initial Release

Download Contact the Developer

*Required Fields

  • Current Version:1.0.0
  • Created:Dec 4, 2018
  • Updated:Dec 4, 2018
  • Downloads:4598
  • MPLAB Version:MPLAB X
  • C Compiler:1.4.5
  • Development Tools:MPLAB Xpress Development Board
  • Supported Devices:PIC16F18446

Corporate News


Stay Connected

Stay up to date with the latest news from Microchip Technology.