PIC16F1847 Microcontroller-Based Programmable Logic Controller (Advanced Concepts)