Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I'm responding just to help you formulate your need for help.
If you really need help, you should explain what your are trying to achieve, expose the difficulties you've faced and then ask your question! you need more than just to say "help in programming code for switch".