Guest User

Untitled

a guest
Jul 23rd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <18f452.h>
  2. #use delay (clock = 20000000)
  3. #fuses HS, NOWDT, NOLVP
  4. #include <452Registers.h>
  5.  
  6. #int_TIMER0
  7. void tmr0_isr(){
  8. *PORTB ^= 0x01;
  9. }
  10.  
  11. main(){
  12. *TRISB = 0x00;
  13. *T0CON = 0x95;
  14. *INTCON |= 0xE0;
  15. while(1);
  16. }
Add Comment
Please, Sign In to add comment