An automatic security gate control system using PIC18F45k22 and assembly language