Академический Документы
Профессиональный Документы
Культура Документы
double t=0;
double p=0;
int c=0;
//
Vector de Interrupcion
{
Delay100TCYx(c);
PORTBbits.RB1=1;
Delay100TCYx(10);
PORTBbits.RB1=0;
INTCONbits.INT0IF = 0; //limpia bandera y salimos
}
}
//
Programa Principal
void main ()
{
TRISC=0; ADCON1=15;ADCON2=128;
TRISB = 0X01,TRISC = 0X00;
RCON = 0X00;//IPEN = 0
ADCON2=128;
INTCON = 0X90;//configuramos la interrupcion externa del RB0
INTCON2 = 0X40;
while (1){
ADCON0=15;//ra1
while (ADCON0bits.GO){
t=(ADRESH*256)+ADRESL;
c=(t*0.11);
//PORTC=1;
//Delay1KTCYx(c);
//PORTC=0;}
}
}
ANALISIS RESULTADOS:
Formas de onda del circuito con dos SCR
DATOS OSCILOSCOPIO
Forma de
onda de
la seal
de
sincronis
mo
DATOS SIMULACIN
Forma de
onda en
la salida
de PIC
Forma de
onda en
VRL
.
DATOS OSCILOSCOPIO
DATOS SIMULACIN
Forma
de onda
de
la
seal de
sincroni
smo
Forma
de onda
en
la
salida
de PIC
Forma
de onda
Vak
en
Forma
de onda
VRL
en