/* Program 1.4 Flash one LED */
/* (c) Rob Miles Jan. 2000   */

void
main (void)
{
  unsigned int
i ;
  /* Select the Register bank 1*/

  set_bit
( STATUS, RP0 ) ;
  /* set all of PORTB input */

  TRISB
= 0xff ;
  /* set bit 0 of PORTA output */

  TRISA
= 0x1e ;
  /* now use Register bank 0 */

  clear_bit
( STATUS, RP0 ) ;
  while
(1)
  {
    /* now set the LED bit */

    
output_high_port_a ( 0 ) ;
    /* for loop delay */

    for
(i=0;i<32000;i=i+1) ;
    output_low_port_a
( 0 ) ;
    /* for loop delay */

    for
(i=0;i<32000;i=i+1) ;
  }
}