Guest User

Untitled

a guest
Apr 2nd, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. void main()
  2. {
  3. short b;
  4. //Delay_ms(1000);
  5. PORTB ^= 0xFF;
  6. TRISA = 0b11111111; // RA0-RA7 - inputs
  7. PORTB = 0b00000000; // Set all outputs to 0
  8. //TRISB = 0xc0; // Make all RB0-RB5 into outputs, RB6-RB7 to inputs
  9. TRISB = 0b11000000; // Make all RB0-RB5 into outputs, RB6-RB7 to inputs
  10. Delay_ms(100); // Give chip time to cool off
Advertisement
Add Comment
Please, Sign In to add comment