Renesas H8S/2635 Handbuch Seite 79

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 92
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 78
78
Function
void init_irq ( void)
Arguments
void
no arguments
Description
This function set up IRQ interrupt, by putting index_mark_isr to the interrupt vector table.
Function
int motor_do_input (struct pxmc_state * mcs)
Arguments
mcs
Motion controller state information
Description
The function checks weather PXMS_PTI_b flag is enabled and if it is, than it calls
pxmc_irc_16bit_commindx function to update pxms_ap according to IRC.
Function
int motor_do_output (struct pxmc_state * mcs)
Arguments
mcs
Motion controller state information
Description
This function has two major tasks. Firstly if flag: PXMS_PTI_b is not enabled, the
motor_do_output tries to estimate actual position of the motor according to readings from hall
sensor. Secondly, it read the values from phase table(s) according to the value of pxms_indx.
Then it multiplies is by pxms_ene, and then it sends this result to PWM outputs.
Seitenansicht 78
1 2 ... 74 75 76 77 78 79 80 81 82 83 84 ... 91 92

Kommentare zu diesen Handbüchern

Keine Kommentare