title: PIC16F88 all pins High
body: <p>I have recently begun working with pic micro-controllers, and I haven't had that much trouble with the PIC16F877A series. But i found the PIC16F88 really troublesome. I don't know whether it is already a faulty IC(I just bought it), but after i wrote the following program with hopes to make an led blink, all the pins of the IC produce a high out put. I am using mikroC to write the program and pickit 3 to program the device.</p>
  
  <pre><code>void main() {
  
     ANSEL = 0;
     TRISA = 0;           
  
    do {
      PORTA = 0x00;     
      Delay_ms(1000);    
      PORTA = 0xFF;       
      Delay_ms(1000);    
    } while(1);          
  }
  </code></pre>
  
  <p>As one can understand from the code, an LED connected to PORT A should blink and PORT B shouldn't produce and out out. Is there a particular scenario or mistake that makes all pins of a microcontroller high?</p>