Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <18f452.h>
- #use delay (clock = 20000000)
- #fuses HS, NOWDT, NOLVP
- #include <452Registers.h>
- #int_TIMER0
- void tmr0_isr(){
- *PORTB ^= 0x01;
- }
- main(){
- *TRISB = 0x00;
- *T0CON = 0x95;
- *INTCON |= 0xE0;
- while(1);
- }
Add Comment
Please, Sign In to add comment