#include <16f88.h>
#fuses nowdt,noput,nobrownout,nolvp,noprotect,NOMCLR,INTRC_IO,ccpb3
//#fuses INTRC_IO, HS,NOWDT,NOPROTECT
#use delay( clock = 4000000 )
void main() {
unsigned char DIGITOS[] = { 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x6f };
unsigned char cuenta;
set_tris_a( 0x00 );
set_tris_a( 0x00 );
// Oscilador interno a 4 MHz
setup_oscillator( OSC_INTRC | OSC_4MHZ );
output_b( 0x00 );
cuenta = 0;
output_low( PIN_A6 );
output_high( PIN_A7 );
while( 1 ) {
cuenta++;
if ( cuenta > 8 ) cuenta = 0;
output_b( DIGITOS[ cuenta ] );
delay_ms( 1000 );
}
}