Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int k;
- void main() {
- ANSEL =0;
- ANSELH = 0;
- PORTB = 0xFF;
- TRISB = 0;
- Delay_ms(1000);
- PORTB = 0;
- PORTB = 0b01010101;
- while (1) {
- PORTB = ~PORTB;
- for (k=1; k<10000; k++){
- asm nop;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement