Microchip Technology MCP6 series Manual de usuario Pagina 7

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 24
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 6
2004 Microchip Technology Inc. DS00900A-page 7
AN900
FIGURE 7: INTERRUPT SERVICE ROUTINE
Timer0 overflow?
ADC ready?
Calculate New
Target Velocity
ISR High Priority
ISR Low Priority
Yes
No
Read Sine Values
from Table*
Calculate New
Update Table Offsets*
Direction change?
Calculate Timer0
Reload Value*
Swap Phase 1 and
Phase 2 Offsets*
Yes
No
Yes
No
Return from
Interrupt
Duty Cycle based on
Target Speed and
*In actual implementation, a flag is set and operation is performed within the main loop.
Vista de pagina 6
1 2 3 4 5 6 7 8 9 10 11 12 ... 23 24

Comentarios a estos manuales

Sin comentarios