Skip to content

This example demonstrates emulation of Raspberry pi Single Board Computer, with features like communication with a I2C client and system shutdown, using PIC MCU. Compatible PIC16F152xx family of MCUs are PIC16F15214,PIC16F15223,PIC16F15254,PIC16F15276.

License

Notifications You must be signed in to change notification settings

microchip-pic-avr-examples/pic16f15244-cnano-system-power-supply-control-sbc-mplab-mcc

Repository files navigation

MCHP

Process Computer Emulation Using PIC16F15244 Microcontroller

Introduction

This code example demonstrates how Raspberry Pi© Single Board Computer (SBC) functionality is emulated using the PIC16F15244 Curiosity Nano Evaluation Kit. For an overview of the implementation of this application, refer to the “Supply Control Module using PIC16F15244 Microcontroller“ code example.

For complete details of the application implementation, refer to the application note : Using PIC16F15244 Microcontrollers for System Power Supply Control.

Related Documentation

Software Used

Hardware Used

  • PIC16F15244 Curiosity Nano Evaluation Kit EV09Z19A

Process Computer Module Implementation

To implement the emulated Raspberry Pi-based SBC functionality , PIC16F15244 Curiosity Nano Evaluation Kit is used, which will be referred as “process computer”.

For the system power supply control demo the process computer is developed to emulate the power-down feature of the process computer. It will send out a power-down command to the supply control module when a switch press event is detected.

This power-down command triggers the shutdown of the regulator by the supply control module’s microcontroller. The command also contains the time duration the system will be turned OFF. The command consists of an ASCII string for cross platform support: S (number of seconds), where the first byte is the character ‘S’ and the following six characters are the shutdown duration in seconds (for example, ‘S007200’ represents 7200 seconds, or two hours, of system power-down).

In case the process computer needs to be turned ON before the power-down period is over, the supply control module can also accept user input. To demonstrate this feature, an on-board switch is used on the Curiosity Nano board serving as the supply controller is used. The supply controller module will immediately turn ON the regulator in the event of a switch press.

Demo Operation

To know about the demo operation, refer GitHub code example Using PIC16F15244 Microcontrollers for System Power Supply Control.

About

This example demonstrates emulation of Raspberry pi Single Board Computer, with features like communication with a I2C client and system shutdown, using PIC MCU. Compatible PIC16F152xx family of MCUs are PIC16F15214,PIC16F15223,PIC16F15254,PIC16F15276.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published