Guest User

Untitled

a guest
Jul 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #include <18F452.h>
  2. #use delay (clock = 20000000)
  3. #fuses HS, NOWDT, NOLVP
  4.  
  5.  
  6. main(){
  7. set_tris_e(0x03); // E0 and E1 inputs....
  8. set_tris_b(0x00); // Port B all oputputs...
  9. while(1){
  10. if( input(PIN_E0) == 1){
  11. output_toggle(PIN_B0);}
  12. }
  13. }
Add Comment
Please, Sign In to add comment