Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main()
- {
- short b;
- //Delay_ms(1000);
- PORTB ^= 0xFF;
- TRISA = 0b11111111; // RA0-RA7 - inputs
- PORTB = 0b00000000; // Set all outputs to 0
- //TRISB = 0xc0; // Make all RB0-RB5 into outputs, RB6-RB7 to inputs
- TRISB = 0b11000000; // Make all RB0-RB5 into outputs, RB6-RB7 to inputs
- Delay_ms(100); // Give chip time to cool off
Advertisement
Add Comment
Please, Sign In to add comment