this code i am is using for pic16f84a but it can be easily modify for any 14 core pic