hey

i'm new with the 16f877 and im workin on a project with respect to it and i'm looking for a piece of code where the PIC takes 8 inputs from switches and wen one of these switches are on, it outputs 8 bits to a parallel port on a computer

if any of you can help me, it would be greatly appreciated


also, if it is not too much, can i get an idea of what the schematic would look like

thanks