-   
- #include <hidef.h>  
- #include <MC68HC908GP32.h>  
-   
- interrupt 4 void rsi_t1ch0 (void); 
- interrupt 6 void rsi_ov1 (void);  
-   
- void main(void)  
-   
-   CONFIG1|=0x01; 
-   DDRD=0x10;     
-   T1SC  =0b01110010;         // Prescaler: Div entre 4 y se habilito 
-   T1SC0 =0b01010110;        // Config del PWM 
-    
- // ****MODULOS DE CONTEO   ********\\   
-   T1MOD=0x186A;             // 186A(6250)decimal x 1,6 us = 10 ms "periodo del PWM" 
-   T1CH0 =0x09C4;            // 09C4(2500)decimal x 1,6 us = 4  ms   "Ancho del pulso" 
-                   
-   T1SC&=~(0x20);         
-   EnableInterrupts; 
-   for(;;) {    }   
- } 
-   
- // VECTORES DE INTERRUPCION  
-   
- interrupt 4 void rsi_t1ch0 (void) {  T1SC0&=(~0x80); } 
- interrupt 6 void rsi_ov1   (void) {   T1SC&=(~0x80);  } 
-   
-   
-