trabajo base+ad+iq
2
11/1/2016 Vista preliminar 1/2 Inicio Configurar GPIO Configurar PWM Habilitar interrupciones Arrancar timer 0 Interrupción 0 LED GPIO2 estado = 0 GPIO1.MUX=0 y = 0 pulsador NO estado = 1 y = 0 SI Parar timer 0 Arrancar Timer 1 pulsador GPIO1.MUX=1 PWM CMPB = 0.6*TBPRD 1 NO SI Arrancar Timer 2 Interrupción 2(3seg) Configurar AD Interrupción 1 LED GPIO2 y ? Interrupción AD 0 1 Configurar valores iq
-
Upload
yahya-moughlia -
Category
Documents
-
view
215 -
download
0
description
flujograma
Transcript of trabajo base+ad+iq
11/1/2016 Vista preliminar
1/2
Inicio
ConfigurarGPIO
ConfigurarPWM
Habilitarinterrupciones
Arrancar timer0
Interrupción 0LED GPIO2
estado = 0GPIO1.MUX=0
y = 0
pulsadorNO
estado = 1y = 0
SI
Parar timer 0Arrancar Timer 1
pulsador
GPIO1.MUX=1PWM CMPB =0.6*TBPRD1
NO
SI
Arrancar Timer 2
Interrupción 2(3seg)
Configurar AD
Interrupción 1LED GPIO2
y ?
Interrupción AD
0
1
Configurarvalores iq
11/1/2016 Vista preliminar
2/2
pulsador>3s
SI
NO
Parar Timer 2Parar Timer 1
y = 0
Parar Timer 2
y = 1estado = 2
pulsador
SI
InterrupciónAD*
Interrupción 1GPIO2
y?
0
1NO
InterrupciónAD
a = AdcResult
CMPB = D*TBRPD2
D = m*a+b