Building a programmable logic controller with a PIC16F648A microcontroller. (©2014)