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.
- Application note : Using PIC16F15244 Microcontrollers for System Power Supply Control
- GitHub Microchip PIC Examples : System Power Supply Control Module Emulation using PIC16F15244 Microcontroller
- GitHub Microchip PIC Examples : System Power Supply Control Module using PIC16F15245 Microcontroller
- PIC16F152xx Product Family Page
- PIC16F152xx Family Code Examples on GitHub
- PIC16F15244 MCU Family Video
- PIC16F15244 MCU Product Page
- MPLAB® X IDE 6.20.0 or newer
- MPLAB® XC8 2.46.0 or newer
- MPLAB® Code Configurator (MCC) 5.6.1 or newer
- Microchip PIC16F1xxxx_DFP Device Support 1.24.387 or newer
- MCC Melody Core 2.6.4
- I2C_Client MCC Melody driver 2.0.3
- UART MCC Melody driver 1.10.0
- PIC16F15244 Curiosity Nano Evaluation Kit EV09Z19A
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.
To know about the demo operation, refer GitHub code example Using PIC16F15244 Microcontrollers for System Power Supply Control.