Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <reg517a.h>
- int i = 0;
- void ISR_T0(void) interrupt 1
- {
- if(i < 10)
- {
- P1 = 0;
- }
- }
- void main(void)
- {
- EAL = 1;
- ET0 = 1;
- TH0 = 0x97;
- TL0 = 0xD6;
- TR0 = 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement