Develop a suitable schematic circuit diagram of your system showing the interface between the PIC16F84 and the existing mains light & switch, including 5V derivation from the 240V mains. From this, produce a 'programmer's model' (a table that ties the device's I/O pins to the system's desired functionality - to harmonize hardware and software). Give details of your component choices and calculations.