Skip to content

"IoT Made Easy!" - This application demonstrates the use of an MICRF112-433-EV and MICRF220/219A-433-EV using ASK Modulation

Notifications You must be signed in to change notification settings

MicrochipTech/Sub-GHz_MICRF112_MICRF220-219A

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MICRF TX CLICK WITH PIC16F1619 AND MICRF RX CLICK WITH PIC18F47K40

"IoT Made Easy!"

Devices: | PIC16F1619 | PIC18F47K40 | MICRF112 | MICRF220 | MICRF219A|
Features: |Sub-GHz|

⚠ Disclaimer

THE SOFTWARE ARE PROVIDED "AS IS" AND GIVE A PATH FOR SELF-SUPPORT AND SELF-MAINTENANCE. This repository contains example code intended to help accelerate client product development.

For additional Microchip repos, see: https://github.com/Microchip-MPLAB-Harmony

Checkout the Technical support portal to access our knowledge base, community forums or submit support ticket requests.

Contents

  1. Introduction
  2. Bill of materials
  3. Hardware Setup
  4. Software Setup
  5. MCC Melody Configuration
  6. Board Programming
  7. Run the demo

1. Introduction

This application demonstrates the functionality of the MICRF TX CLICK module with a PIC16F1619 microcontroller and the MICRF RX CLICK module with a PIC18F47K40 microcontroller using Amplitude Shift Keying (ASK) modulation.

Transmitter Side:

  • The MICRF TX module transmits an incrementing counter value via ASK modulation at a frequency of 315 MHz.

  • This transmission is received by the MICRF RX module on the receiver side.

Receiver Side:

  • The received data's Received Signal Strength Indicator (RSSI) value and the total number of packets received are displayed on an LCD screen.

  • By pressing the user button S1, the LCD switches to display engineering data, which includes error counts, CRC (Cyclic Redundancy Check) information, protocol failures, and buffer overflow statistics.

2. Bill of materials

Hardware Required Description Quantity
DM164137 Curiosity Development Board. 1
PIC16F1619 Change MCU on DM164137 for MICRF TX CLICK. 1
MICRF TX CLICK ASK/FSK Transmitter (315Mhz). 1
DM160228 Explorer 8 Development Kit. 1
PIC18F47K40 Change MCU on DM160228 for MICRF RX CLICK. 1
MICRF RX CLICK ASK/OOK Receiver (315Mhz). 1
ICD3 In-Circuit Debugging for DM160228 1

3. Hardware Setup

MICRF TX CLICK with PIC16F1619(MCU) on Curiosity Development Board.

Step 1 - Replace the default MCU of Curiosity Development Board with PIC16F1619.

Step 2 - Connect the Jumper J12 to 3.3V/5V based on the MCU(here PIC16F1619 has Operating voltage range 2.3V to 5.5V).

Step 3 - Connect the MICRF TX CLICK Board to the MIKROE BUS Connector as shown below.

MICRF RX CLICK with PIC18F47K40(MCU) on Explorer 8 Development Kit.

Step 1 - Replace the default MCU of Explorer 8 Development Kit with PIC18F47K40.

Step 2 - Connect the MICRF RX CLICK Board directly into J35 Jumper (MIKROE BUS Connector).

Step 3 - Power Explorer 8 from J1, the 9V power adapter, not from USB.

Step 4 - Verify all the Jumper connection of the Explorer 8 Development Kit as shown below.

4. Software Setup

  • MPLAB X IDE

    • Version: 6.20
    • XC8 Compiler v2.46
    • MPLAB® Code Configurator v5.3.0
    • PIC12-16F1xxx_DFP v1.3.90
    • PIC18F-K_DFP v1.7.134
  • MPLAB X IPE v6.20

5. Harmony MCC Configuration

Getting started with MICRF TX CLICK with PIC16F1619(MCU) on Curiosity Development Board.

Tip New users of MPLAB Code Configurator are recommended to go through the overview
  • Configure the following components in MCC Melody configuration as shown below.

  • Configure the INTERNAL OSCILLATOR as shown below.

  • Configure the TMR4 as shown below.

  • Configure the CRC as shown below.

  • Configure the Pin Modules as shown below.

  • Click on Generate once all the components are configured.

  • Connect the USB for programming the Device from MPLAB X IDE.

Getting started with MICRF RX CLICK with PIC18F47K40(MCU) on Explorer 8 Development Kit.

  • Configure the following components in MCC Melody configuration as shown below.

  • Configure the System Module as shown below.

  • Configure the Interrupt Module as shown below.

  • Configure the CRC as shown below.

  • Configure the TMR6 as shown below.

  • Configure the ADCC as shown below.

  • Configure the TMR4 as shown below.

  • Configure the Pin Modules as shown below.

  • Click on Generate once all the components are configured.

  • Connect the IDC 3 In-Circuit Debugger to program the device..

6. Board Programming

Programming hex file:

Program the precompiled hex file using MPLAB X IPE

  • The Precompiled hex file is given in the hex folder. Follow the steps provided in the link to program the precompiled hex file using MPLABX IPE to program the pre-compiled hex image.

Build and program the application using MPLAB X IDE

The application folder can be found by navigating to the following path:

  • "Transmitter/MICRF_TX.X"

  • "Receiver/MICRF_RX.X"

Follow the steps provided in the link to Build and program the application.

7. Run the demo

  • After programming the board, the expected application behavior is shown in the below video.

  • The MICRF TX CLICK is a transmitter which sends the incremented counter value and whenever the data is transmitted the D7 led glows.

  • The MICRF RX CLICK is a receiver which receives the data from the MICRF TX and displays the data received along with RSSI value.

Alt Text